/* ==========================================================
   FIND YOUR MOOD
   Matches the homepage design language (style.css):
   dark bg #07090F, purple accents #7B2EFF/#8F5BFF,
   cards #151A2D with 20px radius, Montserrat.
========================================================== */

/* ============================
        HERO
============================ */

.mood-hero{
    padding-top:30px;
}

.hero-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 20px;
    border-radius:40px;
    background:rgba(143,91,255,.12);
    border:1px solid rgba(143,91,255,.35);
    color:#c9a8ff;
    font-size:14px;
    font-weight:700;
    letter-spacing:.4px;
    margin-bottom:26px;
}

.mood-hero h1{
    font-size:70px;
    font-weight:800;
    line-height:1.2;
}

.mood-hero h1 span{
    color:#8F5BFF;
    text-shadow:0 0 25px rgba(143,91,255,.7);
}

.mood-hero p{
    width:70%;
    margin:24px auto;
    color:#BFBFBF;
    font-size:18px;
    line-height:1.8;
}

.mood-hero-actions{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:16px;
    flex-wrap:wrap;
    margin-top:36px;
}

.surprise-btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:14px 34px;
    border:none;
    border-radius:40px;
    cursor:pointer;
    color:white;
    font-family:'Montserrat',sans-serif;
    font-size:16px;
    font-weight:700;
    background:linear-gradient(135deg,#7B2EFF,#3F8CFF);
    box-shadow:0 10px 30px rgba(123,46,255,.45);
    transition:.35s;
}

.surprise-btn:hover{
    transform:translateY(-4px);
    box-shadow:0 0 30px rgba(123,46,255,.75);
}

.mood-scroll-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:14px 30px;
    border-radius:40px;
    color:#D8D8D8;
    text-decoration:none;
    font-size:15px;
    font-weight:700;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(255,255,255,.05);
    transition:.3s;
}

.mood-scroll-btn:hover{
    color:white;
    border-color:#8F5BFF;
    background:rgba(143,91,255,.12);
}

/* ============================
        MOOD SECTION
============================ */

.mood-section{
    width:90%;
    max-width:1300px;
    margin:80px auto 60px;
}

.mood-section-head{
    text-align:center;
    margin-bottom:50px;
}

.mood-section-tag{
    display:inline-block;
    padding:8px 18px;
    border-radius:40px;
    background:rgba(143,91,255,.1);
    border:1px solid rgba(143,91,255,.3);
    color:#c9a8ff;
    font-size:13px;
    font-weight:700;
    letter-spacing:.5px;
    text-transform:uppercase;
    margin-bottom:18px;
}

.mood-section-head h2{
    font-size:40px;
    font-weight:800;
    color:white;
    letter-spacing:1px;
}

.mood-section-head p{
    color:#8f94b0;
    margin-top:14px;
    font-size:16px;
}

/* ============================
        MOOD GRID
============================ */

.mood-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
}

.mood-card{
    background:#151A2D;
    border:2px solid transparent;
    border-radius:20px;
    padding:30px 26px;
    text-align:center;
    cursor:pointer;
    transition:.3s;
    box-shadow:0 15px 35px rgba(0,0,0,.45);
    position:relative;
}

.mood-card:hover{
    transform:translateY(-8px);
    box-shadow:0 0 25px rgba(123,46,255,.4),0 20px 40px rgba(0,0,0,.5);
    border-color:rgba(143,91,255,.5);
}

.mood-card.selected{
    border-color:#8F5BFF;
    background:linear-gradient(145deg,#1c1636,#151A2D);
    box-shadow:0 0 30px rgba(143,91,255,.55),0 20px 40px rgba(0,0,0,.5);
}

.mood-card.selected::after{
    content:"✓";
    position:absolute;
    top:14px;
    right:14px;
    width:28px;
    height:28px;
    border-radius:50%;
    background:linear-gradient(135deg,#7B2EFF,#3F8CFF);
    color:white;
    font-size:15px;
    font-weight:800;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 0 15px rgba(123,46,255,.7);
}

.mood-icon{
    width:70px;
    height:70px;
    margin:0 auto 18px;
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:34px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.08);
}

.mood-card h3{
    font-size:20px;
    font-weight:700;
    margin-bottom:10px;
    color:white;
}

.mood-card p{
    color:#B8B8B8;
    font-size:13.5px;
    line-height:1.6;
}

/* ============================
        PICK BAR
============================ */

.mood-pick-bar{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:16px;
    margin-top:44px;
}

.pick-btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:16px 44px;
    border:none;
    border-radius:40px;
    cursor:pointer;
    color:white;
    font-family:'Montserrat',sans-serif;
    font-size:16px;
    font-weight:700;
    background:linear-gradient(135deg,#7B2EFF,#3F8CFF);
    box-shadow:0 10px 30px rgba(123,46,255,.45);
    transition:.35s;
}

.pick-btn:disabled{
    opacity:.45;
    cursor:not-allowed;
    box-shadow:none;
    transform:none;
}

.pick-btn:not(:disabled):hover{
    transform:translateY(-4px);
    box-shadow:0 0 30px rgba(123,46,255,.75);
}

.pick-hint{
    color:#8f94b0;
    font-size:14px;
}

/* ============================
        RESULT MODAL
============================ */

.modal-overlay[hidden]{
    display:none;
}

.modal-overlay{
    position:fixed;
    inset:0;
    z-index:2000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    background:rgba(4,6,12,.78);
    backdrop-filter:blur(8px);
    animation:fadeIn .25s ease;
}

.modal-card{
    width:min(880px,100%);
    max-height:92vh;
    overflow:auto;
    background:#12172a;
    border:1px solid rgba(143,91,255,.35);
    border-radius:24px;
    position:relative;
    box-shadow:0 30px 90px rgba(0,0,0,.7),0 0 60px rgba(123,46,255,.25);
    animation:modalUp .35s ease;
}

.modal-close{
    position:absolute;
    top:16px;
    right:16px;
    width:38px;
    height:38px;
    border-radius:50%;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(255,255,255,.06);
    color:#D8D8D8;
    font-size:16px;
    cursor:pointer;
    z-index:5;
    transition:.3s;
    display:flex;
    align-items:center;
    justify-content:center;
}

.modal-x{
    position:relative;
    width:16px;
    height:16px;
    display:block;
}

.modal-x::before,
.modal-x::after{
    content:"";
    position:absolute;
    left:50%;
    top:50%;
    width:16px;
    height:2px;
    border-radius:2px;
    background:currentColor;
    transform:translate(-50%,-50%) rotate(45deg);
}

.modal-x::after{
    transform:translate(-50%,-50%) rotate(-45deg);
}

.modal-close:hover{
    background:#ff3b6b;
    border-color:#ff3b6b;
    color:white;
    transform:rotate(90deg);
}

.modal-card-inner{
    display:flex;
    gap:0;
}

.modal-poster{
    flex:0 0 38%;
    min-height:420px;
}

.modal-poster img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:24px 0 0 24px;
    display:block;
}

.modal-info{
    flex:1;
    padding:44px 40px 36px;
    display:flex;
    flex-direction:column;
}

.modal-tag{
    display:inline-flex;
    align-items:center;
    gap:8px;
    align-self:flex-start;
    padding:7px 16px;
    border-radius:40px;
    background:rgba(143,91,255,.14);
    border:1px solid rgba(143,91,255,.35);
    color:#c9a8ff;
    font-size:12.5px;
    font-weight:700;
    letter-spacing:.4px;
    margin-bottom:16px;
}

.modal-info h3{
    font-size:30px;
    font-weight:800;
    color:white;
    line-height:1.25;
    margin-bottom:14px;
}

.modal-meta{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:18px;
}

.modal-meta span{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:7px 14px;
    border-radius:30px;
    font-size:12.5px;
    font-weight:700;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.1);
    color:#cfd3e3;
}

.modal-meta .meta-rating{
    color:#ffd54a;
    border-color:rgba(255,213,74,.35);
    background:rgba(255,213,74,.08);
}

.modal-info p{
    color:#aeb4c8;
    font-size:14.5px;
    line-height:1.75;
    flex:1;
}

.modal-actions{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    margin-top:26px;
}

.modal-view-btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:14px 30px;
    border-radius:40px;
    text-decoration:none;
    color:white;
    font-weight:700;
    font-size:15px;
    background:linear-gradient(135deg,#7B2EFF,#3F8CFF);
    box-shadow:0 8px 24px rgba(123,46,255,.4);
    transition:.3s;
}

.modal-view-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 0 26px rgba(123,46,255,.7);
}

.modal-again-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:14px 26px;
    border-radius:40px;
    cursor:pointer;
    color:#D8D8D8;
    font-family:'Montserrat',sans-serif;
    font-size:15px;
    font-weight:700;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.14);
    transition:.3s;
}

.modal-again-btn:hover{
    color:white;
    border-color:#8F5BFF;
    background:rgba(143,91,255,.12);
}

/* ============================
        WHY SECTION
============================ */

.why-section{
    width:90%;
    max-width:1300px;
    margin:40px auto 90px;
    text-align:center;
}

.why-section h2{
    font-size:38px;
    font-weight:800;
    color:white;
    letter-spacing:1px;
    margin-bottom:44px;
}

.why-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}

.why-card{
    background:#151A2D;
    border-radius:20px;
    padding:40px 30px;
    transition:.3s;
    box-shadow:0 15px 35px rgba(0,0,0,.45);
    border:1px solid rgba(255,255,255,.06);
}

.why-card:hover{
    transform:translateY(-10px);
    box-shadow:0 0 30px rgba(123,46,255,.35),0 20px 40px rgba(0,0,0,.5);
}

.why-card i{
    font-size:30px;
    color:#8F5BFF;
    margin-bottom:18px;
}

.why-card h3{
    font-size:20px;
    font-weight:700;
    margin-bottom:12px;
    color:white;
}

.why-card p{
    color:#B8B8B8;
    font-size:14px;
    line-height:1.7;
}

/* ============================
        FOOTER
============================ */

footer{
    margin-top:60px;
    padding:70px 7%;
    text-align:center;
    border-top:1px solid rgba(255,255,255,.06);
    background:rgba(255,255,255,.02);
}

footer h2{
    font-size:34px;
    font-weight:800;
    margin-bottom:14px;
    color:white;
}

footer p{
    color:#8f94b0;
    max-width:600px;
    margin:0 auto 30px;
    line-height:1.8;
}

.footer-links{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
    margin-bottom:26px;
}

.footer-links a{
    color:#cfd3e3;
    text-decoration:none;
    font-size:14.5px;
    font-weight:600;
    transition:.25s;
}

.footer-links a:hover{
    color:#8F5BFF;
}

.footer-social{
    display:flex;
    justify-content:center;
    gap:16px;
}

.footer-social a{
    width:42px;
    height:42px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.1);
    color:#cfd3e3;
    text-decoration:none;
    transition:.3s;
}

.footer-social a:hover{
    background:rgba(143,91,255,.15);
    border-color:#8F5BFF;
    color:#c9a8ff;
    transform:translateY(-3px);
}

/* ============================
        ANIMATIONS
============================ */

@keyframes fadeIn{
    from{opacity:0;}
    to{opacity:1;}
}

@keyframes modalUp{
    from{opacity:0;transform:translateY(40px) scale(.96);}
    to{opacity:1;transform:translateY(0) scale(1);}
}

/* ============================
        RESPONSIVE
============================ */

@media(max-width:1100px){

    .mood-grid{
        grid-template-columns:repeat(3,1fr);
    }

    .why-grid{
        grid-template-columns:repeat(3,1fr);
    }

}

@media(max-width:900px){

    .mood-hero h1{
        font-size:54px;
    }

    .mood-section-head h2{
        font-size:34px;
    }

    .mood-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .why-grid{
        grid-template-columns:1fr;
        max-width:460px;
        margin:auto;
    }

    .modal-card-inner{
        flex-direction:column;
    }

    .modal-poster{
        flex:none;
        min-height:0;
        max-height:320px;
    }

    .modal-poster img{
        border-radius:24px 24px 0 0;
    }

    .modal-info{
        padding:30px 26px 26px;
    }

}

@media(max-width:600px){

    .mood-hero h1{
        font-size:42px;
    }

    .mood-hero p{
        width:90%;
        font-size:16px;
    }

    .mood-grid{
        grid-template-columns:1fr;
    }

    .mood-section-head h2{
        font-size:28px;
    }

    .why-section h2{
        font-size:30px;
    }

    .modal-info h3{
        font-size:24px;
    }

    .modal-actions{
        flex-direction:column;
    }

    .modal-view-btn,
    .modal-again-btn{
        justify-content:center;
        width:100%;
    }

}
