/* style.css 
   Custom styles for Olive Bongfen Shang Memorial Site 
*/

/* Enable smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Prevent images from being dragged (improves the feel of the carousel) */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* =========================================
   Custom Scrollbar (Elegant Olive Theme)
   ========================================= */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #fafaf9; /* Tailwind stone-50 */
}

::-webkit-scrollbar-thumb {
    background-color: #b7c770; /* Tailwind olive-400 */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #7a8738; /* Tailwind olive-600 */
}

/* =========================================
   Custom Animations (For Phase 3)
   ========================================= */

/* The 'float' animation for the upcoming Tributes collage */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Delays to make the floating collage look organic, not synchronized */
.animation-delay-1000 {
    animation-delay: 1s;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-3000 {
    animation-delay: 3s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* A soft fade-in animation for page loads and new messages */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* =========================================
   Tributes — uniform cards & vintage media
   ========================================= */

.tribute-wall-inner {
    position: relative;
}

.tribute-connect-svg {
    opacity: 0.48;
}

@media (max-width: 639px) {
    .tribute-connect-svg {
        opacity: 0.38;
    }
}

.tribute-card {
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    animation: tributeBreeze var(--breeze-duration, 12s) ease-in-out var(--breeze-delay, 0s) infinite;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.tribute-card:hover {
    transform: translateY(-2px);
}

.tribute-card:focus {
    outline: none;
}

.tribute-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(161, 178, 77, 0.45);
}

.tribute-card-preview-audio {
    background: linear-gradient(160deg, #3a342c 0%, #252019 55%, #1a1612 100%);
}

.tribute-card-preview-video {
    background: linear-gradient(145deg, #2c2822 0%, #1a1814 100%);
}

.tribute-radio-grille {
    flex: 1;
    min-height: 2.75rem;
    border-radius: 0.35rem;
    background: repeating-linear-gradient(
        90deg,
        #14110e,
        #14110e 3px,
        #252019 3px,
        #252019 6px
    );
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(201, 169, 98, 0.15);
}

.tribute-radio-chrome {
    background: linear-gradient(165deg, #4a3f32 0%, #2d261f 42%, #1e1a15 100%);
    border-radius: 1rem;
    padding: 1rem 1.1rem 1.15rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 32px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(201, 169, 98, 0.22);
}

.tribute-radio-chrome .tribute-radio-brand {
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    color: rgba(227, 218, 198, 0.55);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-align: center;
}

.tribute-radio-chrome .tribute-radio-face {
    display: flex;
    align-items: stretch;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.tribute-radio-chrome .tribute-dial {
    width: 3.25rem;
    flex-shrink: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.12), transparent 45%),
        conic-gradient(
            from 200deg,
            #c9a962,
            #8b7344,
            #5c4d32,
            #9a8350,
            #c9a962
        );
    border: 2px solid rgba(30, 26, 21, 0.9);
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.15),
        0 3px 8px rgba(0, 0, 0, 0.45);
}

.tribute-radio-controls {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.tribute-radio-play {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid rgba(201, 169, 98, 0.45);
    background: linear-gradient(145deg, #e8dcc8, #b9a078);
    color: #2a2219;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 0 rgba(30, 24, 18, 0.55), 0 6px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.tribute-radio-play:hover {
    transform: scale(1.04);
}

.tribute-radio-play:active {
    transform: scale(0.97);
    box-shadow: 0 1px 0 rgba(30, 24, 18, 0.55), 0 3px 8px rgba(0, 0, 0, 0.3);
}

.tribute-radio-seek {
    flex: 1;
    min-width: 6rem;
    height: 0.35rem;
    border-radius: 999px;
    appearance: none;
    background: rgba(0, 0, 0, 0.35);
    accent-color: #c9a962;
    cursor: pointer;
}

.tribute-radio-time {
    font-variant-numeric: tabular-nums;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: rgba(232, 220, 200, 0.75);
    white-space: nowrap;
}

.tribute-video-chrome {
    background: linear-gradient(165deg, #4a3f32 0%, #252019 55%, #161310 100%);
    border-radius: 1rem;
    padding: 0.85rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 12px 32px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(201, 169, 98, 0.22);
}

.tribute-video-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
}

.tribute-video-brand {
    font-size: 0.62rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(227, 218, 198, 0.55);
    margin: 0;
}

.tribute-video-knobs {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.tribute-knob {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.18), transparent 42%),
        conic-gradient(from 200deg, #c9a962, #8b7344, #5c4d32, #9a8350, #c9a962);
    border: 2px solid rgba(30, 26, 21, 0.9);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.18),
        0 2px 6px rgba(0, 0, 0, 0.45);
    opacity: 0.9;
}

.tribute-video-chrome .tribute-video-bezel {
    border-radius: 0.5rem;
    padding: 0.5rem;
    background: linear-gradient(180deg, #0d0c0a 0%, #1a1612 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.tribute-video-chrome video {
    display: block;
    width: 100%;
    max-height: min(50vh, 360px);
    border-radius: 0.35rem;
    background: #000;
}

.tribute-video-chrome .tribute-video-caption {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(227, 218, 198, 0.45);
    text-align: center;
    margin-top: 0.65rem;
}

@keyframes tributeBreeze {
    0% {
        transform: translate3d(0px, 0px, 0) rotate(0deg);
    }
    25% {
        transform: translate3d(calc(var(--breeze-amp, 1) * 2px), calc(var(--breeze-amp, 1) * -3px), 0) rotate(calc(var(--breeze-amp, 1) * 0.25deg));
    }
    50% {
        transform: translate3d(calc(var(--breeze-amp, 1) * -2px), calc(var(--breeze-amp, 1) * -1px), 0) rotate(calc(var(--breeze-amp, 1) * -0.25deg));
    }
    75% {
        transform: translate3d(calc(var(--breeze-amp, 1) * 1px), calc(var(--breeze-amp, 1) * 2px), 0) rotate(calc(var(--breeze-amp, 1) * 0.15deg));
    }
    100% {
        transform: translate3d(0px, 0px, 0) rotate(0deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tribute-card {
        animation: none;
    }
}
