/* 
    Created on : 26 May 2025, 1:17:44 pm
    Author     : sitif
*/
body {
    /*background-color: #000;*/
    /*color: #fff;*/
    /*font-family: 'Poppins', sans-serif;*/
    margin: 0;
    padding: 0;
}

/*.homepage-container {
    font-family: 'Raleway', sans-serif;
}*/

.movie-header {
    display: flex;
    align-items: center;
    padding: 30px 60px 10px;
    color: #EDDE80;
    text-shadow: 0 0 10px #EDDE80;
}

.movie-header h1 {
    margin-right: 30px;
    font-size: 42px;
    /*font-family: 'Playfair Display', serif;*/
}

.tabs {
    display: flex;
    gap: 20px;
    font-size: 18px;
}

.tab {
    cursor: pointer;
    padding-bottom: 4px;
    transition: all 0.3s ease;
}

.tab.active {
    border-bottom: 2px solid #EDDE80;
}

.movie-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 40px 60px;
}

.movie-card {
    background-color: #111;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 10px rgba(237, 222, 128, 0.3);
}

.movie-card img{
    transition: 0.3s ease;
}

.movie-scroll-wrapper .movie-card {
    min-width: 200px;
    max-width: 200px;
    flex: 0 0 auto;
}

.movie-card img {
    width: 100%;
    height: 300px; /* Set a consistent height */
    object-fit: cover; /* Crop nicely if image ratio varies */
    border-radius: 10px;
}

.movie-card:hover img {
    filter: brightness(0.4) !important;
}

.movie-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transition: 0.3s ease;
}

.movie-card:hover .movie-info {
    opacity: 1;
    color: var(--color-bright-gray);
    filter: brightness(1) !important;
    z-index: 1000 !important;
}

.movie-info button {
    background-color: var(--color-light-gold);
    color: #000;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.movie-info .details {
    font-size: 1em;
    line-height: 1.6;
}

.hidden {
    display: none;
}

.neon-legend-box {
    position: relative;
    padding: 20px;
    margin: 0 30px 30px ;
    border: 3px solid transparent;
    border-radius: 15px;
    /*    background: linear-gradient(#000, #000) padding-box,
                    linear-gradient(135deg, #fceabb, #f8d78d) border-box;*/
    box-shadow: 0 0 15px rgba(255, 235, 133, 0.7), 0 0 30px rgba(255, 235, 133, 0.4);
    overflow: hidden;
}

.movie-scroll-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.movie-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.movie-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #ff9900;
    border-radius: 10px;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: black;
    border: 2px solid #ff9900;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #00ff99;
    cursor: pointer;
    z-index: 2;
    padding: 10px;
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}

.top-movies-section {
    position: relative;
    padding: 30px 40px;
    border-radius: 12px;
    background: linear-gradient(#111, #111) padding-box,
        linear-gradient(120deg, #ff6b81, #f368e0) border-box;
    border: 3px solid transparent;
    box-shadow: 0 0 20px #ff6b81, 0 0 30px #f368e0;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.top-movies-section h2 {
    color: #EDDE80;
    text-shadow: 0 0 10px #EDDE80;
    font-family: 'Raleway', sans-serif;
}

.top-movies-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.top-movies-list li {
    font-size: 1.2rem;
    padding: 10px 0;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 15px;
}

/*.top-movies-section .row {
    display: flex;
    gap: 40px;
}*/

/*.top-movies-section ol {
    padding-left: 0;
}*/

.rank {
    font-weight: bold;
    color: #EDDE80;
    text-shadow: 0 0 8px #EDDE80, 0 0 16px #EDDE80;
}

.badge {
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
}

.badge.now {
    background-color: #52B788;
    color: #000;
}

.badge.coming {
    background-color: #EDDE80;
    color: #000;
}

/*.top10-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;  2 columns 
    gap: 15px 50px;  row gap and column gap 
}*/

.movie-rank {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    padding: 10px;
    border-bottom: 1px solid #333;
    color: #4561f5;
    font-weight: bold;
    text-shadow: 0 0 5px #4561f5, 0 0 16px #4561f5;
}

.movie-rank .badge {
    text-shadow: none;
}


/*Responsiveness*/
@media (max-width: 768px) {
    .movie-scroll-wrapper .movie-card {
        min-width: 200px;
        max-width: 200px;
    }

    .movie-card img {
        height: 300px;
    }
}

/* Intro animation styles */
#intro-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-light-gold);
    z-index: 1000;
    animation: fadeOut 3s 4s forwards; /* starts fading out after 4s */
}

#intro-container h1 {
    font-size: 5rem;
    text-shadow: 0 0 10px var(--color-dark-gold),
        0 0 20px var(--color-light-gold);
    animation: popIn 1.5s ease forwards;
    font-family: 'Vibur', cursive;
}

#intro-container p {
    font-family: 'Cinzel', serif; /* Replace 'Cinzel' with your chosen font */
    font-size: 1.5rem;
    margin-top: 1rem;
    opacity: 0;
    animation: fadeIn 1.5s 1.5s ease forwards; /* delay until h1 anim completes */
    color: var(--color-light-gold);
}



@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

#main-content {
    display: none;
}

body.intro-complete #main-content {
    display: block;
}

body.intro-complete #intro-container {
    display: none;
}

/* Hero Section Styling */
.hero-section {
    position: relative;
    width: 100%;
/*    height: 80vh;*/

    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /*background-color: var(--color-body-bg);*/
   
}

/* Carousel Container for 1500x500 images */
.carousel-container {
    width: 97%;
    max-width: 1500px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 0 30px var(--color-light-gold);
    overflow: hidden;
    position: relative;
}

.carousel-container img {
    width:100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hero overlay text below carousel */
.hero-intro {
    font-family: 'Vibur', cursive;
    font-size: 2rem;
    color: var(--color-light-gold);
    max-width: 700px;
    margin: 1rem auto 0 auto;
    text-align: center;
    text-shadow: 0 0 8px var(--color-light-gold),
        0 0 16px var(--color-light-gold);
    line-height: 1.8;
    animation: fadeInText 2.5s ease forwards;
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}