* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #0b0b16;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}


/* =========================
   HEADER
========================= */

header {
    padding: 30px 7%;
    text-align: center;
    border-bottom: 1px solid #292943;
    background: #0b0b16;
}

.logo,
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.logo-text {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 6px;
    white-space: nowrap;
}

.logo-line {
    width: 70px;
    height: 1px;
    background: #3b3b57;
}


/* =========================
   NAV
========================= */

nav {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

nav a {
    color: #c7c7d8;
    text-decoration: none;
    font-size: 15px;
    transition: 0.2s;
}

nav a:hover {
    color: white;
}


/* =========================
   HERO
========================= */

.hero {
    text-align: center;
    padding: 90px 20px 80px;
}

.small-title {
    font-size: 12px;
    letter-spacing: 5px;
    color: #aaaac0;
    margin-bottom: 22px;
}

h1 {
    font-size: 58px;
    line-height: 1.1;
    font-weight: 800;
}

h1 span {
    color: #cdb8ff;
}

.description {
    max-width: 650px;
    margin: 25px auto;
    color: #aaaabd;
    font-size: 18px;
    line-height: 1.6;
}


/* =========================
   GENERATOR
========================= */

.generator-box {
    max-width: 850px;
    margin: 42px auto 0;
    display: flex;
    gap: 12px;
    padding: 8px;
    background: #111122;
    border: 1px solid #30304b;
    border-radius: 18px;
}

#textInput {
    flex: 1;
    min-width: 0;
    padding: 18px 20px;
    border: none;
    border-radius: 12px;
    background: #17172a;
    color: white;
    font-size: 17px;
    outline: none;
}

#textInput::placeholder {
    color: #77778f;
}

#generateBtn {
    padding: 18px 25px;
    border: none;
    border-radius: 12px;
    background: #9472d6;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

#generateBtn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}


/* =========================
   SECTIONS
========================= */

.styles-section,
.symbols-section,
.rating-section {
    max-width: 1050px;
    margin: auto;
    padding: 75px 20px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.heading-line {
    width: 70px;
    height: 1px;
    background: #3b3b57;
}

h2 {
    text-align: center;
    font-size: 34px;
}

.section-description {
    text-align: center;
    color: #9999b0;
    margin: 12px 0 35px;
}


/* =========================
   RESULTS
========================= */

#results {
    display: grid;
    gap: 13px;
}

.empty-message {
    text-align: center;
    padding: 38px 20px;
    border: 1px dashed #3d3d58;
    border-radius: 15px;
    color: #9999b0;
    background: #101020;
}

.result-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    background: #141425;
    border: 1px solid #292941;
    border-radius: 15px;
    transition: 0.2s;
}

.result-card:hover {
    border-color: #554a70;
    transform: translateY(-2px);
}

.result-card small {
    color: #77778f;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.result-text {
    margin-top: 8px;
    font-size: 23px;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.copy-btn {
    flex-shrink: 0;
    padding: 11px 20px;
    border: 1px solid #3b3b57;
    border-radius: 9px;
    background: #24243a;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.copy-btn:hover {
    background: #9472d6;
    border-color: #9472d6;
}


/* =========================
   SYMBOLS
========================= */

.symbols-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
    gap: 12px;
}

.symbols-box span {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #141425;
    border: 1px solid #292941;
    border-radius: 13px;
    font-size: 28px;
    cursor: pointer;
    transition: 0.2s;
    user-select: none;
}

.symbols-box span:hover {
    transform: translateY(-3px) scale(1.04);
    border-color: #9472d6;
}


/* =========================
   RATING
========================= */

.rating-section {
    text-align: center;
}

.rating-box {
    max-width: 500px;
    margin: auto;
    padding: 35px 25px;
    background: #141425;
    border: 1px solid #292941;
    border-radius: 18px;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.star {
    border: none;
    background: transparent;
    color: #4a4a60;
    font-size: 42px;
    cursor: pointer;
    transition: 0.2s;
    padding: 3px;
}

.star:hover,
.star.active {
    color: #f4c542;
    transform: scale(1.12);
}

#ratingMessage {
    margin-top: 18px;
    color: #9999b0;
    font-size: 15px;
}


/* =========================
   FOOTER
========================= */

footer {
    text-align: center;
    padding: 60px 20px;
    border-top: 1px solid #292943;
    color: #9999b0;
}

.footer-logo {
    margin-bottom: 18px;
}

.footer-logo .logo-text {
    font-size: 30px;
}

.footer-logo .logo-line {
    width: 55px;
}

.creator {
    margin-top: 20px;
}

.creator strong {
    color: #cdb8ff;
}

.copyright {
    margin-top: 15px;
    font-size: 13px;
    color: #66667c;
}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

    .hero {
        padding: 70px 20px;
    }

    h1 {
        font-size: 48px;
    }

    .styles-section,
    .symbols-section,
    .rating-section {
        padding: 60px 20px;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    body {
        font-size: 14px;
    }

    /* HEADER */

    header {
        padding: 20px 14px;
    }

    .logo,
    .footer-logo {
        gap: 7px;
    }

    .logo-text {
        font-size: 29px;
        letter-spacing: 3px;
    }

    .logo-line {
        width: 25px;
    }


    /* NAV */

    nav {
        margin-top: 18px;
        gap: 10px 17px;
    }

    nav a {
        font-size: 12px;
    }


    /* HERO */

    .hero {
        padding: 55px 15px 45px;
    }

    .small-title {
        font-size: 10px;
        letter-spacing: 3px;
        margin-bottom: 16px;
    }

    h1 {
        font-size: 38px;
    }

    .description {
        margin: 18px auto;
        font-size: 15px;
        line-height: 1.55;
    }


    /* GENERATOR */

    .generator-box {
        width: 100%;
        margin-top: 28px;
        padding: 7px;
        flex-direction: column;
        gap: 8px;
        border-radius: 15px;
    }

    #textInput {
        width: 100%;
        padding: 16px;
        font-size: 16px;
    }

    #generateBtn {
        width: 100%;
        padding: 16px;
        font-size: 15px;
    }


    /* SECTIONS */

    .styles-section,
    .symbols-section,
    .rating-section {
        width: 100%;
        padding: 45px 14px;
    }

    .section-heading {
        gap: 8px;
    }

    .heading-line {
        width: 25px;
    }

    h2 {
        font-size: 25px;
    }

    .section-description {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 25px;
    }


    /* RESULT CARDS */

    #results {
        gap: 10px;
    }

    .result-card {
        width: 100%;
        padding: 15px;
        gap: 12px;
        align-items: stretch;
        flex-direction: column;
        border-radius: 13px;
    }

    .result-card small {
        font-size: 9px;
    }

    .result-text {
        font-size: 21px;
        line-height: 1.5;
        margin-top: 7px;
    }

    .copy-btn {
        width: 100%;
        padding: 12px;
        font-size: 13px;
    }


    /* SYMBOLS */

    .symbols-box {
        grid-template-columns: repeat(4, 1fr);
        gap: 7px;
    }

    .symbols-box span {
        min-height: 55px;
        font-size: 23px;
        border-radius: 10px;
    }


    /* RATING */

    .rating-box {
        width: 100%;
        padding: 28px 15px;
        border-radius: 15px;
    }

    .stars {
        gap: 4px;
    }

    .star {
        font-size: 34px;
        padding: 2px;
    }

    #ratingMessage {
        font-size: 13px;
    }


    /* FOOTER */

    footer {
        padding: 45px 15px;
    }

    .footer-logo .logo-text {
        font-size: 23px;
        letter-spacing: 3px;
    }

    .footer-logo .logo-line {
        width: 25px;
    }

    .creator {
        font-size: 13px;
    }

    .copyright {
        font-size: 11px;
    }
}


/* =========================
   VERY SMALL PHONES
========================= */

@media (max-width: 380px) {

    .logo-text {
        font-size: 25px;
    }

    h1 {
        font-size: 33px;
    }

    .description {
        font-size: 14px;
    }

    .symbols-box {
        grid-template-columns: repeat(4, 1fr);
    }

    .symbols-box span {
        min-height: 50px;
        font-size: 21px;
    }

    .result-text {
        font-size: 19px;
    }

    .star {
        font-size: 31px;
    }
}
