/* =============================================
   Custom Styles
   ============================================= */

/* ---------------------------------------------
   Glass Effects
   --------------------------------------------- */
   .glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---------------------------------------------
   Movie Cards (index.html)
   --------------------------------------------- */
.movie-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, #131920 0%, #0b0f14 100%);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.movie-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.movie-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(245, 158, 11, 0.1);
}

.movie-card:hover .poster-image {
    transform: scale(1.05);
}

.movie-card:hover .card-overlay {
    opacity: 1;
}

.movie-card:hover .rating-badge {
    background: rgba(245, 158, 11, 0.9);
}

.poster-wrapper {
    position: relative;
    overflow: hidden;
}

.poster-image {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 15, 20, 0.95) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.rating-badge {
    transition: all 0.3s ease;
}

/* ---------------------------------------------
   Fire Title Animation
   --------------------------------------------- */
.fire-title {
    position: relative;
    display: inline-block;
    background: linear-gradient(
        90deg,
        #ff4d00,
        #ff6b00,
        #f59e0b,
        #fbbf24,
        #fff7ed,
        #fbbf24,
        #f59e0b,
        #ff6b00,
        #ff4d00
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fire-shimmer 4s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.4));
}

.fire-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        #ff6b00,
        #f59e0b,
        #fbbf24,
        #f59e0b,
        #ff6b00,
        transparent
    );
    background-size: 200% 100%;
    border-radius: 2px;
    animation: fire-underline 3s ease-in-out infinite;
}

@keyframes fire-shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

@keyframes fire-underline {
    0%, 100% { 
        background-position: -100% center;
        opacity: 0.6;
    }
    50% { 
        background-position: 100% center;
        opacity: 1;
    }
}

/* ---------------------------------------------
   Filter Chips
   --------------------------------------------- */
.filter-chip {
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #f59e0b;
}

.filter-chip.active {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #0b0f14;
}

/* ---------------------------------------------
   Movie Details Page (movie.html)
   --------------------------------------------- */
.poster-glow {
    box-shadow: 0 0 60px rgba(245, 158, 11, 0.15), 0 20px 40px rgba(0, 0, 0, 0.5);
}

.rating-ring {
    background: conic-gradient(var(--rating-color, #f59e0b) calc(var(--score) * 3.6deg), rgba(255,255,255,0.1) 0deg);
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.genre-badge:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
}

/* ---------------------------------------------
   Utility Classes
   --------------------------------------------- */
  
/* Custom scrollbar - visible on desktop, hidden on mobile */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 158, 11, 0.3) transparent;
}

.custom-scrollbar::-webkit-scrollbar {
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.3);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 158, 11, 0.5);
}

/* Typeahead dropdown */
.tt-menu {
    position: absolute;
    z-index: 60;
    margin-top: 0.5rem;

    width: 100%;
    max-height: 24rem;
    overflow-y: auto;
 
    background-color: #131920;     /* solid surface-light */
    backdrop-filter: none;          /* remove translucency */
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.75rem;

    /* Subtle shadow for separation */
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
}

/* Highlighted cursor item */
.tt-suggestion.tt-cursor {
    background-color: #1a222c !important; /* darker, vivid highlight */
}

/* Improve text readability */
.tt-suggestion p {
    color: #e5e7eb; /* gray-200 */
}
 
.twitter-typeahead {
    display: block !important;
    width: 100% !important;
}
 
.twitter-typeahead .tt-input,
.twitter-typeahead .tt-hint {
    width: 100% !important;
}
