/* =========================================
   GLOBAL
========================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    background:#050505;

    color:white;

    font-family:'Inter',sans-serif;

    overflow-x:hidden;
}

/* =========================================
   BACKGROUND
========================================= */

.background-glow{

    position:fixed;

    top:-250px;
    right:-180px;

    width:700px;
    height:700px;

    background:radial-gradient(
        circle,
        rgba(255,0,120,0.14),
        transparent 70%
    );

    z-index:-2;

    pointer-events:none;
}

.particles-bg{

    position:fixed;

    inset:0;

    overflow:hidden;

    z-index:-3;
}

.particles-bg span{

    position:absolute;

    width:4px;
    height:4px;

    background:rgba(255,255,255,0.15);

    border-radius:50%;

    animation:floatParticle 14s linear infinite;
}

.particles-bg span:nth-child(1){
    top:10%;
    left:20%;
}

.particles-bg span:nth-child(2){
    top:30%;
    left:70%;
}

.particles-bg span:nth-child(3){
    top:60%;
    left:40%;
}

.particles-bg span:nth-child(4){
    top:80%;
    left:85%;
}

.particles-bg span:nth-child(5){
    top:50%;
    left:10%;
}

@keyframes floatParticle{

    0%{
        transform:translateY(0px);
        opacity:0;
    }

    50%{
        opacity:1;
    }

    100%{
        transform:translateY(-120px);
        opacity:0;
    }
}

/* =========================================
   LAYOUT
========================================= */

.dashboard-layout{

    display:flex;

    min-height:100vh;
}

/* =========================================
   SIDEBAR
========================================= */

.sidebar{

    width:240px;

    background:#090909;

    border-right:1px solid rgba(255,255,255,0.08);

    padding:24px 18px;

    display:flex;
    flex-direction:column;
    justify-content:space-between;

    position:sticky;
    top:0;

    height:100vh;
}

.sidebar-logo{

    font-size:2rem;

    font-weight:800;

    margin-bottom:45px;

    background:linear-gradient(
        90deg,
        #ff0080,
        #7b61ff
    );

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.sidebar-menu{

    display:flex;

    flex-direction:column;

    gap:12px;
}

.sidebar-menu a{

    color:#c8c8c8;

    padding:14px 16px;

    border-radius:16px;

    transition:0.25s ease;

    font-size:0.96rem;

    font-weight:500;
}

.sidebar-menu a:hover,
.active-link{

    background:rgba(255,255,255,0.06);

    color:white !important;

    transform:translateX(4px);
}

.upgrade-mini-btn{

    width:100%;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:14px;

    border-radius:16px;

    background:rgba(255,255,255,0.04);

    border:1px solid rgba(255,255,255,0.08);

    color:white;

    font-weight:600;

    transition:0.25s ease;
}

.upgrade-mini-btn:hover{

    transform:translateY(-2px);

    background:rgba(255,255,255,0.08);
}

/* =========================================
   MAIN
========================================= */

.dashboard-main{

    flex:1;

    padding:50px;

    width:100%;
}

.dashboard-content-wrapper{

    width:100%;

    max-width:1400px;

    margin:0 auto;

    display:flex;

    flex-direction:column;

    gap:40px;
}

/* =========================================
   HEADER
========================================= */

.dashboard-label{

    color:#9d9d9d;

    font-size:0.82rem;

    font-weight:700;

    letter-spacing:1px;

    margin-bottom:12px;
}

.dashboard-title{

    font-size:3rem;

    font-weight:700;

    margin-bottom:12px;
}

.dashboard-subtitle{

    color:#a4a4a4;

    line-height:1.8;

    max-width:760px;
}

/* =========================================
   CARD SYSTEM
========================================= */

.analyzer-card,
.main-score-card,
.analysis-card,
.strategy-card,
.stats-card{

    background:linear-gradient(
        135deg,
        rgba(255,255,255,0.04),
        rgba(255,0,120,0.05)
    );

    border:1px solid rgba(255,255,255,0.08);

    backdrop-filter:blur(12px);

    border-radius:30px;
}

/* =========================================
   INPUT SECTION
========================================= */

.analyzer-card{

    padding:38px;
}

.analyzer-top{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:30px;
}

.mini-label{

    color:#9f9f9f;

    font-size:0.82rem;

    font-weight:700;

    letter-spacing:1px;

    margin-bottom:10px;
}

.analyzer-top h2{

    font-size:2rem;
}

.generator-badge{

    background:rgba(255,255,255,0.05);

    border:1px solid rgba(255,255,255,0.08);

    padding:10px 18px;

    border-radius:999px;

    font-size:0.82rem;

    font-weight:600;
}

/* =========================================
   INPUTS
========================================= */

.input-group{

    margin-bottom:25px;
}

.input-group label{

    display:block;

    margin-bottom:10px;

    font-weight:600;
}

.input-group input{

    width:100%;

    background:#0f0f0f;

    border:1px solid rgba(255,255,255,0.08);

    color:white;

    padding:18px 20px;

    border-radius:18px;

    outline:none;

    font-size:0.96rem;

    transition:0.25s;
}

.input-group input:focus{

    border-color:#ff0080;

    box-shadow:0 0 25px rgba(255,0,120,0.15);
}

/* =========================================
   BUTTON
========================================= */

.primary-btn{

    border:none;

    outline:none;

    background:linear-gradient(
        90deg,
        #ff0080,
        #7b61ff
    );

    color:white;

    padding:18px 26px;

    border-radius:18px;

    font-size:1rem;

    font-weight:700;

    cursor:pointer;

    transition:0.25s ease;

    position:relative;

    overflow:hidden;
}

.primary-btn:hover{

    transform:translateY(-2px);

    box-shadow:0 0 35px rgba(255,0,120,0.35);
}

/* =========================================
   RESULTS
========================================= */

.reel-results{

    display:flex;

    flex-direction:column;

    gap:28px;
}

/* =========================================
   SCORE CARD
========================================= */

.main-score-card{

    padding:40px;

    display:flex;

    align-items:center;

    gap:35px;
}

.score-circle{

    width:170px;
    height:170px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    position:relative;

    background:conic-gradient(
        #ff0080 0deg,
        #7b61ff 260deg,
        rgba(255,255,255,0.08) 260deg
    );

    animation:spinGlow 5s linear infinite;
}

.score-circle::before{

    content:"";

    position:absolute;

    width:128px;
    height:128px;

    border-radius:50%;

    background:#090909;
}

.score-number{

    position:relative;

    z-index:2;

    font-size:3rem;

    font-weight:800;
}

@keyframes spinGlow{

    0%{
        filter:hue-rotate(0deg);
    }

    100%{
        filter:hue-rotate(360deg);
    }
}

.score-info h3{

    font-size:2.4rem;

    margin-bottom:14px;
}

.score-info p{

    color:#b2b2b2;

    line-height:1.9;

    max-width:700px;
}

/* =========================================
   STATS
========================================= */

.analyzer-stats{

    display:grid;

    grid-template-columns:repeat(
        auto-fit,
        minmax(220px,1fr)
    );

    gap:22px;
}

.stats-card{

    padding:30px;
}

.stats-card h3{

    font-size:2.2rem;

    margin-bottom:12px;
}

.stats-card p{

    color:#adadad;
}

/* =========================================
   ANALYSIS GRID
========================================= */

.analysis-grid{

    display:grid;

    grid-template-columns:repeat(
        auto-fit,
        minmax(340px,1fr)
    );

    gap:24px;
}

.analysis-card{

    padding:30px;

    min-height:300px;
}

.analysis-card h3{

    margin-bottom:24px;

    font-size:1.3rem;
}

.analysis-card div{

    color:#d2d2d2;

    line-height:2;
}

/* =========================================
   STRATEGY CARD
========================================= */

.strategy-card{

    padding:34px;
}

.strategy-card h3{

    font-size:1.6rem;

    margin-bottom:22px;
}

.strategy-card div{

    color:#d0d0d0;

    line-height:2;
}

/* =========================================
   UTILITIES
========================================= */

.hidden{

    display:none;
}

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

@media(max-width:1000px){

    .dashboard-layout{

        flex-direction:column;
    }

    .sidebar{

        width:100%;

        height:auto;

        position:relative;
    }

    .dashboard-main{

        padding:28px;
    }

    .main-score-card{

        flex-direction:column;

        text-align:center;
    }
}

@media(max-width:768px){

    .dashboard-title{

        font-size:2.2rem;
    }

    .analysis-grid{

        grid-template-columns:1fr;
    }
}

/* =========================================
   LIVE ANALYZE BUTTON
========================================= */

.analyze-btn{

    position:relative;

    overflow:hidden;

    isolation:isolate;
}

.analyze-btn::before{

    content:"";

    position:absolute;

    top:0;
    left:-120%;

    width:120%;
    height:100%;

    background:linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.18),
        transparent
    );

    transform:skewX(-20deg);

    animation:buttonSweep 3.5s linear infinite;
}

@keyframes buttonSweep{

    0%{
        left:-120%;
    }

    100%{
        left:140%;
    }
}

.analyze-btn:hover{

    transform:translateY(-3px);

    box-shadow:
        0 0 25px rgba(255,0,120,0.35),
        0 0 60px rgba(123,97,255,0.25);
}

/* =========================================
   LOADING STATE
========================================= */

.loading-btn{

    opacity:0.9;

    pointer-events:none;
}

.loader-ring{

    width:18px;
    height:18px;

    border-radius:50%;

    border:2px solid rgba(255,255,255,0.25);

    border-top:2px solid white;

    display:inline-block;

    margin-right:10px;

    animation:spinLoader 0.8s linear infinite;

    vertical-align:middle;
}

@keyframes spinLoader{

    100%{
        transform:rotate(360deg);
    }
}

/* =========================================
   FLOATING CARD EFFECT
========================================= */

.analysis-card,
.stats-card,
.strategy-card,
.main-score-card{

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.analysis-card:hover,
.stats-card:hover,
.strategy-card:hover,
.main-score-card:hover{

    transform:
        translateY(-6px)
        scale(1.01);

    border-color:
        rgba(255,0,120,0.22);

    box-shadow:
        0 0 40px rgba(255,0,120,0.08);
}

/* =========================================
   SCORE ENERGY PULSE
========================================= */

.score-circle{

    box-shadow:
        0 0 35px rgba(255,0,120,0.18),
        0 0 80px rgba(123,97,255,0.12);

    animation:
        spinGlow 5s linear infinite,
        pulseScore 2.4s ease-in-out infinite;
}

@keyframes pulseScore{

    0%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.03);
    }

    100%{
        transform:scale(1);
    }
}

/* =========================================
   AI ANALYSIS TEXT
========================================= */

.analysis-card div p,
.strategy-card div p{

    margin-bottom:16px;

    color:#d7d7d7;

    animation:fadeLine 0.5s ease;
}

@keyframes fadeLine{

    from{

        opacity:0;

        transform:translateY(8px);
    }

    to{

        opacity:1;

        transform:translateY(0px);
    }
}

/* =========================================
   RESULT REVEAL
========================================= */

.reel-results{

    animation:resultsReveal 0.7s ease;
}

@keyframes resultsReveal{

    from{

        opacity:0;

        transform:translateY(25px);
    }

    to{

        opacity:1;

        transform:translateY(0px);
    }
}

/* =========================================
   AMBIENT MOTION GLOW
========================================= */

body::before{

    content:"";

    position:fixed;

    bottom:-250px;
    left:-180px;

    width:550px;
    height:550px;

    background:radial-gradient(
        circle,
        rgba(123,97,255,0.12),
        transparent 70%
    );

    z-index:-4;

    animation:ambientMove 8s ease-in-out infinite;
}

@keyframes ambientMove{

    0%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-30px);
    }

    100%{
        transform:translateY(0px);
    }
}