/* ---------------------------------------------------
   GLOBAL
--------------------------------------------------- */

* {
    box-sizing: border-box;
}


body {

    margin: 0;

    padding: 40px 20px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background:
        #f5f7fa;

    color:
        #202124;

}


.container {

    max-width: 900px;

    margin: auto;

}



/* ---------------------------------------------------
   HEADER
--------------------------------------------------- */

.header {

    text-align: center;

    margin-bottom: 30px;

}


.ai-badge {

    display: inline-block;

    padding: 7px 12px;

    margin-bottom: 12px;

    border-radius: 20px;

    background:
        #eceff3;

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 1.5px;

    color:
        #555;

}


h1 {

    margin: 0;

    font-size: 34px;

}


.subtitle {

    margin-top: 10px;

    color:
        #667085;

    line-height: 1.5;

}



/* ---------------------------------------------------
   MAIN CARD
--------------------------------------------------- */

.card {

    background:
        white;

    border-radius:
        14px;

    padding:
        30px;

    box-shadow:
        0 4px 20px
        rgba(0, 0, 0, 0.08);

}


label {

    display:
        block;

    font-weight:
        bold;

    margin-bottom:
        10px;

}



/* ---------------------------------------------------
   TEXT AREA
--------------------------------------------------- */

textarea {

    width:
        100%;

    min-height:
        135px;

    resize:
        vertical;

    padding:
        16px;

    border:
        1px solid #ccd2da;

    border-radius:
        8px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        16px;

    line-height:
        1.5;

    transition:
        border 0.2s,
        box-shadow 0.2s;

}


textarea:focus {

    outline:
        none;

    border-color:
        #555;

    box-shadow:
        0 0 0 3px
        rgba(0, 0, 0, 0.05);

}



/* ---------------------------------------------------
   MAIN BUTTON
--------------------------------------------------- */

#classifyButton {

    width:
        100%;

    margin-top:
        22px;

    padding:
        15px;

    border:
        none;

    border-radius:
        8px;

    background:
        #202124;

    color:
        white;

    font-size:
        17px;

    font-weight:
        bold;

    cursor:
        pointer;

    transition:
        background 0.2s,
        transform 0.1s;

}


#classifyButton:hover {

    background:
        #383a3d;

}


#classifyButton:active {

    transform:
        scale(0.995);

}


#classifyButton:disabled {

    opacity:
        0.55;

    cursor:
        wait;

}



/* ---------------------------------------------------
   STATUS
--------------------------------------------------- */

#status {

    margin-top:
        18px;

    text-align:
        center;

    color:
        #667085;

    font-size:
        14px;

}



/* ---------------------------------------------------
   RESULTS
--------------------------------------------------- */

.results {

    margin-top:
        30px;

    border-top:
        1px solid #eceff3;

    padding-top:
        25px;

}


.results h2 {

    text-align:
        center;

    margin-top:
        0;

}



/* ---------------------------------------------------
   TOP CATEGORY
--------------------------------------------------- */

.top-category {

    text-align:
        center;

    padding:
        25px;

    margin-bottom:
        28px;

    background:
        #f5f7fa;

    border:
        1px solid #e7e9ed;

    border-radius:
        12px;

}


.best-label {

    font-size:
        11px;

    letter-spacing:
        2px;

    color:
        #667085;

    font-weight:
        bold;

}


.best-name {

    font-size:
        32px;

    font-weight:
        bold;

    margin:
        8px 0;

}


.best-score {

    color:
        #667085;

}



/* ---------------------------------------------------
   CATEGORY RESULTS
--------------------------------------------------- */

.all-results-title {

    font-weight:
        bold;

    margin-bottom:
        20px;

}


.category-row {

    margin-bottom:
        18px;

}


.category-header {

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    margin-bottom:
        7px;

}


.category-name {

    font-weight:
        bold;

}


.rank {

    display:
        inline-flex;

    justify-content:
        center;

    align-items:
        center;

    width:
        25px;

    height:
        25px;

    margin-right:
        8px;

    border-radius:
        50%;

    background:
        #eceff3;

    font-size:
        12px;

}


.percentage {

    font-weight:
        bold;

    color:
        #555;

}



/* ---------------------------------------------------
   RESULT BARS
--------------------------------------------------- */

.bar-background {

    height:
        12px;

    background:
        #e8eaed;

    border-radius:
        10px;

    overflow:
        hidden;

}


.bar {

    height:
        100%;

    background:
        #333;

    border-radius:
        10px;

    transition:
        width 0.5s ease;

}



/* ---------------------------------------------------
   WARNING
--------------------------------------------------- */

.score-warning {

    margin-top:
        25px;

    padding:
        15px;

    background:
        #f7f7f7;

    border-left:
        4px solid #777;

    border-radius:
        5px;

    font-size:
        13px;

    line-height:
        1.6;

    color:
        #555;

}



/* ---------------------------------------------------
   INFORMATION SECTIONS
--------------------------------------------------- */

.info {

    margin-top:
        25px;

    padding:
        25px;

    background:
        white;

    border-radius:
        12px;

    box-shadow:
        0 2px 10px
        rgba(0, 0, 0, 0.04);

    line-height:
        1.6;

    color:
        #555;

}


.info-title {

    font-size:
        18px;

    font-weight:
        bold;

    color:
        #202124;

    margin-bottom:
        10px;

}



/* ---------------------------------------------------
   EXAMPLES
--------------------------------------------------- */

.example-note {

    margin-top:
        5px;

    font-size:
        14px;

    color:
        #667085;

}


.examples {

    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        10px;

    margin-top:
        18px;

}


.example-btn {

    width:
        auto;

    margin:
        0;

    padding:
        9px 15px;

    background:
        #f3f4f6;

    color:
        #333;

    border:
        1px solid #d9dde3;

    border-radius:
        22px;

    font-size:
        14px;

    font-weight:
        normal;

    cursor:
        pointer;

    transition:
        all 0.2s;

}


.example-btn:hover {

    background:
        #202124;

    color:
        white;

    border-color:
        #202124;

}



/* ---------------------------------------------------
   PROCESS FLOW
--------------------------------------------------- */

.process {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    flex-wrap:
        wrap;

    gap:
        8px;

    margin:
        22px 0;

}


.process-box {

    padding:
        10px 14px;

    background:
        #f3f4f6;

    border:
        1px solid #e1e4e8;

    border-radius:
        7px;

    font-size:
        13px;

    font-weight:
        bold;

    color:
        #333;

}


.final-box {

    background:
        #202124;

    color:
        white;

    border-color:
        #202124;

}


.arrow {

    font-weight:
        bold;

    color:
        #888;

}


.how-text {

    margin-top:
        20px;

}



/* ---------------------------------------------------
   MODEL INFORMATION
--------------------------------------------------- */

.model-grid {

    display:
        grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap:
        15px;

    margin-top:
        18px;

}


.model-grid > div {

    padding:
        15px;

    background:
        #f7f8fa;

    border-radius:
        8px;

}


.model-label {

    display:
        block;

    margin-bottom:
        5px;

    font-size:
        11px;

    text-transform:
        uppercase;

    letter-spacing:
        1px;

    color:
        #777;

}



/* ---------------------------------------------------
   FOOTER
--------------------------------------------------- */

.footer {

    text-align:
        center;

    padding:
        30px 10px;

    color:
        #999;

    font-size:
        12px;

}



/* ---------------------------------------------------
   UTILITIES
--------------------------------------------------- */

.hidden {

    display:
        none;

}



/* ---------------------------------------------------
   MOBILE
--------------------------------------------------- */

@media (
    max-width: 700px
) {


    body {

        padding:
            20px 12px;

    }


    .card {

        padding:
            20px;

    }


    h1 {

        font-size:
            27px;

    }


    .model-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .process {

        flex-direction:
            column;

    }


    .arrow {

        transform:
            none;

    }

}