/* ========== Base ========== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== Navigation ========== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: #c41e1e;
}

/* ========== Media Tabs ========== */
.media-tab {
    background: transparent;
    color: #9ca3af;
}

.media-tab:hover {
    color: #f0f0f0;
}

.media-tab.active {
    background: rgba(196, 30, 30, 0.15);
    color: #c41e1e;
}

/* ========== Carousels ========== */
.carousel-track {
    -webkit-user-select: none;
    user-select: none;
}

.carousel-track a,
.carousel-track button {
    -webkit-user-drag: none;
}

/* ========== Photo Carousel ========== */
.photo-scroll-track {
    -webkit-user-select: none;
    user-select: none;
}

.photo-scroll-track img,
.photo-scroll-track button {
    -webkit-user-drag: none;
}

.photo-scroll-track .lightbox-trigger {
    touch-action: manipulation;
}

/* ========== Show Cards ========== */
.show-card {
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.show-card:hover {
    transform: translateX(4px);
}

/* ========== Lightbox ========== */

/* ========== Newsletter Form ========== */
.newsletter-msg.success {
    color: #4ade80;
}

.newsletter-msg.error {
    color: #f87171;
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

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

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .show-card:hover {
        transform: none;
    }
}

/* ========== Line Clamp ========== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== Custom Scrollbar ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
