/* ============================================================
   BEBCOO FOGLALÓ OLDAL — style.css
   Dark athletic aesthetic — kék akcentus, sötét háttér
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Barlow:wght@300;400;500&display=swap');

:root {
  --clr-bg:        #060609;
  --clr-surface:   #0e0e12;
  --clr-surface2:  #16161c;
  --clr-border:    #1e1e28;
  --clr-accent:    #116dff;
  --clr-accent-glow: rgba(17,109,255,.35);
  --clr-accent-dk: #0d56cc;
  --clr-text:      #eaeaf0;
  --clr-muted:     #7a7a8e;

  --radius:  8px;
  --trans:   .25s cubic-bezier(.4,0,.2,1);
  --max-w:   1100px;
  --nav-h:   64px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- CONTAINER ------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---- FADE-IN ANIMÁCIÓ ------------------------------------ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideAccent {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(6,6,9,.88);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--clr-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo img { height: 36px; width: auto; }

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-muted);
  transition: color var(--trans);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--clr-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--trans);
}

.main-nav a:hover,
.main-nav a.active { color: var(--clr-text); }

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO (főoldal)
   ============================================================ */
.hero {
  position: relative;
  padding: 8rem 0 6rem;
  overflow: hidden;
  background-size: cover;
  background-position: center 60%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,6,9,.55) 0%, rgba(6,6,9,.92) 100%),
    linear-gradient(135deg, rgba(17,109,255,.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  animation: fadeUp .8s ease both;
}

.hero-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 1.25rem;
  animation: fadeUp .8s ease .15s both;
}

.hero-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: .95;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 24px rgba(0,0,0,.5);
  animation: fadeUp .8s ease .25s both;
}

.hero-sub {
  color: var(--clr-muted);
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 500px;
  margin-inline: auto;
  animation: fadeUp .8s ease .35s both;
}

/* ============================================================
   MODULE GRID (index)
   ============================================================ */
.main-content { padding: 3rem 0 5rem; }

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.module-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 2.5rem;
}

.module-card--wide .card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.module-card--wide .card-body {
  flex: 1;
}

.module-card--wide .card-arrow {
  margin-top: 0;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.module-card {
  display: flex;
  flex-direction: column;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.5rem;
  cursor: pointer;
  transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans);
  position: relative;
  overflow: hidden;
  animation: fadeUp .6s ease both;
}

.module-card:nth-child(1) { animation-delay: .1s; }
.module-card:nth-child(2) { animation-delay: .2s; }
.module-card:nth-child(3) { animation-delay: .3s; }
.module-card:nth-child(4) { animation-delay: .4s; }

.module-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-accent), rgba(17,109,255,.4));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}

.module-card:hover {
  border-color: rgba(17,109,255,.4);
  transform: translateY(-4px);
  box-shadow:
    0 16px 40px rgba(0,0,0,.5),
    0 0 0 1px rgba(17,109,255,.1),
    inset 0 1px 0 rgba(255,255,255,.03);
}
.module-card:hover::before { transform: scaleX(1); }

.module-card--accent {
  border-color: rgba(17,109,255,.25);
  background: linear-gradient(160deg, var(--clr-surface) 0%, rgba(17,109,255,.06) 100%);
}

.card-icon {
  width: 44px;
  height: 44px;
  color: var(--clr-accent);
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 0 8px var(--clr-accent-glow));
}
.card-icon svg { width: 100%; height: 100%; }

.card-body { flex: 1; }

.card-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.card-desc {
  font-size: .9rem;
  color: var(--clr-muted);
  line-height: 1.6;
  font-weight: 300;
}

.card-arrow {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 1.2rem;
  color: var(--clr-accent);
  transition: transform var(--trans);
}
.module-card:hover .card-arrow { transform: translateX(6px); }

/* ============================================================
   SUBPAGE LAYOUT
   ============================================================ */
.subpage-hero {
  position: relative;
  padding: 6rem 0 3.5rem;
  overflow: hidden;
  background-size: cover;
  background-position: center 60%;
}

.subpage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,6,9,.5) 0%, rgba(6,6,9,.92) 100%),
    linear-gradient(135deg, rgba(17,109,255,.06) 0%, transparent 50%);
  pointer-events: none;
}

.subpage-hero .container {
  position: relative;
  z-index: 1;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  color: var(--clr-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  transition: color var(--trans);
  animation: fadeUp .6s ease both;
}
.back-link:hover { color: var(--clr-accent); }

.subpage-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4rem);
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .95;
  margin-bottom: .75rem;
  text-shadow: 0 4px 24px rgba(0,0,0,.5);
  animation: fadeUp .6s ease .1s both;
}

.subpage-sub {
  color: var(--clr-muted);
  font-size: 1rem;
  font-weight: 300;
  max-width: 540px;
  animation: fadeUp .6s ease .2s both;
}

.subpage-content { padding-bottom: 5rem; }

/* Kék akcentus vonal a hero alatt */
.subpage-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-accent), transparent);
  opacity: .4;
}

/* ---- TAB NAV -------------------------------------------- */
.tab-nav {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--clr-border);
  padding-bottom: 0;
}

.tab-btn {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: .65rem 1.1rem;
  color: var(--clr-muted);
  cursor: pointer;
  transition: color var(--trans), border-color var(--trans);
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--clr-text); }
.tab-btn.active {
  color: var(--clr-accent);
  border-bottom-color: var(--clr-accent);
}

/* ---- MODULE PANEL --------------------------------------- */
.module-panel { display: none; }
.module-panel.active { display: block; }

.module-wrap {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  min-height: 200px;
}

.module-label {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.module-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--clr-border);
}

/* Berlet / single panel */
.single-module { padding: 3rem 0 5rem; }
.single-module .module-wrap { max-width: 900px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--clr-border);
  padding: 2.5rem 0;
  background: var(--clr-surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-info p {
  font-size: .85rem;
  color: var(--clr-muted);
  line-height: 1.7;
}
.footer-info a {
  color: var(--clr-muted);
  transition: color var(--trans);
}
.footer-info a:hover { color: var(--clr-accent); }

.footer-copy {
  font-size: .8rem;
  color: #3a3a4a;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--clr-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 99;
  }
  .main-nav.open { display: flex; }
  .main-nav a { font-size: 1.4rem; }
  .main-nav a::after { display: none; }
  .nav-toggle { display: flex; }

  .hero-title {
    line-height: 1.15;
    font-size: clamp(2.2rem, 9vw, 3.5rem);
    margin-bottom: 1.25rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .subpage-title {
    line-height: 1.15;
  }

  .modules-grid { grid-template-columns: 1fr; }
  .module-card--wide {
    flex-direction: column;
    padding: 2rem 1.75rem 1.5rem;
  }
  .module-card--wide .card-arrow { margin-top: 1.5rem; }

  .module-card {
    padding: 1.75rem 1.5rem 1.25rem;
  }

  .card-title { font-size: 1.15rem; }
  .card-desc { font-size: .85rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .tab-nav { gap: .25rem; }
  .tab-btn { font-size: .75rem; padding: .5rem .7rem; }

  .module-wrap { padding: 1.25rem 1rem; }
}

@media (max-width: 480px) {
  .hero { padding: 5rem 0 3.5rem; }
  .hero-title {
    font-size: clamp(1.8rem, 10vw, 2.8rem);
    line-height: 1.2;
  }
  .hero-eyebrow { font-size: .7rem; margin-bottom: 1rem; }
  .subpage-hero { padding: 3.5rem 0 2rem; }
  .subpage-title {
    line-height: 1.2;
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
}
