/* Shared styles for BitFlinger website with light/dark theme support */

:root {
    --bg: #fbfcfc;
    --text: #212529;
    --muted: #6c757d;
    --footer-bg: #e9ecef;
    --footer-text: #495057;
    --link: #0d6efd;
}

/* Query OS preference for dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f0e23;
        --text: #e6e6e6;
        --muted: #a0a7b1;
        --footer-bg: #1a1d23;
        --footer-text: #cbd3dc;
        --link: #6ea8fe;
    }
}


/* Base page layout */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}

/* Logo with prefers-color-scheme switching */
.logo {
    max-width: 100%;
    width: 1024px;
    height: auto;
}

/* Smaller logo used on policy pages */
.logo-sm {
    max-width: 50%;
    min-width: 400px;
    height: auto;
}

h1 {
    font-weight: 600;
}

h2 {
    font-weight: 600;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Platforms text on home page */
.platforms {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--muted);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    font-size: 0.9rem;
}

footer a {
    color: var(--link);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* TV Page Styles */
.tv-page {
    --primary-color: #0d6efd;
}

.tv-page .navbar {
    background-color: rgba(251, 252, 252, 0.95);
    backdrop-filter: blur(10px);
}

@media (prefers-color-scheme: dark) {
    .tv-page .navbar {
        background-color: rgba(15, 14, 35, 0.96);
    }
}

.tv-page .hero {
    padding: 100px 0;
    background: radial-gradient(circle at top right, rgba(13, 110, 253, 0.1), transparent);
}

.tv-page .hero-image-container #heroCarousel {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.tv-page .main-hero-img {
    max-width: 900px;
    width: 100%;
    /* transform removed for carousel compatibility */
    transition: transform 0.5s ease;
}

.tv-page .main-hero-img:hover {
    /* transform removed for carousel compatibility */
}

.tv-page .comparison img {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tv-page .feature-card img {
    width: 100%;
    height: auto;
}

.tv-page .mobile-stack {
    position: relative;
}

.tv-page .mobile-img {
    max-width: 200px;
    height: auto;
}

@media (max-width: 991px) {
    .tv-page .mobile-img {
        max-width: 150px;
    }
}

.tv-page .cta {
    background: linear-gradient(135deg, #0f0e23 0%, #0d6efd 100%) !important;
}

/* Policy page helpers */
.policy-content {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.effective-date {
    font-size: 0.9rem;
    color: var(--muted);
    font-style: italic;
}

.back-link {
    margin-bottom: 2rem;
}

.back-link a {
    color: var(--link);
    text-decoration: none;
    font-weight: 400;
}

.back-link a:hover {
    text-decoration: underline;
}
