/* =========================================================
   DESTINY SAJU
   Celebrity Directory
   ========================================================= */


/* ---------- BASIC RESET ---------- */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    background: #ffffff;
    color: #241b33;
    font-family: "Poppins", "Noto Sans KR", Arial, sans-serif;
}


/* =========================================================
   MAIN PAGE
   ========================================================= */

.celebs-page {
    width: calc(100% - 40px);
    max-width: 1180px;

    margin: 55px auto 70px;
}


/* =========================================================
   INTRO
   ========================================================= */

.celebs-intro {
    text-align: center;

    margin-bottom: 48px;
}

.celebs-title {
    margin: 0 0 16px;

    color: #282039;

    font-size: 2.2rem;
    font-weight: 600;
}

.celebs-description {
    margin: 0 0 10px;

    color: #514663;

    font-size: 1.05rem;
    line-height: 1.7;
}

.celebs-note {
    max-width: 780px;

    margin: 0 auto;

    color: #817989;

    font-size: 0.86rem;
    line-height: 1.7;
}


/* =========================================================
   SEARCH
   ========================================================= */

.celebs-search-wrap {
    width: 100%;
    max-width: 620px;

    margin: 32px auto 0;
}

.celebs-search-box {
    position: relative;
}

.celebs-search-icon {
    position: absolute;

    left: 20px;
    top: 50%;

    transform: translateY(-50%);

    color: #8e8498;

    font-size: 1rem;

    pointer-events: none;
}

.celebs-search-input {
    width: 100%;

    padding: 16px 20px 16px 50px;

    background: #faf9fc;

    border: 1px solid #ded9e7;
    border-radius: 14px;

    color: #282039;

    font-family: inherit;
    font-size: 1rem;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.celebs-search-input::placeholder {
    color: #9a929f;
}

.celebs-search-input:focus {
    background: #ffffff;

    border-color: #b9acc8;

    box-shadow: 0 0 0 4px rgba(93, 73, 119, 0.08);
}


/* Remove browser search decoration */

.celebs-search-input::-webkit-search-cancel-button {
    cursor: pointer;
}


/* =========================================================
   CELEBRITY SECTIONS
   ========================================================= */

.celebs-section {
    margin: 0 auto 50px;
}

.celebs-section-heading {
    display: flex;
    align-items: center;

    gap: 18px;

    margin-bottom: 22px;
}

.celebs-section-heading h2 {
    flex: 0 0 auto;

    margin: 0;

    color: #332744;

    font-size: 1.35rem;
    font-weight: 600;
}

.celebs-section-line {
    flex: 1;

    height: 1px;

    background: #e1dbe7;
}


/* =========================================================
   CELEBRITY GRID
   ========================================================= */

.celebs-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 12px;
}


/* =========================================================
   CELEBRITY CARD
   ========================================================= */

.celeb-card {
    display: flex;

    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 58px;

    padding: 12px 14px;

    background: #faf9fc;

    border: 1px solid #e2dce8;
    border-radius: 12px;

    color: #40354d;

    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.35;

    text-align: center;
    text-decoration: none;

    overflow-wrap: anywhere;

    box-shadow: 0 2px 8px rgba(38, 27, 58, 0.025);

    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        color 0.18s ease;
}


/* Desktop hover */

@media (hover: hover) {

    .celeb-card:hover {
        transform: translateY(-2px);

        background: #f3eff7;

        border-color: #cfc3da;

        color: #282039;

        box-shadow: 0 5px 15px rgba(38, 27, 58, 0.07);
    }

}


/* Keyboard navigation */

.celeb-card:focus-visible {
    outline: 2px solid #a58a55;
    outline-offset: 3px;
}


/* =========================================================
   SEARCH STATES
   ========================================================= */

.celeb-hidden {
    display: none;
}

.celebs-section-hidden {
    display: none;
}

.celebs-no-results {
    display: none;

    margin: 70px auto;

    padding: 35px 20px;

    color: #706778;

    font-size: 1rem;

    text-align: center;
}

.celebs-no-results.show {
    display: block;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer-text p {
    margin: 0;

    font-size: 1rem;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .celebs-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .celebs-page {
        width: calc(100% - 28px);

        margin: 32px auto 45px;
    }


    /* ---------- Intro ---------- */

    .celebs-intro {
        margin-bottom: 36px;
    }

    .celebs-title {
        margin-bottom: 13px;

        font-size: 1.75rem;
        line-height: 1.3;
    }

    .celebs-description {
        padding: 0 8px;

        font-size: 0.96rem;
        line-height: 1.65;
    }

    .celebs-note {
        padding: 0 8px;

        font-size: 0.78rem;
        line-height: 1.65;
    }


    /* ---------- Search ---------- */

    .celebs-search-wrap {
        margin-top: 25px;
    }

    .celebs-search-input {
        padding: 14px 16px 14px 45px;

        border-radius: 12px;

        font-size: 0.95rem;
    }

    .celebs-search-icon {
        left: 17px;
    }


    /* ---------- Sections ---------- */

    .celebs-section {
        margin-bottom: 38px;
    }

    .celebs-section-heading {
        gap: 12px;

        margin-bottom: 16px;
    }

    .celebs-section-heading h2 {
        font-size: 1.1rem;
    }


    /* ---------- Grid ---------- */

    .celebs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 8px;
    }

    .celeb-card {
        min-height: 52px;

        padding: 10px 8px;

        border-radius: 9px;

        font-size: 0.86rem;
    }


    /* ---------- No Results ---------- */

    .celebs-no-results {
        margin: 45px auto;

        padding: 25px 15px;

        font-size: 0.92rem;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .celebs-page {
        width: calc(100% - 22px);
    }

    .celebs-grid {
        gap: 6px;
    }

    .celeb-card {
        min-height: 50px;

        padding: 9px 6px;

        font-size: 0.82rem;
    }

}