/* ==========================================================================
   Try On AI - Legal & Transparency Web Portal Stylesheet
   DSky Solution | Theme: Obsidian & Champagne Gold Luxury
   ========================================================================== */

:root {
  --bg-primary: #0a0b0e;
  --bg-secondary: #12141a;
  --bg-tertiary: #181b24;
  --bg-card: rgba(24, 27, 36, 0.75);
  --bg-card-hover: rgba(30, 34, 46, 0.9);
  --border-color: rgba(212, 175, 55, 0.18);
  --border-color-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(212, 175, 55, 0.35);

  --text-primary: #f5f5f7;
  --text-secondary: #a1a5b7;
  --text-muted: #6b7280;
  --text-highlight: #ffffff;

  --accent-gold: #d4af37;
  --accent-gold-light: #f3ece1;
  --accent-gold-dark: #b89355;
  --accent-gold-glow: rgba(212, 175, 55, 0.25);

  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-green-bg: rgba(16, 185, 129, 0.12);
  --accent-green-border: rgba(16, 185, 129, 0.3);

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 12px 36px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border-color);
  --shadow-gold: 0 8px 24px -6px rgba(212, 175, 55, 0.25);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8f6f0;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1ede4;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #ffffff;
  --border-color: rgba(184, 147, 85, 0.25);
  --border-color-subtle: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(184, 147, 85, 0.4);

  --text-primary: #191815;
  --text-secondary: #58534b;
  --text-muted: #8a8376;
  --text-highlight: #000000;

  --accent-gold: #9e7a38;
  --accent-gold-light: #44351a;
  --accent-gold-dark: #7a5c24;
  --accent-gold-glow: rgba(158, 122, 56, 0.15);

  --shadow-card: 0 12px 36px -10px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--border-color);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(212, 175, 55, 0.08), transparent 70%),
    radial-gradient(circle at 90% 20%, rgba(59, 130, 246, 0.03), transparent 50%);
  background-attachment: fixed;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: rgba(10, 11, 14, 0.85);
  border-bottom: 1px solid var(--border-color-subtle);
  transition: background-color var(--transition-normal);
}

[data-theme="light"] .site-header {
  background-color: rgba(248, 246, 240, 0.88);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #d4af37 0%, #7a5c24 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  font-family: var(--font-heading);
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-highlight);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-text .company-badge {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--accent-gold);
  text-transform: uppercase;
}

/* Nav Tabs */
.nav-tabs {
  display: flex;
  background: var(--bg-secondary);
  padding: 0.35rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color-subtle);
  gap: 0.25rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  background: var(--accent-gold);
  color: #0b0c10;
  font-weight: 600;
  box-shadow: var(--shadow-gold);
}

[data-theme="light"] .tab-btn.active {
  color: #ffffff;
  background: var(--accent-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  color: var(--text-highlight);
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

/* Hero Banner */
.hero-section {
  max-width: 1280px;
  margin: 2.5rem auto 1.5rem;
  padding: 0 1.5rem;
}

.hero-card {
  background: linear-gradient(135deg, rgba(24, 27, 36, 0.8) 0%, rgba(18, 20, 26, 0.9) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

[data-theme="light"] .hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f7f4ee 100%);
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag-gold {
  background: rgba(212, 175, 55, 0.12);
  color: var(--accent-gold);
  border: 1px solid var(--border-color);
}

.tag-green {
  background: var(--accent-green-bg);
  color: var(--accent-green);
  border: 1px solid var(--accent-green-border);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-highlight);
  line-height: 1.2;
  margin-bottom: 0.8rem;
  letter-spacing: -0.03em;
}

.hero-title span {
  color: var(--accent-gold);
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 820px;
  margin-bottom: 1.5rem;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color-subtle);
  padding-top: 1.25rem;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-meta-item strong {
  color: var(--text-primary);
}

/* Layout Grid */
.layout-container {
  max-width: 1280px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

/* Sidebar Table of Contents */
.sidebar {
  position: sticky;
  top: 5.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-highlight);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.toc-link {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  border-left: 2px solid transparent;
}

.toc-link:hover {
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.06);
  border-left-color: var(--accent-gold);
  padding-left: 0.95rem;
}

.toc-link.active {
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.1);
  border-left-color: var(--accent-gold);
  font-weight: 600;
}

/* Main Content Area */
.content-area {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow-card);
}

@media (max-width: 768px) {
  .content-area {
    padding: 1.75rem 1.25rem;
  }
}

/* Document Styling */
.doc-section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 6rem;
}

.doc-section:last-child {
  margin-bottom: 0;
}

.doc-section h2 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-highlight);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-color-subtle);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.doc-section h2 .section-num {
  color: var(--accent-gold);
  font-size: 1.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.doc-section h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.5rem 0 0.6rem;
}

.doc-section p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.doc-section ul, .doc-section ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
  color: var(--text-secondary);
}

.doc-section li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.doc-section strong {
  color: var(--text-primary);
}

/* Callout Boxes */
.callout {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  border-left: 4px solid var(--accent-gold);
  background: rgba(212, 175, 55, 0.08);
  font-size: 0.94rem;
}

.callout.callout-info {
  border-left-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.08);
}

.callout.callout-success {
  border-left-color: var(--accent-green);
  background: rgba(16, 185, 129, 0.08);
}

.callout-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-highlight);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* Advertising ID & AdMob Specifications Card */
.ads-spec-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2rem 0;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4);
}

.ads-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ads-header-row h3 {
  margin: 0;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.id-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.75rem;
}

.id-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.id-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.id-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.id-code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-gold);
  word-break: break-all;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.btn-copy {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-color);
  color: var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-copy:hover {
  background: var(--accent-gold);
  color: #0b0c10;
}

.btn-copy.copied {
  background: var(--accent-green);
  color: #ffffff;
  border-color: var(--accent-green);
}

/* Steps list */
.step-list {
  counter-reset: step-counter;
  list-style: none;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.step-item {
  counter-increment: step-counter;
  position: relative;
  padding-left: 2.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.step-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-heading);
}

/* Table styles */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color-subtle);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

th {
  background: var(--bg-tertiary);
  color: var(--text-highlight);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border-color-subtle);
}

td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border-color-subtle);
  color: var(--text-secondary);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color-subtle);
  background: var(--bg-secondary);
  padding: 3rem 1.5rem 2rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-color-subtle);
  padding-top: 1.5rem;
  font-size: 0.82rem;
}

/* Back to top button */
.btn-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #0b0c10;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  z-index: 99;
}

.btn-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-back-to-top:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .layout-container {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-tabs {
    overflow-x: auto;
    justify-content: flex-start;
  }
  .tab-btn {
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 0.45rem 0.85rem;
  }
  .hero-card {
    padding: 1.75rem 1.25rem;
  }
  .hero-title {
    font-size: 1.65rem;
  }
}

/* Print Optimization */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .site-header, .sidebar, .btn-back-to-top, .header-actions, .btn-copy {
    display: none !important;
  }
  .content-area, .hero-card {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
  }
  .id-code {
    color: #000 !important;
    background: #f0f0f0 !important;
    border: 1px solid #ccc !important;
  }
}

/* ==========================================================================
   Portal Landing Action Buttons (index.html)
   ========================================================================== */
.portal-actions {
  display: flex;
  gap: 1.25rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 2.2rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-normal);
  cursor: pointer;
  flex: 1;
  min-width: 250px;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.portal-btn .btn-icon-symbol {
  font-size: 1.35rem;
}

.portal-btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  color: #0b0c10;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-gold);
}

.portal-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -6px rgba(212, 175, 55, 0.45);
  filter: brightness(1.06);
}

.portal-btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.portal-btn-secondary:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--accent-gold);
  transform: translateY(-3px);
  color: var(--text-highlight);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .portal-btn-primary {
  color: #ffffff;
}

.index-hero-card {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 860px;
  margin: 3rem auto 4rem;
}

