/* =========================================================
   VIBECHECK - GLOBAL STYLES
   ========================================================= */


/* ==================== RESET ==================== */

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


html {
    scroll-behavior: smooth;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0b0b12;
    color: #ffffff;
    line-height: 1.6;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* ==================== CONTAINER ==================== */

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}


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

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(11, 11, 18, 0.85);

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

    backdrop-filter: blur(15px);
}


.nav-container {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.logo {
    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 21px;
    font-weight: 800;
}


.logo-icon {
    font-size: 25px;
}


.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}


.nav-link {
    color: #a9a9b5;
    font-size: 15px;
    font-weight: 600;

    transition: 0.2s ease;
}


.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}


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

.hero {
    position: relative;

    min-height: 620px;

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

    text-align: center;

    overflow: hidden;
}


.hero::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    top: 20px;
    left: 50%;

    transform: translateX(-50%);

    background: rgba(255, 77, 77, 0.13);

    filter: blur(100px);

    border-radius: 50%;

    pointer-events: none;
}


.hero-content {
    position: relative;
    z-index: 1;

    max-width: 800px;
}


.hero-badge {
    display: inline-block;

    padding: 8px 16px;

    margin-bottom: 25px;

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

    border-radius: 50px;

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

    color: #d4d4df;

    font-size: 14px;
}


.hero h1 {
    font-size: clamp(55px, 9vw, 100px);

    line-height: 0.95;

    letter-spacing: -5px;

    font-weight: 900;
}


.hero h1 span {
    background: linear-gradient(
        90deg,
        #ff4d4d,
        #ff8a3d
    );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}


.hero-description {
    max-width: 620px;

    margin: 28px auto 35px;

    color: #a7a7b5;

    font-size: 18px;
}


.hero-buttons {
    display: flex;

    justify-content: center;

    gap: 14px;

    flex-wrap: wrap;
}


/* ==================== BUTTONS ==================== */

.btn {
    display: inline-flex;

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

    min-height: 50px;

    padding: 0 25px;

    border-radius: 12px;

    font-weight: 700;

    font-size: 15px;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


.btn:hover {
    transform: translateY(-2px);
}


.btn-primary {
    background: linear-gradient(
        135deg,
        #ff4d4d,
        #ff7a3d
    );

    color: white;

    box-shadow:
        0 10px 30px rgba(255, 77, 77, 0.2);
}


.btn-secondary {
    background: rgba(255, 255, 255, 0.06);

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

    color: white;
}


/* ==================== FEATURES ==================== */

.features {
    padding: 100px 0;
}


.section-heading {
    text-align: center;

    margin-bottom: 50px;
}


.section-label {
    color: #ff7043;

    font-size: 13px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 2px;
}


.section-heading h2 {
    margin-top: 10px;

    font-size: clamp(35px, 5vw, 52px);

    letter-spacing: -2px;
}


.section-heading p {
    margin-top: 10px;

    color: #8f8f9e;
}


/* ==================== FEATURE GRID ==================== */

.feature-grid {
    display: grid;

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

    gap: 18px;
}


.feature-card {
    min-height: 220px;

    padding: 28px;

    border-radius: 20px;

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

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

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}


.feature-card:hover {
    transform: translateY(-5px);

    border-color: rgba(255, 255, 255, 0.16);

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


.feature-icon {
    width: 54px;
    height: 54px;

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

    margin-bottom: 20px;

    border-radius: 15px;

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

    font-size: 27px;
}


.feature-content h3 {
    font-size: 22px;

    margin-bottom: 8px;
}


.feature-content p {
    color: #92929f;

    font-size: 14px;

    max-width: 430px;
}


.feature-link {
    display: inline-block;

    margin-top: 18px;

    color: #ff7043;

    font-size: 14px;

    font-weight: 700;
}


/* ==================== COMING SOON ==================== */

.coming-card {
    cursor: default;

    opacity: 0.7;
}


.coming-card:hover {
    transform: none;
}


.coming-badge {
    display: inline-block;

    padding: 4px 9px;

    margin-bottom: 10px;

    border-radius: 6px;

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

    color: #888895;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.8px;
}


/* ==================== CTA ==================== */

.cta {
    padding: 20px 0 100px;
}


.cta-box {
    padding: 70px 30px;

    border-radius: 25px;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            rgba(255, 77, 77, 0.12),
            rgba(255, 130, 61, 0.05)
        );

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


.cta-icon {
    font-size: 45px;

    margin-bottom: 15px;
}


.cta-box h2 {
    font-size: clamp(30px, 5vw, 45px);

    letter-spacing: -1px;
}


.cta-box p {
    color: #92929f;

    margin: 10px 0 25px;
}


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

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.07);

    padding-top: 50px;

    background: #08080d;
}


.footer-content {
    display: flex;

    justify-content: space-between;

    gap: 40px;

    padding-bottom: 40px;
}


.footer-brand {
    max-width: 320px;
}


.footer-brand p {
    color: #777784;

    margin-top: 12px;

    font-size: 14px;
}


.footer-links {
    display: flex;

    gap: 25px;

    align-items: center;
}


.footer-links a {
    color: #8f8f9b;

    font-size: 14px;
}


.footer-links a:hover {
    color: white;
}


.footer-bottom {
    padding: 20px;

    text-align: center;

    border-top: 1px solid rgba(255, 255, 255, 0.06);

    color: #666672;

    font-size: 13px;
}


/* ==================== MOBILE ==================== */

@media (max-width: 700px) {

    .container {
        width: min(100% - 28px, 1120px);
    }


    .nav-container {
        min-height: 65px;
    }


    .nav {
        gap: 14px;
    }


    .nav-link {
        font-size: 13px;
    }


    .hero {
        min-height: 570px;
    }


    .hero h1 {
        letter-spacing: -3px;
    }


    .hero-description {
        font-size: 16px;
    }


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


    .features {
        padding: 75px 0;
    }


    .footer-content {
        flex-direction: column;
    }


    .footer-links {
        flex-wrap: wrap;
    }

}

/* =========================================================
   GENERATOR PAGES
   ========================================================= */


/* ==================== GENERATOR SECTION ==================== */

.generator-section {
    padding: 90px 0 110px;
}


.generator-container {
    max-width: 900px;
}


/* ==================== GENERATOR HEADING ==================== */

.generator-heading {
    text-align: center;

    max-width: 700px;

    margin: 0 auto 45px;
}


.generator-icon {
    font-size: 55px;

    margin-bottom: 15px;
}


.generator-heading h1 {
    font-size: clamp(42px, 7vw, 68px);

    line-height: 1;

    letter-spacing: -3px;

    margin-top: 10px;
}


.generator-heading p {
    color: #92929f;

    max-width: 600px;

    margin: 18px auto 0;

    font-size: 16px;
}


/* ==================== GENERATOR CARD ==================== */

.generator-card {
    padding: 35px;

    border-radius: 24px;

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

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

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.25);
}


.generator-group {
    margin-bottom: 35px;
}


.generator-group h2 {
    font-size: 17px;

    margin-bottom: 16px;
}


/* ==================== OPTION GRID ==================== */

.option-grid {
    display: grid;

    gap: 10px;
}


.language-grid {
    grid-template-columns: repeat(4, 1fr);
}


.roast-type-grid {
    grid-template-columns: repeat(5, 1fr);
}


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

.option-button {
    min-height: 52px;

    padding: 10px 12px;

    border-radius: 12px;

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

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

    color: #cfcfd8;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition:
        0.2s ease;
}


.option-button:hover {
    background: rgba(255, 255, 255, 0.08);

    border-color: rgba(255, 255, 255, 0.16);

    transform: translateY(-1px);
}


.option-button.selected {
    background: rgba(255, 77, 77, 0.12);

    border-color: rgba(255, 77, 77, 0.55);

    color: #ffffff;

    box-shadow:
        0 0 0 1px rgba(255, 77, 77, 0.08);
}


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

.generate-button {
    width: 100%;

    min-height: 58px;

    border: none;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #ff4d4d,
            #ff7a3d
        );

    color: white;

    font-family: inherit;

    font-size: 16px;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 15px 35px rgba(255, 77, 77, 0.18);

    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}


.generate-button:hover {
    transform: translateY(-2px);

    filter: brightness(1.08);
}


.generate-button:active {
    transform: translateY(0);
}


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

.result-card {
    margin-top: 25px;

    padding: 30px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 77, 77, 0.09),
            rgba(255, 255, 255, 0.035)
        );

    border: 1px solid rgba(255, 77, 77, 0.18);

    animation:
        resultAppear 0.35s ease;
}


@keyframes resultAppear {

    from {
        opacity: 0;

        transform:
            translateY(10px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


.result-header {
    color: #ff7650;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.5px;

    margin-bottom: 20px;
}


.result-text {
    font-size: clamp(20px, 3vw, 27px);

    line-height: 1.5;

    font-weight: 600;

    color: #f3f3f7;

    text-align: center;

    padding: 15px 5px 25px;
}


.result-actions {
    display: flex;

    justify-content: center;

    gap: 10px;

    flex-wrap: wrap;
}


.result-button {
    min-height: 43px;

    padding: 0 17px;

    border-radius: 10px;

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

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

    color: #d3d3dc;

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    transition:
        0.2s ease;
}


.result-button:hover {
    background: rgba(255, 255, 255, 0.09);

    color: white;

    transform: translateY(-1px);
}


/* ==================== HIDDEN ==================== */

.hidden {
    display: none;
}


/* ==================== GENERATOR MOBILE ==================== */

@media (max-width: 700px) {

    .generator-section {
        padding: 65px 0 80px;
    }


    .generator-card {
        padding: 22px 17px;

        border-radius: 20px;
    }


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


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


    .generator-heading h1 {
        letter-spacing: -2px;
    }


    .result-card {
        padding: 23px 18px;
    }


    .result-button {
        flex: 1;

        min-width: 120px;
    }

}

/* ==================== TEMPORARY MESSAGE ==================== */

.temporary-message {
    position: fixed;

    left: 50%;
    bottom: 30px;

    transform: translateX(-50%);

    z-index: 5000;

    padding: 12px 20px;

    border-radius: 10px;

    background: #20202a;

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

    color: #ffffff;

    font-size: 14px;

    font-weight: 600;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.35);

    animation:
        messageAppear 0.25s ease;
}


.temporary-message.hide {
    opacity: 0;

    transform:
        translate(-50%, 10px);

    transition:
        0.3s ease;
}


@keyframes messageAppear {

    from {
        opacity: 0;

        transform:
            translate(-50%, 10px);
    }

    to {
        opacity: 1;

        transform:
            translate(-50%, 0);
    }

}

/* =========================================================
   SHAYARI GENERATOR
   ========================================================= */

.shayari-type-grid {
    grid-template-columns: repeat(4, 1fr);
}


.shayari-text {
    white-space: pre-line;

    font-family: Georgia, "Times New Roman", serif;

    font-style: italic;

    letter-spacing: 0.2px;
}


@media (max-width: 700px) {

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

}

/* Gamer Personality Result */

#gamer-icon {
    display: block;
    text-align: center;
    font-size: 90px;
    line-height: 1;
    margin: 25px 0 20px;
}

#gamer-name {
    display: block;
    text-align: center;
    margin: 0 0 20px;
}

/* Cooked Result Layout */

#cooked-icon {
    display: block;
    text-align: center;
    font-size: 90px;
    line-height: 1;
    margin: 30px 0 25px;
}

#cooked-name {
    text-align: center;
    margin-top: 0;
}