/* ============================================================
   SugarBaby.gr — app.css
   Custom styles layered on top of Tailwind CDN
   ============================================================ */

/* ── Fonts ─────────────────────────────────────────────────── */
* { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-display { font-family: 'Playfair Display', Georgia, serif; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0d0d0d; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Focus Styles ───────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
}

/* ── Gradient Text ─────────────────────────────────────────── */
.text-gradient {
    background: linear-gradient(135deg, #c9a84c, #e85d8a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Gold / Rose colors as CSS vars ────────────────────────── */
:root {
    --gold: #c9a84c;
    --gold-light: #e0c36a;
    --rose: #e85d8a;
    --rose-light: #f07da8;
    --dark: #0d0d0d;
    --dark-card: #141414;
    --dark-border: #2a2a2a;
    --dark-muted: #1a1a1a;
}

/* ── Smooth transitions ─────────────────────────────────────── */
a, button, input, textarea, select, details summary {
    transition-property: color, background-color, border-color, opacity, transform, box-shadow;
    transition-duration: 150ms;
    transition-timing-function: ease;
}

/* ── Card hover glow ────────────────────────────────────────── */
.card-glow:hover {
    box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.15),
                0 8px 32px rgba(201, 168, 76, 0.08);
}

/* ── Gradient border ────────────────────────────────────────── */
.border-gradient {
    border: 1px solid transparent;
    background-clip: padding-box;
    background-image: linear-gradient(#141414, #141414),
                      linear-gradient(135deg, #c9a84c, #e85d8a);
    background-origin: border-box;
}

/* ── Image cover ────────────────────────────────────────────── */
img { display: block; max-width: 100%; }
img.cover { object-fit: cover; width: 100%; height: 100%; }

/* ── Prose (CMS content) ────────────────────────────────────── */
.prose h1, .prose h2, .prose h3 { color: #fff; margin-bottom: 0.75rem; margin-top: 1.5rem; font-weight: 700; }
.prose h1 { font-size: 1.75rem; }
.prose h2 { font-size: 1.375rem; }
.prose h3 { font-size: 1.125rem; }
.prose p  { color: #9ca3af; line-height: 1.75; margin-bottom: 1rem; }
.prose ul, .prose ol { color: #9ca3af; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.375rem; }
.prose a  { color: var(--gold); text-decoration: underline; }
.prose a:hover { color: var(--gold-light); }
.prose strong { color: #fff; font-weight: 600; }
.prose hr { border-color: #2a2a2a; margin: 2rem 0; }
.prose blockquote { border-left: 3px solid var(--gold); padding-left: 1rem; color: #6b7280; font-style: italic; }
.prose code { background: #1a1a1a; color: var(--rose); padding: 0.1rem 0.4rem; border-radius: 0.25rem; font-size: 0.875em; }
.prose pre { background: #1a1a1a; padding: 1rem; border-radius: 0.75rem; overflow-x: auto; margin-bottom: 1rem; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: 0.875rem; }
.prose th { background: #1a1a1a; color: #fff; padding: 0.5rem 0.75rem; text-align: left; border-bottom: 1px solid #2a2a2a; }
.prose td { padding: 0.5rem 0.75rem; color: #9ca3af; border-bottom: 1px solid #1a1a1a; }

/* ── Mobile Bottom Nav (optional) ───────────────────────────── */
@media (max-width: 767px) {
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 50;
        background: #0a0a0a;
        border-top: 1px solid #1a1a1a;
        display: flex;
        justify-content: space-around;
        padding: 0.5rem 0 env(safe-area-inset-bottom);
    }
    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        font-size: 0.625rem;
        color: #6b7280;
        padding: 0.375rem 0.75rem;
        border-radius: 0.5rem;
        text-decoration: none;
    }
    .mobile-bottom-nav a.active,
    .mobile-bottom-nav a:hover { color: var(--gold); }
    .mobile-bottom-nav svg { width: 1.25rem; height: 1.25rem; }
}

/* ── Form range inputs ──────────────────────────────────────── */
input[type='range'] {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: #2a2a2a;
    outline: none;
}
input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(201,168,76,0.2);
}

/* ── Checkbox / Radio custom ────────────────────────────────── */
input[type='checkbox'] {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 1px solid #2a2a2a;
    background: #0d0d0d;
    cursor: pointer;
    accent-color: var(--rose);
}

/* ── Details/summary arrow ──────────────────────────────────── */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* ── Spinner ────────────────────────────────────────────────── */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #2a2a2a;
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast animations ───────────────────────────────────────── */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
.flash-msg { animation: slideInRight 0.3s ease; }

/* ── Lazy-load fade in ──────────────────────────────────────── */
img[loading='lazy'] { opacity: 0; transition: opacity 0.3s; }
img[loading='lazy'].loaded { opacity: 1; }

/* ── Video player ───────────────────────────────────────────── */
video { max-width: 100%; border-radius: 0.75rem; background: #000; }

/* ── Sticky bottom safe area (iOS) ─────────────────────────── */
.pb-safe { padding-bottom: env(safe-area-inset-bottom, 0); }

/* ── Print ──────────────────────────────────────────────────── */
@media print { nav, footer, aside, .no-print { display: none !important; } body { background: white; color: black; } }
