/* Spopovich.com custom styles */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --bg-color: #05070a;
    --bg-alt: #0b1018;
    --text-color: #f5f5f5;
    --muted-text: #9ba1b3;
    --accent: #82ff1f;
    --accent-soft: rgba(130, 255, 31, 0.12);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "Fira Code", Menlo, Monaco, Consolas, "Courier New", monospace;
    --radius-md: 12px;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    opacity: 1 !important;
    visibility: visible !important;
}

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

a:hover,
a:focus {
    text-decoration: underline;
}

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

/* h1 {
    color: red !important;
} */

.section {
    padding: var(--space-xl) var(--space-md);
}

.section--narrow {
    max-width: 1100px;
    margin: 0 auto;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.gap-sm {
    gap: var(--space-sm);
}

.gap-md {
    gap: var(--space-md);
}

.gap-lg {
    gap: var(--space-lg);
}

.card {
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    padding: var(--space-md);
    box-shadow: var(--shadow-soft);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    background: var(--accent);
    color: #000;
}

.js-reveal,
.js-reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
}

.js-back-to-top {
    display: none !important;
}

.availability {
    background: #000 !important;
}

/* Base: hide everything first */
.desktop-only,
.tablet-only,
.phone-only {
    display: none;
    text-align: center;
}

/* Desktop (1025px and up) */
@media (min-width: 1025px) {
    .desktop-only {
        display: block;
    }
}

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .tablet-only {
        display: block;
    }
}

/* Phone (767px and below) */
@media (max-width: 767px) {
    .phone-only {
        display: block;
    }
}

/* Optional styling */
.desktop-only img,
.tablet-only img,
.phone-only img {
    max-width: 80px;
    height: auto;
    margin-bottom: 10px;
}

.desktop-only h2,
.tablet-only h2,
.phone-only h2 {
    font-size: 2.25rem;
}

/* Hide both by default so only detected browser shows */
.chrome-only,
.safari-only {
    display: none;
}

/* Safari */
@supports (hanging-punctuation: first) and (-webkit-appearance: none) and (font: -apple-system-body) {
    .safari-only {
        display: block;
    }

    .chrome-only {
        display: none;
    }
}

/* Chrome / Blink */
@supports (-webkit-hyphens: none) and (not (hanging-punctuation: first)) {
    .chrome-only {
        display: block;
    }

    .safari-only {
        display: none;
    }
}

/* Optional styling */
.chrome-only img,
.safari-only img {
    max-width: 90px;
    height: auto;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    display: table;
}

.chrome-only h2,
.safari-only h2 {
    font-size: 2.25rem;
    text-align: center;
}

/* Show based on OS */
body.is-ios .ios-only {
    display: block;
}

body.is-windows .windows-only {
    display: block;
}

/* Optional styling */
.ios-only img,
.windows-only img {
    max-width: 90px;
    height: auto;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    display: table;
}

.ios-only h2,
.windows-only h2 {
    font-size: 2.5rem;
    text-align: center;
}

@media (max-width: 768px) {
    .flex-between {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .section {
        padding: var(--space-lg) var(--space-md);
    }
}

@media (max-width: 480px) {
    .section {
        padding: var(--space-lg) var(--space-sm);
    }
}