/* GDC Archive Page Styles
   Sonniss Design System — GDC Community Edition
   ============================================

   Shares the Sonniss dark foundation (#0a0a0a / #121212)
   and structural patterns (8px radius, card system, hover lifts)
   with a warm teal accent that distinguishes the community
   giveaway pages from the commercial catalogue and B2B licensing.

   ------------------------------------------ */

/* ========================================
   CSS CUSTOM PROPERTIES
   ======================================== */

.gdc-archive {
  /* Dark foundation — matches site globals */
  --gdc-bg-primary: #0a0a0a;
  --gdc-bg-secondary: #121212;
  --gdc-bg-card: rgba(255, 255, 255, 0.05);
  --gdc-bg-card-hover: rgba(255, 255, 255, 0.08);

  /* Text — same hierarchy as rest of site */
  --gdc-text-primary: #ffffff;
  --gdc-text-body: rgba(255, 255, 255, 0.7);
  --gdc-text-muted: rgba(255, 255, 255, 0.5);

  /* Borders — matches site globals */
  --gdc-border: rgba(255, 255, 255, 0.1);
  --gdc-border-hover: rgba(255, 255, 255, 0.2);

  /* Teal accent — the GDC page's signature */
  --gdc-accent: #4db8a4;
  --gdc-accent-hover: #6ccaba;
  --gdc-accent-subtle: rgba(77, 184, 164, 0.12);
  --gdc-accent-glow: rgba(77, 184, 164, 0.3);

  /* Utilities */
  --gdc-radius: 8px;
  --gdc-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  --gdc-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --gdc-transition: all 0.3s ease;
}


/* ========================================
   PAGE CONTAINER
   ======================================== */

.gdc-archive {
  width: 100%;
  background: var(--gdc-bg-primary);
  color: var(--gdc-text-primary);
  min-height: 100vh;
  padding: 0;
  max-width: 100%;
}

.gdc-archive-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  position: relative;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  border: none;
  backdrop-filter: none;
}


/* ========================================
   INTRODUCTION / HERO SECTION
   ======================================== */

.gdc-intro {
  position: relative;
  padding: 5rem 2rem 4rem;
  text-align: center;
  background: var(--gdc-bg-secondary);
  border-bottom: 1px solid var(--gdc-border);
  overflow: hidden;
  margin: 0 -2rem;
}

.gdc-intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gdc-accent), transparent);
  opacity: 0.6;
}

.gdc-intro__inner {
  max-width: 900px;
  margin: 0 auto;
}


/* Badge */

.gdc-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gdc-accent);
  background: var(--gdc-accent-subtle);
  border: 1px solid rgba(77, 184, 164, 0.25);
  border-radius: 100px;
  padding: 0.4rem 1.25rem;
  margin-bottom: 1.75rem;
}


/* Headline */

.gdc-intro .entry-title {
  font-size: 2.75rem;
  font-weight: 500;
  margin-bottom: 2rem;
  color: var(--gdc-text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
}


/* Lead paragraph — hero pitch, visually distinct */

.gdc-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gdc-text-body);
  max-width: 780px;
  margin: 0 auto 2.5rem;
}

.gdc-lead strong {
  color: var(--gdc-text-primary);
  font-weight: 500;
}


/* Hero Stats Row */

.gdc-hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--gdc-border);
  border-bottom: 1px solid var(--gdc-border);
}

.gdc-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.gdc-hero-stat__number {
  font-size: 2rem;
  font-weight: 600;
  color: var(--gdc-accent);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.gdc-hero-stat__label {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--gdc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* Supporting description text */

.gdc-description {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--gdc-text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  text-align: center;
}

.gdc-description p {
  margin-bottom: 0.75rem;
}

.gdc-description strong {
  color: var(--gdc-text-body);
  font-weight: 500;
}


/* CTA Prompt — "Select one of the options below" */

.gdc-cta-prompt {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gdc-text-primary);
  margin-bottom: 2.5rem;
  letter-spacing: 0.01em;
}


/* AI Notice */

.gdc-ai-notice {
  max-width: 700px;
  margin: 0 auto;
}

.gdc-ai-notice .ai-notice {
  font-size: 0.9rem;
  color: var(--gdc-text-body);
  padding: 1.25rem 1.5rem;
  background: rgba(248, 113, 113, 0.06);
  border: 1px solid rgba(248, 113, 113, 0.15);
  border-radius: var(--gdc-radius);
  margin-bottom: 0;
}

.gdc-ai-notice .ai-notice strong {
  color: #f87171;
}

.gdc-ai-notice .ai-notice a {
  color: var(--gdc-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gdc-ai-notice .ai-notice a:hover {
  color: var(--gdc-accent-hover);
}

.gdc-ai-notice .ai-notice-sub {
  font-size: 0.85rem;
  color: var(--gdc-text-muted);
  margin-top: 0.5rem;
  margin-bottom: 0;
}


/* ========================================
   YEARS SECTION — ACCORDION
   ======================================== */

.gdc-years {
  padding: 3rem 0;
  display: grid;
  gap: 1rem;
}

.gdc-year {
  background: var(--gdc-bg-card);
  border-radius: var(--gdc-radius);
  overflow: hidden;
  transition: var(--gdc-transition);
  border: 1px solid var(--gdc-border);
}

.gdc-year:hover {
  border-color: var(--gdc-border-hover);
}

.year-header {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--gdc-text-primary);
  font-size: 1.1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: var(--gdc-transition);
}

.year-header:hover {
  background: var(--gdc-bg-card-hover);
}

.year-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 1rem;
  font-size: 0.8rem;
  color: var(--gdc-accent);
  background: var(--gdc-accent-subtle);
  border-radius: 50%;
  transition: var(--gdc-transition);
  flex-shrink: 0;
}

.year-toggle::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: '\f067';
}

.gdc-year.active .year-toggle {
  background: var(--gdc-accent);
  color: #000;
}

.gdc-year.active .year-toggle::before {
  content: '\f068';
}

.year-content {
  padding: 1.5rem;
  background: var(--gdc-bg-primary);
  border-top: 1px solid var(--gdc-border);
}


/* ========================================
   DOWNLOAD SECTIONS
   ======================================== */

.download-section {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--gdc-bg-card);
  border-radius: var(--gdc-radius);
  border: 1px solid var(--gdc-border);
}

.download-section h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gdc-accent);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
}

.download-section h3::before {
  content: '\f019';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 0.75rem;
  font-size: 0.875rem;
}

.download-link {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.25rem;
  margin-bottom: 0.5rem;
  background: var(--gdc-bg-secondary);
  color: var(--gdc-text-primary);
  text-decoration: none;
  border-radius: var(--gdc-radius);
  transition: var(--gdc-transition);
  border: 1px solid var(--gdc-border);
  font-size: 0.9rem;
}

.download-link:hover {
  background: var(--gdc-bg-card-hover);
  border-color: var(--gdc-accent-glow);
  transform: translateX(4px);
  color: var(--gdc-text-primary);
}

.download-link::before {
  content: '\f381';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 0.875rem;
  color: var(--gdc-accent);
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.download-link:hover::before {
  transform: translateY(-1px);
}


/* Additional Info (Track List / License buttons) */

.additional-info {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.info-toggle {
  width: 100%;
}

.toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.25rem;
  background: var(--gdc-accent-subtle);
  color: var(--gdc-text-primary);
  text-decoration: none;
  border-radius: var(--gdc-radius);
  transition: var(--gdc-transition);
  border: 1px solid var(--gdc-accent-glow);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.toggle-btn:hover {
  background: var(--gdc-accent);
  color: #000;
  border-color: var(--gdc-accent);
}

.toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 0.75rem;
  background: var(--gdc-accent-subtle);
  border-radius: 50%;
  color: var(--gdc-accent);
}

.toggle-icon::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: '\f067';
  font-size: 0.7rem;
}


/* ========================================
   SHARE SECTION
   ======================================== */

.gdc-share {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--gdc-bg-secondary);
  border-top: 1px solid var(--gdc-border);
  border-bottom: 1px solid var(--gdc-border);
  margin: 0 -2rem;
}

.gdc-share p {
  color: var(--gdc-text-primary);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  /* No gradient text — plain and clean */
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
}

.social-share-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--gdc-text-body);
  background: var(--gdc-bg-card);
  border: 1px solid var(--gdc-border);
  transition: var(--gdc-transition);
  text-decoration: none;
}

.share-button:hover {
  transform: translateY(-2px);
  border-color: transparent;
  color: #fff;
}

.share-button i {
  font-size: 1rem;
}

.share-button.facebook:hover {
  background: #1877f2;
}

.share-button.twitter:hover {
  background: #1da1f2;
}

.share-button.linkedin:hover {
  background: #0a66c2;
}

.share-button.email:hover {
  background: var(--gdc-accent);
  color: #000;
}


/* ========================================
   CTA SECTION
   ======================================== */

.gdc-cta {
  padding: 5rem 2rem;
  text-align: center;
  background: var(--gdc-bg-primary);
  position: relative;
  overflow: hidden;
  margin: 0 -2rem;
}

.gdc-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, var(--gdc-accent-subtle), transparent 70%);
  pointer-events: none;
}

.gdc-cta p {
  color: var(--gdc-text-body);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--gdc-accent);
  color: #000;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: var(--gdc-transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.cta-button:hover {
  background: var(--gdc-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--gdc-shadow);
  color: #000;
}

.cta-button:hover::before {
  transform: translateX(100%);
}

.gdc-studio-link {
  margin-top: 1.5rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gdc-text-muted);
  position: relative;
}

.gdc-studio-link a {
  color: var(--gdc-text-body);
  text-decoration: none;
  transition: var(--gdc-transition);
  border-bottom: 1px solid var(--gdc-border);
  padding-bottom: 1px;
}

.gdc-studio-link a:hover {
  color: var(--gdc-accent);
  border-bottom-color: var(--gdc-accent);
}


/* ========================================
   FAQ SECTION
   ======================================== */

.gdc-faq {
  padding: 5rem 0;
  background: transparent;
  border-top: 1px solid var(--gdc-border);
}

.gdc-faq h2 {
  font-size: 2.5rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--gdc-text-primary);
  letter-spacing: -0.02em;
  /* No gradient text */
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
}

.gdc-faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gdc-faq-item {
  background: var(--gdc-bg-card);
  border: 1px solid var(--gdc-border);
  border-radius: var(--gdc-radius);
  overflow: hidden;
  transition: var(--gdc-transition);
}

.gdc-faq-item:hover {
  border-color: var(--gdc-border-hover);
}

.gdc-faq-item[open] {
  border-color: var(--gdc-accent-glow);
}

.gdc-faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  color: var(--gdc-text-primary);
  list-style: none;
  transition: var(--gdc-transition);
}

.gdc-faq-item__question::-webkit-details-marker {
  display: none;
}

.gdc-faq-item__question:hover {
  background: var(--gdc-bg-card-hover);
}

.gdc-faq-item__question span {
  flex: 1;
  padding-right: 1rem;
}

.gdc-faq-item__question i {
  color: var(--gdc-accent);
  font-size: 0.75rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.gdc-faq-item[open] .gdc-faq-item__question i {
  transform: rotate(180deg);
}

.gdc-faq-item__answer {
  padding: 1rem 1.5rem 1.5rem;
  color: var(--gdc-text-body);
  line-height: 1.7;
  font-size: 0.95rem;
}

.gdc-faq-item__answer p {
  margin: 0;
}


/* ========================================
   TRUSTED BY SECTION
   ======================================== */

.gdc-trusted {
  padding: 5rem 2rem;
  text-align: center;
  background: var(--gdc-bg-secondary);
  border-top: 1px solid var(--gdc-border);
  position: relative;
  margin: 0 -2rem;
}

.gdc-trusted h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 3rem;
  color: var(--gdc-accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  /* No gradient text — matches studio licensing approach */
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
}

.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.trusted-company {
  flex: 0 1 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  transition: var(--gdc-transition);
  opacity: 0.6;
  /* No card background — matches studio licensing */
  background: none;
  border: none;
  border-radius: 0;
}

.trusted-company img {
  width: 100%;
  height: auto;
  max-height: 100px;
  max-width: 140px;
  filter: grayscale(100%) brightness(0.8);
  transition: var(--gdc-transition);
}

.trusted-company:hover {
  opacity: 1;
  transform: none;
  box-shadow: none;
}

.trusted-company:hover img {
  filter: grayscale(0%) brightness(1);
}


/* ========================================
   COPYRIGHT SECTION
   ======================================== */

.gdc-copyright {
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--gdc-bg-primary);
  border-top: 1px solid var(--gdc-border);
  margin: 0 -2rem;
}

.gdc-copyright p {
  color: var(--gdc-text-muted);
  font-size: 0.875rem;
  margin: 0;
}

.hashtag {
  margin-top: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gdc-accent);
  font-size: 0.875rem;
}


/* ========================================
   ACTIVE STATES
   ======================================== */

.gdc-year.active {
  border-color: var(--gdc-accent-glow);
}

.gdc-year.active .year-header {
  background: var(--gdc-accent-subtle);
}


/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.year-content {
  animation: fadeIn 0.35s ease-out;
}

.download-link {
  animation: slideIn 0.25s ease-out;
  animation-fill-mode: both;
}

.download-link:nth-child(2) { animation-delay: 0.05s; }
.download-link:nth-child(3) { animation-delay: 0.1s; }
.download-link:nth-child(4) { animation-delay: 0.15s; }
.download-link:nth-child(5) { animation-delay: 0.2s; }
.download-link:nth-child(6) { animation-delay: 0.25s; }

.gdc-faq-item__answer {
  animation: fadeIn 0.25s ease-out;
}


/* ========================================
   RESPONSIVE — 1200px
   ======================================== */

@media (max-width: 1200px) {
  .gdc-intro .entry-title {
    font-size: 2.35rem;
  }
}


/* ========================================
   RESPONSIVE — 768px (TABLET)
   ======================================== */

@media (max-width: 768px) {
  .gdc-archive-content {
    padding: 0 1.5rem 3rem;
  }

  .gdc-intro {
    padding: 3.5rem 1.5rem;
    margin: 0 -1.5rem;
  }

  .gdc-intro .entry-title {
    font-size: 1.85rem;
  }

  .gdc-lead {
    font-size: 1.05rem;
  }

  .gdc-hero-stats {
    gap: 2rem;
  }

  .gdc-hero-stat__number {
    font-size: 1.65rem;
  }

  .gdc-years {
    padding: 2rem 0;
  }

  .download-section {
    padding: 1.25rem;
  }

  .additional-info {
    grid-template-columns: 1fr;
  }

  .gdc-share,
  .gdc-cta,
  .gdc-trusted,
  .gdc-copyright {
    margin: 0 -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .gdc-cta,
  .gdc-trusted {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .gdc-faq {
    padding: 3.5rem 0;
  }

  .gdc-faq h2 {
    font-size: 2rem;
  }

  .trusted-logos {
    gap: 2rem 3rem;
    padding: 0;
  }

  .trusted-company {
    flex: 0 1 140px;
  }
}


/* ========================================
   RESPONSIVE — 480px (MOBILE)
   ======================================== */

@media (max-width: 480px) {
  .gdc-archive-content {
    padding: 0 1rem 2rem;
  }

  .gdc-intro {
    padding: 2.5rem 1rem;
    margin: 0 -1rem;
  }

  .gdc-intro .entry-title {
    font-size: 1.5rem;
  }

  .gdc-lead {
    font-size: 0.95rem;
  }

  .gdc-hero-stats {
    gap: 1.25rem;
    flex-wrap: wrap;
  }

  .gdc-hero-stat__number {
    font-size: 1.5rem;
  }

  .gdc-hero-stat__label {
    font-size: 0.7rem;
  }

  .gdc-cta-prompt {
    font-size: 1rem;
  }

  .gdc-description {
    font-size: 0.875rem;
  }

  .year-header {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }

  .year-content {
    padding: 1rem;
  }

  .download-link {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  .toggle-btn {
    font-size: 0.7rem;
    padding: 0.75rem 1rem;
  }

  .gdc-share,
  .gdc-cta,
  .gdc-trusted,
  .gdc-copyright {
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .gdc-cta {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .cta-button {
    padding: 0.875rem 2rem;
    font-size: 0.9rem;
  }

  .share-button {
    width: 40px;
    height: 40px;
  }

  .share-button i {
    font-size: 0.875rem;
  }

  .gdc-faq {
    padding: 3rem 0;
  }

  .gdc-faq h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .gdc-faq-item__question {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
  }

  .gdc-faq-item__answer {
    padding: 0.75rem 1.25rem 1.25rem;
    font-size: 0.875rem;
  }

  .trusted-logos {
    gap: 1.5rem 2rem;
  }

  .trusted-company {
    flex: 0 1 120px;
  }

  .trusted-company img {
    max-width: 100px;
  }
}
