/* 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;
}

/* App store badges */
.store-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-badge svg {
    height: 56px;
    width: auto;
    display: block;
}

.store-badge:hover {
    transform: scale(1.04);
}

.store-badge.is-disabled {
    cursor: default;
    pointer-events: none;
}

.store-badge.is-disabled svg {
    opacity: 0.55;
}

.store-badge-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 0.35rem;
    margin-bottom: 0;
}

/* Platform availability pills (multi-device section) */
.platform-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.platform-pill {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.platform-pill.is-soon {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.85);
    border-style: dashed;
    font-weight: 400;
}

/* Compact "and so much more" feature grid */
.tv-page .more-card {
    transition: transform 0.2s ease;
    text-align: center;
}

.tv-page .more-card:hover {
    transform: translateY(-4px);
}

.tv-page .more-icon {
    font-size: 6rem;
    line-height: 1;
    padding: 1.5rem;
}

/* 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;
}
