/* =============================================
   Top Selection FR — styles.css
   Color System: High Contrast (#05)
   Navigation: Sidebar (#05)
   Header/Footer: Sidebar Style (#04)
   Hero: Asymmetric (#08)
   Section Layout: Sidebar_Content (#06)
   ============================================= */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  background: #0a0a1a;
  color: #e8e8f0;
  line-height: 1.7;
  display: flex;
  min-height: 100vh;
}

a {
  color: #e94560;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover, a:focus-visible {
  color: #ff6b81;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ----- TYPOGRAPHY ----- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ----- SIDEBAR (Desktop) ----- */
.ts-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: #12122a;
  border-right: 1px solid #1e1e3a;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow-y: auto;
}

.ts-sidebar-brand {
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid #1e1e3a;
}

.ts-sidebar-logo {
  display: block;
}

.ts-sidebar-nav {
  flex: 1;
  padding: 1.25rem 0;
}

.ts-sidebar-menu li {
  margin: 0;
}

.ts-nav-link {
  display: block;
  padding: 0.65rem 1.25rem;
  color: #b0b0c8;
  font-size: 0.95rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.ts-nav-link:hover,
.ts-nav-link:focus-visible {
  color: #ffffff;
  background: rgba(233, 69, 96, 0.08);
  border-left-color: #e94560;
}

.ts-sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #1e1e3a;
}

.ts-sidebar-note {
  font-size: 0.75rem;
  color: #6a6a8a;
  line-height: 1.4;
}

/* ----- MOBILE HEADER ----- */
.ts-mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #12122a;
  border-bottom: 1px solid #1e1e3a;
  z-index: 1001;
  padding: 0 1rem;
  align-items: center;
  justify-content: space-between;
}

.ts-mobile-logo {
  display: block;
  padding: 0.5rem 0;
}

.ts-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.ts-burger-line {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #e8e8f0;
  border-radius: 2px;
  transition: all 0.3s;
}

.ts-burger.active .ts-burger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.ts-burger.active .ts-burger-line:nth-child(2) {
  opacity: 0;
}

.ts-burger.active .ts-burger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.ts-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
}

/* ----- MAIN CONTENT WRAPPER ----- */
.ts-main {
  margin-left: 260px;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ts-content {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  padding: 2rem 2.5rem 2rem;
  margin: 0 auto;
}

/* ----- HERO (Asymmetric #08) ----- */
.ts-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  padding: 3rem 0 3.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #1e1e3a;
}

.ts-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ts-hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #e94560;
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(233, 69, 96, 0.3);
  border-radius: 4px;
  align-self: flex-start;
}

.ts-hero h1 {
  margin-bottom: 1.25rem;
}

.ts-hero-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #b0b0c8;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.ts-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ts-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ts-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
  max-width: 320px;
}

.ts-hero-block {
  aspect-ratio: 1;
  border-radius: 6px;
  background: #1a1a3a;
  transition: background 0.3s;
}

.ts-hero-block:nth-child(1) { background: #e94560; }
.ts-hero-block:nth-child(3) { background: #0f3460; }
.ts-hero-block:nth-child(5) { background: #e94560; }
.ts-hero-block:nth-child(7) { background: #0f3460; }
.ts-hero-block:nth-child(9) { background: #e94560; }

/* ----- BUTTONS ----- */
.ts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  font-family: inherit;
}

.ts-btn-primary {
  background: #e94560;
  color: #ffffff;
  border-color: #e94560;
}

.ts-btn-primary:hover,
.ts-btn-primary:focus-visible {
  background: #d63851;
  border-color: #d63851;
  color: #ffffff;
}

.ts-btn-secondary {
  background: transparent;
  color: #e8e8f0;
  border-color: #3a3a5a;
}

.ts-btn-secondary:hover,
.ts-btn-secondary:focus-visible {
  border-color: #e94560;
  color: #e94560;
}

.ts-btn-outline {
  background: transparent;
  color: #e94560;
  border-color: #e94560;
}

.ts-btn-outline:hover,
.ts-btn-outline:focus-visible {
  background: rgba(233, 69, 96, 0.1);
}

/* ----- SECTION LAYOUT (Sidebar_Content #06) ----- */
.ts-section-wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid #1a1a32;
}

.ts-section-wrap:last-of-type {
  border-bottom: none;
}

.ts-section-sidebar {
  position: sticky;
  top: 2rem;
  align-self: start;
}

.ts-section-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ts-section-nav a {
  display: block;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  color: #8a8aaa;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}

.ts-section-nav a:hover,
.ts-section-nav a.ts-active {
  color: #e94560;
  border-left-color: #e94560;
}

.ts-section-main h2 {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e94560;
}

.ts-section-main h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: #d0d0e0;
}

/* ----- CRITERION BLOCKS ----- */
.ts-criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.ts-criterion-card {
  background: #111127;
  border: 1px solid #1e1e3a;
  border-radius: 8px;
  padding: 1.25rem;
  transition: border-color 0.3s;
}

.ts-criterion-card:hover {
  border-color: #e94560;
}

.ts-criterion-card h4 {
  color: #e94560;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.ts-criterion-card p {
  font-size: 0.9rem;
  color: #b0b0c8;
}

/* ----- PLATFORM CARDS (Dossier-style) ----- */
.ts-cards-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid #1a1a32;
}

.ts-platform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.ts-platform-card {
  background: #111127;
  border: 1px solid #1e1e3a;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.2s;
}

.ts-platform-card:hover {
  border-color: #e94560;
  transform: translateY(-2px);
}

.ts-platform-card-header {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid #1a1a32;
  text-align: center;
}

.ts-platform-logo {
  width: 168px;
  height: 168px;
  object-fit: contain;
  border-radius: 10px;
  background: #1a1a32;
  padding: 12px;
}

.ts-platform-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.ts-platform-meta {
  font-size: 0.75rem;
  color: #8a8aaa;
  padding: 0.5rem 1.25rem;
  border-bottom: 1px solid #1a1a32;
}

.ts-platform-meta strong {
  color: #b0b0c8;
}

.ts-platform-body {
  padding: 1rem 1.25rem;
  flex: 1;
}

.ts-platform-body p {
  font-size: 0.88rem;
  color: #b0b0c8;
  margin-bottom: 0.75rem;
}

.ts-platform-criteria {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.ts-platform-criteria span {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  background: rgba(233, 69, 96, 0.1);
  color: #e94560;
  border: 1px solid rgba(233, 69, 96, 0.2);
}

.ts-platform-note {
  font-size: 0.8rem;
  color: #6a6a8a;
  font-style: italic;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #1a1a32;
}

.ts-platform-card-footer {
  padding: 0.75rem 1.25rem 1.25rem;
}

.ts-platform-card-footer .ts-btn {
  width: 100%;
}

/* ----- TRANSPARENCY SECTION ----- */
.ts-transparency {
  padding: 2.5rem 0;
  border-bottom: 1px solid #1a1a32;
}

.ts-transparency-inner {
  background: #111127;
  border: 1px solid #1e1e3a;
  border-radius: 10px;
  padding: 2rem;
}

/* ----- CTA (End-of-Section #07) ----- */
.ts-cta-block {
  padding: 2rem 0;
  text-align: center;
}

.ts-cta-block-inner {
  background: linear-gradient(135deg, #12122a 0%, #1a0a2e 100%);
  border: 1px solid #1e1e3a;
  border-radius: 12px;
  padding: 2.5rem 2rem;
}

.ts-cta-block h3 {
  margin-bottom: 0.75rem;
}

.ts-cta-block p {
  color: #b0b0c8;
  max-width: 600px;
  margin: 0 auto 1.25rem;
}

.ts-cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ----- FAQ ACCORDION ----- */
.ts-faq {
  padding: 2.5rem 0;
  border-bottom: 1px solid #1a1a32;
}

.ts-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ts-faq-item {
  background: #111127;
  border: 1px solid #1e1e3a;
  border-radius: 8px;
  overflow: hidden;
}

.ts-faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  color: #e0e0f0;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: color 0.2s;
}

.ts-faq-question:hover {
  color: #e94560;
}

.ts-faq-icon {
  font-size: 1.25rem;
  transition: transform 0.3s;
  color: #e94560;
}

.ts-faq-item.open .ts-faq-icon {
  transform: rotate(45deg);
}

.ts-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
}

.ts-faq-item.open .ts-faq-answer {
  max-height: 300px;
}

.ts-faq-answer p {
  padding: 0 1.25rem 1rem;
  font-size: 0.9rem;
  color: #b0b0c8;
}

/* ----- PRE-FOOTER ----- */
.ts-pre-footer {
  padding: 2.5rem 0;
  border-bottom: 1px solid #1a1a32;
}

.ts-pre-footer-inner {
  background: #111127;
  border: 1px solid #1e1e3a;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
}

.ts-pre-footer-inner p {
  max-width: 700px;
  margin: 0 auto;
}

/* ----- FOOTER RESOURCE IMAGES ----- */
.ts-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #1a1a32;
}

.ts-resource-grid img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  border-radius: 6px;
  background: #1a1a32;
  padding: 0.5rem;
}

.ts-resource-grid a {
  display: block;
  transition: opacity 0.2s;
}

.ts-resource-grid a:hover {
  opacity: 0.8;
}

/* ----- MAIN FOOTER ----- */
.ts-footer {
  background: #0a0a1a;
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.ts-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.ts-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.ts-footer-logo {
  max-width: 160px;
}

.ts-footer-desc {
  font-size: 0.85rem;
  color: #8a8aaa;
  max-width: 500px;
}

.ts-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.ts-footer-heading {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ts-footer-col ul li {
  margin-bottom: 0.35rem;
}

.ts-footer-col ul li a {
  font-size: 0.85rem;
  color: #8a8aaa;
}

.ts-footer-col ul li a:hover {
  color: #e94560;
}

.ts-footer-disclaimer {
  padding: 1rem 0;
  border-top: 1px solid #1a1a32;
  border-bottom: 1px solid #1a1a32;
  margin-bottom: 1rem;
}

.ts-footer-disclaimer p {
  font-size: 0.8rem;
  color: #6a6a8a;
  line-height: 1.5;
}

.ts-footer-bottom {
  text-align: center;
}

.ts-footer-bottom p {
  font-size: 0.78rem;
  color: #6a6a8a;
}

/* ----- AGE GATE ----- */
.ts-age-gate {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 15, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.ts-age-gate.hidden {
  display: none;
}

.ts-age-gate-inner {
  background: #12122a;
  border: 1px solid #1e1e3a;
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.ts-age-gate-icon {
  margin-bottom: 1rem;
}

.ts-age-gate-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.ts-age-gate-text {
  font-size: 0.9rem;
  color: #b0b0c8;
  margin-bottom: 1.5rem;
}

.ts-age-gate-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

/* ----- COOKIE BANNER ----- */
.ts-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #12122a;
  border-top: 1px solid #1e1e3a;
  z-index: 9998;
  padding: 1rem;
  display: none;
}

.ts-cookie-banner.show {
  display: block;
}

.ts-cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ts-cookie-text {
  font-size: 0.85rem;
  color: #b0b0c8;
  flex: 1;
  min-width: 250px;
}

.ts-cookie-buttons {
  display: flex;
  gap: 0.5rem;
}

/* ----- LEGAL PAGES (Card Based #03) ----- */
.ts-legal-hero {
  padding: 2rem 0;
  border-bottom: 1px solid #1e1e3a;
  margin-bottom: 2rem;
}

.ts-legal-hero h1 {
  margin-bottom: 0.75rem;
}

.ts-legal-hero p {
  color: #b0b0c8;
  font-size: 1.05rem;
}

.ts-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.ts-info-card {
  background: #111127;
  border: 1px solid #1e1e3a;
  border-radius: 8px;
  padding: 1.5rem;
}

.ts-info-card h3 {
  color: #e94560;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.ts-info-card p,
.ts-info-card ul li {
  font-size: 0.9rem;
  color: #b0b0c8;
}

.ts-info-card ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.ts-info-card ul li {
  margin-bottom: 0.35rem;
}

.ts-section-block {
  margin: 2rem 0;
}

.ts-section-block h2 {
  margin-bottom: 1rem;
}

.ts-section-block p {
  color: #b0b0c8;
  margin-bottom: 0.75rem;
}

.ts-contact-block {
  background: #111127;
  border: 1px solid #1e1e3a;
  border-radius: 10px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.ts-contact-block p {
  color: #b0b0c8;
}

.ts-contact-email {
  color: #e94560;
  font-size: 1.1rem;
  font-weight: 600;
}

/* ----- THANK YOU PAGE ----- */
.ts-thankyou {
  text-align: center;
  padding: 3rem 0;
}

.ts-thankyou-icon {
  margin-bottom: 1rem;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 900px) {
  .ts-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .ts-hero-actions {
    justify-content: center;
  }
  
  .ts-hero-visual {
    display: none;
  }
  
  .ts-section-wrap {
    grid-template-columns: 1fr;
  }
  
  .ts-section-sidebar {
    display: none;
  }
  
  .ts-criteria-grid {
    grid-template-columns: 1fr;
  }
  
  .ts-card-grid {
    grid-template-columns: 1fr;
  }

  .ts-footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ts-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .ts-sidebar.open {
    transform: translateX(0);
  }
  
  .ts-sidebar-overlay.show {
    display: block;
  }
  
  .ts-mobile-header {
    display: flex;
  }
  
  .ts-main {
    margin-left: 0;
    margin-top: 60px;
  }
  
  .ts-content {
    padding: 1.25rem 1rem;
  }
  
  .ts-resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ts-resource-grid img {
    height: 60px;
  }
  
  .ts-age-gate-inner {
    padding: 1.5rem;
  }
  
  .ts-cookie-inner {
    flex-direction: column;
    text-align: center;
  }

  .ts-footer-inner {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .ts-hero {
    padding: 1.5rem 0;
  }
  
  .ts-resource-grid {
    grid-template-columns: 1fr;
  }
  
  .ts-resource-grid img {
    height: 50px;
  }
  
  .ts-age-gate-buttons {
    flex-direction: column;
  }
  
  .ts-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .ts-cta-links {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ----- ACCESSIBILITY ----- */
:focus-visible {
  outline: 2px solid #e94560;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ----- PRINT ----- */
@media print {
  .ts-sidebar, .ts-mobile-header, .ts-age-gate, .ts-cookie-banner {
    display: none !important;
  }
  .ts-main {
    margin-left: 0;
  }
  body {
    background: white;
    color: black;
  }
}
