/* =========================================================
   Theme color tokens
   --color-primary is an RGB triplet so Tailwind opacity
   modifiers (text-primary/70, bg-primary/10) keep working.
   ========================================================= */

:root {
    --color-primary: 194 65 12;   /* #c2410c — terracotta (light mode) */
}

.dark {
    --color-primary: 74 124 145;  /* #4a7c91 — steel blue (dark mode) */
}

/* =========================================================
   River / Stream background animation
   ========================================================= */

@keyframes float-river-safe {
    0% {
        top: 115%;
        left: var(--x-start);
        transform: rotate(var(--r1));
        opacity: 0.9;
        filter: blur(0px);
        pointer-events: auto;
    }
    35% {
        top: 65%;
        left: var(--x-safe);
        transform: rotate(var(--r2));
        opacity: 1;
        filter: blur(0px);
        pointer-events: auto;
    }
    50% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(0deg);
        opacity: 0.2;
        filter: blur(12px);
        pointer-events: none;
    }
    65% {
        top: 35%;
        left: var(--x-safe);
        transform: rotate(var(--r3));
        opacity: 1;
        filter: blur(0px);
        pointer-events: auto;
    }
    100% {
        top: -20%;
        left: var(--x-end);
        transform: rotate(var(--r1));
        opacity: 0.7;
        filter: blur(1px);
    }
}

.river-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.drifting-card {
    position: absolute;
    width: 200px;
    pointer-events: auto;
    animation: float-river-safe var(--duration) linear infinite;
    animation-delay: var(--delay);
    transition: filter 0.5s ease, opacity 0.5s ease;
}

/* =========================================================
   Page background
   ========================================================= */

.heavy-water-bg {
    background: radial-gradient(circle at 50% 50%, #fdfcf7 0%, #f5f0e6 100%);
}

.dark .heavy-water-bg {
    background: radial-gradient(circle at 50% 50%, #eef2f3 0%, #dbe3e6 100%);
}

/* =========================================================
   Stream / content column
   ========================================================= */

.stream-text {
    border-left: 1px solid rgb(var(--color-primary) / 0.2);
}

/* =========================================================
   Glassmorphism card
   ========================================================= */

.glass-float {
    background: rgba(255, 253, 245, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(194, 65, 12, 0.1);
    box-shadow: 0 10px 30px -10px rgba(154, 52, 18, 0.15), 0 0 15px rgba(251, 191, 36, 0.1);
}

.dark .glass-float {
    background: rgba(238, 242, 243, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 124, 145, 0.2);
    box-shadow: none;
}

/* =========================================================
   Main content sits above the river layer
   ========================================================= */

main {
    position: relative;
    z-index: 20;
    background: transparent;
}

/* =========================================================
   Profile carousel
   ========================================================= */

#profile-carousel {
    position: relative;
}

#profile-track {
    display: flex;
    transition: transform 0.3s ease-out;
}

#profile-track > div {
    min-width: 100%;
    flex-shrink: 0;
}

/* =========================================================
   Accordion open/close marker
   ========================================================= */

details summary::-webkit-details-marker,
details summary::marker {
    display: none;
}

details summary::after {
    content: "expand_more";
    font-family: "Material Symbols Outlined";
    font-size: 1rem;
    transition: transform 0.2s ease;
}

details[open] summary::after {
    transform: rotate(180deg);
}
