/* K-POP AI Audition Kazakhstan — Official Site */
:root {
  --blue: #0047a0;
  --red: #cd2e3a;
  --cyan: #6be7ff;
  --pink: #ff6ae5;
  --dark: #050510;
  --surface: #0c0c1a;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.65);
  --border: rgba(255, 255, 255, 0.1);
  --font-display: 'Orbitron', system-ui, sans-serif;
  --font-body: 'Exo 2', 'Noto Sans KR', system-ui, sans-serif;
  --container: 80rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, iframe { max-width: 100%; }
a { color: var(--cyan); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(5, 5, 16, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.logo-mark {
  width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--red));
  border-radius: 0.5rem;
  font-size: 1.1rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--cyan); }

.header-actions {
  display: none;
  align-items: center;
  gap: 0.4rem;
}

@media (min-width: 1101px) {
  .site-nav {
    margin-left: auto;
  }
}

.btn-header-join {
  display: none;
}

.lang-selector {
  display: flex;
  gap: 0.25rem;
  margin-right: 0.5rem;
}

.lang-btn {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--cyan);
  border-color: rgba(107, 231, 255, 0.45);
  background: rgba(107, 231, 255, 0.08);
}

.card-label {
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.card-list {
  color: var(--muted);
  font-size: 0.85rem;
  padding-left: 1.2rem;
  margin: 0;
}

.award-prize {
  color: var(--muted);
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary {
  background: linear-gradient(90deg, var(--blue), var(--red));
  color: #fff;
  box-shadow: 0 0 30px rgba(107, 231, 255, 0.2);
}
.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: rgba(107,231,255,0.4); }

/* Sections */
.section {
  padding: 5rem 0;
}
.section-alt { background: rgba(12, 12, 26, 0.6); }
.section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.section-kicker {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--cyan);
  margin: 0 0 0.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}
.section-lead {
  max-width: 40rem;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Hero */
.hero {
  min-height: 100vh;
  padding-top: 5rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0,71,160,0.45), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(255,106,229,0.12), transparent),
    var(--dark);
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  min-height: calc(100vh - 5rem);
  padding: 2rem 0;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
}
.hero h1 .accent { color: var(--red); }
.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin: 1rem 0;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}
.hero-tags li {
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

@media (max-width: 1100px) {
  .hero .container {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }

  .hero-grid {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
    gap: 2rem;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-actions {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .hero-grid {
    min-height: auto;
    padding-bottom: 3rem;
  }
}

.video-frame {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 40px rgba(107,231,255,0.15);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Cards grid */
.grid-3 { display: grid; gap: 1.5rem; }
.grid-4 { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.2s;
}
.card:hover { border-color: rgba(107,231,255,0.35); }
.card a { text-decoration: none; color: inherit; display: block; }
.card-thumb {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: var(--surface);
}
.card-thumb.large { aspect-ratio: 21/9; border-radius: 1rem; margin: 1.5rem 0; }
.card-body { padding: 1.25rem; }
.card-tag, .card-body time {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
}
.card-body h2, .card-body h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 0.5rem 0;
}
.card-body p { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* Process */
.process-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .process-grid { grid-template-columns: repeat(3, 1fr); } }
.process-card {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 1rem;
}
.process-card h3 {
  font-family: var(--font-display);
  color: var(--cyan);
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}
.process-card p { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* Timeline */
.timeline-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.timeline-item {
  flex: 1;
  min-width: 8.5rem;
  padding: 1rem;
  text-align: left;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.timeline-item.active {
  border-color: rgba(107,231,255,0.5);
  box-shadow: 0 0 20px rgba(107,231,255,0.15);
}
.timeline-status {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
}
.timeline-item h3 { font-size: 0.8rem; margin: 0.35rem 0; font-family: var(--font-display); }
.timeline-item span { font-size: 0.7rem; color: var(--muted); }
#timeline-detail { text-align: center; color: var(--muted); margin-top: 1.5rem; font-size: 0.9rem; }

/* Awards */
.award-card { text-align: center; padding: 2rem 1.5rem; position: relative; overflow: hidden; }
.award-icon { font-size: 3rem; }
.award-card h3 { font-family: var(--font-display); margin: 1rem 0 0.5rem; }
.judging-card { padding: 1.75rem; }
.judging-head { display: flex; justify-content: space-between; align-items: center; }
.judging-head h3 { font-family: var(--font-display); color: var(--cyan); margin: 0; font-size: 1rem; }
.judging-weight { font-family: var(--font-display); font-size: 1.5rem; color: var(--pink); }

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
  background: rgba(255,255,255,0.03);
}
.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Partners */
.partners-group { margin-bottom: 2rem; text-align: center; }
.partners-role {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cyan);
}
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.partner-logo {
  min-width: 8rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
}

/* CTA */
.cta-section {
  text-align: center;
  padding: 6rem 0;
  background: linear-gradient(180deg, transparent, rgba(0,71,160,0.2), transparent);
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 1rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.site-footer h3 {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin: 0 0 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: 0.85rem; }
.site-footer a:hover { color: var(--cyan); }
.footer-copy {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

/* Subpages */
.page-hero { padding: 7rem 0 2rem; }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0.5rem 0;
}
.back-link { font-size: 0.85rem; text-decoration: none; }
.lead { color: var(--muted); }
.muted { color: var(--muted); text-align: center; }
.filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0; }
.filter-chip {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--border);
}
.filter-chip.active, .filter-chip:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.page-info { font-size: 0.85rem; color: var(--muted); }
.video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  margin: 1.5rem 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.tiktok-shorts-hub {
  margin: 2rem 0 2.5rem;
  padding: 1.5rem;
  border-radius: var(--radius, 12px);
  border: 1px solid var(--border);
  background: rgba(8, 8, 18, 0.6);
}

.tiktok-shorts-hub__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tiktok-shorts-hub__title {
  margin: 0;
  font-size: 1.25rem;
}

.tiktok-shorts-hub__grid {
  margin-top: 0;
}

.tiktok-embed-wrap iframe {
  border: 0;
}

@media (min-width: 640px) {
  .tiktok-embed-wrap {
    max-width: 605px;
    margin-left: auto;
    margin-right: auto;
  }
}

.tiktok-video-embed {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
}
.article-cover {
  aspect-ratio: 21/9;
  background-size: cover;
  background-position: center;
  border-radius: 1rem;
  margin: 1.5rem 0;
}
.article-body p { color: var(--muted); line-height: 1.75; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.tag {
  font-size: 0.7rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--cyan);
}
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* Mobile + tablet: compact header with JOIN + hamburger menu */
@media (max-width: 1100px) {
  .header-actions {
    display: flex;
    margin-left: auto;
    order: 2;
  }

  .site-nav {
    order: 3;
    width: 100%;
  }

  .site-nav .header-cta {
    display: none;
  }

  .btn-header-join {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(90deg, var(--blue), var(--red));
    border: none;
    white-space: nowrap;
    box-shadow: 0 0 16px rgba(107, 231, 255, 0.2);
  }

  .nav-toggle { display: block; }
  .lang-selector { margin-right: 0; margin-bottom: 0.5rem; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 2;
    flex-direction: column;
    padding: 1.25rem 1rem 1.5rem;
    background: rgba(8, 8, 18, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 0.35rem 0;
  }
  .header-cta { width: 100%; text-align: center; }
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(5, 5, 16, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.nav-backdrop.is-visible {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

body.nav-menu-open {
  overflow: hidden;
}
