/* Dark Theme for Iframe Pages (About, Privacy, Terms) */
/* Matches index.html UI */

:root {
    --bg-primary: #0a0f1c;
    --bg-secondary: #0d1424;
    --bg-card: rgba(15, 23, 42, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --accent-glow: rgba(59, 130, 246, 0.3);
    --border-color: rgba(255, 255, 255, 0.08);
    --success: #10b981;
    --error: #ef4444;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    min-height: 100vh;
}

/* Page Container */
.page-shell {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Content Card */
.content-card,
.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 24px;
    backdrop-filter: blur(20px);
}

/* Section Block */
.section-block {
    margin-bottom: 32px;
}

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

/* Eyebrow */
.eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-gradient);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    margin-bottom: 16px;
}

/* Headings */
h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

/* Paragraphs */
p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

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

.lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Lists */
ul, ol {
    padding-left: 24px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

li {
    margin-bottom: 10px;
    padding-left: 8px;
}

li strong {
    color: var(--text-primary);
}

.list-check {
    list-style: none;
    padding-left: 0;
}

.list-check li {
    position: relative;
    padding-left: 28px;
}

.list-check li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.detail-list {
    list-style: none;
    padding-left: 0;
}

.detail-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
}

.detail-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* Links */
a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* Chips/Tags */
.chip {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 4px;
}

/* Stats */
.stat {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    text-align: center;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Hero Banner */
.hero-banner {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    margin-bottom: 32px;
}

/* Section Grid */
.section-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Section Titles */
.section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.section-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Footer Note */
.footer-note {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Flex utilities */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.align-items-start { align-items: flex-start; }
.justify-content-between { justify-content: space-between; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }

/* About Layout */
.about-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Hide header/footer when in iframe */
.site-header,
#header,
#footer,
.web-footer {
    display: none !important;
}

/* Global backdrop - hide in iframe */
.global-backdrop {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .page-shell {
        padding: 24px 16px;
    }
    
    .content-card,
    .glass-panel,
    .hero-banner {
        padding: 24px 20px;
    }
    
    .section-grid {
        grid-template-columns: 1fr;
    }
}
