/* RESET + BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --header-height: 70px;
  --footer-height: 50px;
  --bg-dark: rgba(0, 0, 0, 0.85);
  --bg-light: rgba(255, 255, 255, 0.9);
  --text-light: #fff;
  --radius: 10px;
  --logo-size: 100px;
  --logo-mobile-size: 45px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Arial, sans-serif;
  overflow: hidden;
  color: #222;
  background: #000;
  background: transparent;
}

/* HEADER */
header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: 20px;
  background: var(--bg-dark);
  z-index: 1000;
}

/* TITLE */
.title {
  justify-self: center;
  color: var(--text-light);
  font-size: clamp(1rem, 2vw, 1.9rem);
  font-weight: 700;
  white-space: nowrap;
  padding-inline: 15px;
}

/* LOGO */
.logo {
  justify-self: start;
  position: relative;
  top: 30px;
  width: var(--logo-size);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border-radius: 50%;
  z-index: 1100;
}

.logo img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  display: block;
}

/* NAVIGATION */
nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

nav a,
.mobile-menu a {
  color: var(--text-light);
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

nav a:hover,
.mobile-menu a:hover {
  opacity: 0.75;
}

.nav-btn {
  text-decoration: none;
  color: #fff;
  padding: 8px 14px;
  border: 2px solid #ffb74d;
  border-radius: 6px;
  background: transparent;

  font-size: 15px;
  transition: all 0.2s ease;
}

/* hover */
.nav-btn:hover {
  background: #ffb74d !important;
  color: #2b2b2b;
}

/* AKTÍV (kattintott / jelenlegi oldal) */
.nav-btn.active {
  background: #ffb74d;
  color: #2b2b2b;
}

/* kattintás effekt */
.nav-btn:active {
  transform: scale(0.96);
}

/* cikkek, galeria navigacio */
.full-width-btn {
  display: block;
  width: 50%;
  height: 35px;
  box-sizing: border-box;
  background: #2f2f2f;
  color: #ffffff;
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  margin: 0 auto;
}

/* HOVER */
.full-width-btn:hover {
  background: #ffb74d;
  color: #2b2b2b;
}

/* CLICK FEEDBACK */
.full-width-btn:active {
  transform: scale(0.99);
}

/* MOBILE FINOMÍTÁS */
@media (max-width: 600px) {
  .full-width-btn {
    font-size: 13px;
    padding: 2px 12px;
  }
}


/* FOOTER */
footer {
  position: fixed;
  inset: auto 0 0 0;
  height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  color: var(--text-light);
  z-index: 1000;
}

/* BACKGROUND */
.background {
  position: fixed;
  inset: var(--header-height) 0 var(--footer-height) 0;
  background: url("../assets/background.webp") center / cover no-repeat;
  z-index: 0;
}

/* CONTENT */
.content-wrapper {
  position: absolute;
  inset:
    calc(var(--header-height) + 10px)
    0
    var(--footer-height)
    0;
  overflow-y: auto;
  padding: 30px;
  z-index: 1;
}

.container {
  max-width: 900px;
  margin-inline: auto;
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--radius);
  backdrop-filter: blur(3px);

transform: translateY(-2px) rotateX(1deg);
box-shadow:
  0 12px 28px rgba(0, 0, 0, 0.18),
  0 4px 10px rgba(0, 0, 0, 0.10);

border-top: 1px solid rgba(255, 255, 255, 0.6);
border-left: 1px solid rgba(255, 255, 255, 0.4);
border-right: 1px solid rgba(0, 0, 0, 0.06);
border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

/* MOBILE MENU */
.hamburger {
  display: none;
  margin-left: auto;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  display: none;
  flex-direction: column;
  background: #000;
  z-index: 2000;
}

.mobile-menu a {
  padding: 12px 16px;
  border-bottom: 1px solid #444;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  nav {
    display: none;
  }

  .hamburger {
    display: block;
    order: 3;
  }

  .logo {
    position: static;
    top: 0;
    width: var(--logo-mobile-size);
    margin: 0;
  }

  .title {
    font-size: 1rem;
  }

  .content-wrapper {
    inset:
      calc(var(--header-height) + 5px)
      0
      var(--footer-height)
      0;
  }
}













#medalBox {
  width: min(420px, calc(100% - 20px));

  position: absolute;
  top: var(--header-height);
  left: 50%;
  transform: translateX(-50%);

  margin-top: 0px;

  background: #222;
  color: #fff;
  padding: 10px 12px;
  border-radius: 0 0 10px 10px;
  
  font-family: Arial, sans-serif;
  cursor: pointer;

  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 10;
}

/* 🔥 EGY SOROS FEJLÉC */
#medalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;

  font-weight: bold;
  font-size: 14px;
}

#medalSummary {
  font-weight: normal;
  white-space: nowrap;
  font-size: 13px;
  opacity: 0.9;
}

#medalContent {
  display: none;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
}

/* OPEN = OVERLAY */
#medalBox.open {
  position: fixed;
  top: var(--header-height);
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
}

/* háttér */
#medalBox.open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: -1;
}

#medalBox.open #medalContent {
  display: block;
}

/* mobil */
@media (max-width: 600px) {
  #medalBox {
    width: calc(100% - 20px);
  }
}