/* Movie Night Specific Styles */

/* Movie Theme Background */
.movie-theme {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 50%, #a29bfe 100%);
}

.movie-theme .shape {
    background: linear-gradient(45deg, #2d3436, #636e72, #a29bfe);
}

/* Floating Movies */
.floating-movies {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-movies .movie-emoji {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.3;
    animation: movieFloat 25s infinite ease-in-out;
}

.floating-movies .movie-emoji:nth-child(1) {
    top: 25%;
    left: 8%;
    animation-delay: 0s;
    animation-duration: 28s;
}

.floating-movies .movie-emoji:nth-child(2) {
    top: 60%;
    right: 12%;
    animation-delay: -5s;
    animation-duration: 30s;
}

.floating-movies .movie-emoji:nth-child(3) {
    bottom: 40%;
    left: 30%;
    animation-delay: -10s;
    animation-duration: 24s;
}

.floating-movies .movie-emoji:nth-child(4) {
    top: 35%;
    right: 35%;
    animation-delay: -15s;
    animation-duration: 27s;
}

.floating-movies .movie-emoji:nth-child(5) {
    bottom: 25%;
    left: 65%;
    animation-delay: -20s;
    animation-duration: 26s;
}

.floating-movies .movie-emoji:nth-child(6) {
    top: 75%;
    right: 5%;
    animation-delay: -25s;
    animation-duration: 29s;
}

@keyframes movieFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(20px, -30px) rotate(45deg) scale(1.2);
        opacity: 0.5;
    }
    50% {
        transform: translate(-15px, 15px) rotate(90deg) scale(0.8);
        opacity: 0.2;
    }
    75% {
        transform: translate(30px, 5px) rotate(135deg) scale(1.1);
        opacity: 0.4;
    }
}

/* Movie Spinner Styles */
.movie-spinner {
    background: conic-gradient(
        from 0deg,
        #2d3436 0deg 45deg,
        #636e72 45deg 90deg,
        #a29bfe 90deg 135deg,
        #fd79a8 135deg 180deg,
        #fdcb6e 180deg 225deg,
        #00b894 225deg 270deg,
        #e17055 270deg 315deg,
        #2d3436 315deg 360deg
    );
    box-shadow: 
        0 0 40px rgba(162, 155, 254, 0.5),
        0 0 80px rgba(45, 52, 54, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.2);
}

.movie-title {
    color: #fff;
    text-shadow: 
        0 0 10px #a29bfe,
        0 0 20px #a29bfe,
        0 0 30px #636e72,
        3px 3px 6px rgba(0, 0, 0, 0.5);
}

.movie-title .title-text {
    background: linear-gradient(45deg, #a29bfe, #fd79a8, #fdcb6e);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

.movie-pointer .pointer-triangle {
    border-top-color: #a29bfe;
    animation: moviePointerGlow 2s ease-in-out infinite alternate;
}

@keyframes moviePointerGlow {
    from {
        filter: drop-shadow(0 0 5px #a29bfe);
    }
    to {
        filter: drop-shadow(0 0 20px #a29bfe) drop-shadow(0 0 30px #fd79a8);
    }
}

.movie-center .center-circle {
    background: linear-gradient(135deg, #2d3436, #a29bfe);
    box-shadow: 
        0 0 30px rgba(162, 155, 254, 0.6),
        inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.movie-center .center-text {
    font-size: 1.5rem;
}

/* Movie Input Styles */
.movie-input {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    box-shadow: 
        0 10px 30px rgba(162, 155, 254, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.movie-input:focus {
    box-shadow: 
        0 20px 40px rgba(162, 155, 254, 0.3),
        0 0 20px #a29bfe,
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: #a29bfe;
}

.movie-decoration {
    background: linear-gradient(45deg, #a29bfe, #fd79a8, #fdcb6e, #2d3436);
    background-size: 400% 400%;
    animation: gradientRotate 3s ease-in-out infinite;
}

/* Movie Button */
.movie-button {
    background: linear-gradient(135deg, #2d3436, #a29bfe);
    box-shadow: 
        0 10px 30px rgba(162, 155, 254, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.movie-button:hover {
    box-shadow: 
        0 20px 40px rgba(162, 155, 254, 0.5),
        0 0 30px #a29bfe;
}

.movie-button .sparkle {
    color: #fdcb6e;
}

/* Movie Result Card */
.movie-result {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(162, 155, 254, 0.3);
    box-shadow: 
        0 20px 60px rgba(162, 155, 254, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.movie-result::before {
    background: linear-gradient(45deg, transparent, rgba(162, 155, 254, 0.1), transparent);
}

/* Movie Moods Section */
.movie-moods {
    margin: 4rem 1rem 2rem;
    animation: fadeInUp 1s ease-out 2s both;
}

.moods-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #fff;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Fredoka One', cursive;
}

.moods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.mood-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.mood-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px rgba(162, 155, 254, 0.3);
}

.mood-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(162, 155, 254, 0.2), transparent);
    transition: left 0.5s ease;
}

.mood-card:hover::before {
    left: 100%;
}

.mood-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: moodIconFlicker 3s ease-in-out infinite;
}

.mood-card:nth-child(1) .mood-icon { animation-delay: 0s; }
.mood-card:nth-child(2) .mood-icon { animation-delay: 0.5s; }
.mood-card:nth-child(3) .mood-icon { animation-delay: 1s; }
.mood-card:nth-child(4) .mood-icon { animation-delay: 1.5s; }

@keyframes moodIconFlicker {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
        text-shadow: 0 0 5px rgba(162, 155, 254, 0.5);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.3);
        text-shadow: 0 0 15px rgba(162, 155, 254, 0.8);
    }
}

.mood-name {
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.mood-desc {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-style: italic;
}

/* Movie-specific animations */
@keyframes movieReel {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        border-radius: 50%;
    }
    25% {
        transform: scale(1.05) rotate(90deg);
        border-radius: 45%;
    }
    50% {
        transform: scale(0.95) rotate(180deg);
        border-radius: 40%;
    }
    75% {
        transform: scale(1.02) rotate(270deg);
        border-radius: 45%;
    }
}

.movie-spinner.spinning {
    animation: spinWheel 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards, movieReel 0.8s ease-in-out 3.2s;
}

/* Cinema lighting effect */
.mood-card:hover {
    box-shadow: 
        0 20px 40px rgba(162, 155, 254, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.1),
        0 0 50px rgba(162, 155, 254, 0.2);
}

/* Film strip border effect */
.movie-result::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 10px solid transparent;
    border-image: repeating-linear-gradient(
        90deg,
        #2d3436 0px,
        #2d3436 10px,
        transparent 10px,
        transparent 20px
    ) 10;
    border-radius: 30px;
    pointer-events: none;
}

/* Spotlight effect */
@keyframes spotlight {
    0%, 100% {
        box-shadow: inset 0 0 50px rgba(162, 155, 254, 0.1);
    }
    50% {
        box-shadow: inset 0 0 100px rgba(162, 155, 254, 0.3);
    }
}

.movie-theme::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 20%, transparent 20%, rgba(0, 0, 0, 0.1) 50%);
    pointer-events: none;
    z-index: 1;
    animation: spotlight 8s ease-in-out infinite;
}

/* Responsive Movie Styles */
@media (max-width: 768px) {
    .moods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .mood-card {
        padding: 1.5rem 1rem;
    }
    
    .mood-icon {
        font-size: 2.5rem;
    }
    
    .mood-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .moods-grid {
        grid-template-columns: 1fr;
    }
    
    .mood-card {
        padding: 1.2rem 0.8rem;
    }
}
