
/* ==============================
   JAVID NAMAN - MAIN DESIGN
================================ */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root {
    --background: #080808;
    --surface: #111111;
    --surface-light: #171313;
    --red: #ff202e;
    --red-glow: rgba(255, 32, 46, 0.35);
    --gold: #b99a56;
    --white: #f4f0e9;
    --gray: #999;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--white);
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.9;
}

/* HEADER */

header {
    text-align: center;
    padding: 75px 20px 55px;
    background:
        radial-gradient(
            ellipse at center,
            rgba(255, 20, 35, 0.12),
            transparent 65%
        );
    border-bottom: 1px solid rgba(185, 154, 86, 0.25);
}

header h1 {
    color: var(--gold);
    font-size: clamp(35px, 8vw, 65px);
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 0 18px rgba(185, 154, 86, 0.3);
}

header p {
    color: #c5c0b8;
    margin-top: 12px;
    font-size: 15px;
}

/* MAIN */

main {
    width: min(900px, 92%);
    margin: auto;
    padding: 35px 0 70px;
}

/* INTRO */

.intro {
    text-align: center;
    padding: 30px 15px;
    margin-bottom: 25px;
}

.intro h2 {
    color: var(--red);
    font-size: 24px;
    margin-bottom: 12px;
    text-shadow: 0 0 15px var(--red-glow);
}

.intro p {
    color: #b8b1ab;
    font-size: 14px;
}

/* SEARCH */

.search-area {
    position: sticky;
    top: 10px;
    z-index: 10;
    margin: 15px 0 25px;
}

#searchInput {
    width: 100%;
    padding: 16px 20px;
    background: #121212;
    border: 1px solid rgba(185, 154, 86, 0.45);
    border-radius: 12px;
    color: white;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    transition: 0.3s;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

#searchInput::placeholder {
    color: #777;
}

#searchInput:focus {
    border-color: var(--red);
    box-shadow: 0 0 15px var(--red-glow);
}

/* COUNT */

#count {
    color: var(--gold);
    font-size: 13px;
    margin-bottom: 15px;
}

/* NAMES */

.names-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.person {
    position: relative;
    padding: 16px 20px;
    background: linear-gradient(
        100deg,
        #121212,
        #191313,
        #101010
    );
    border: 1px solid rgba(255, 32, 46, 0.23);
    border-right: 3px solid var(--red);
    border-radius: 9px;
    color: #f0ece6;
    font-size: 14px;
    transition: 0.25s ease;
    animation: appear 0.4s ease both;
}

.person:hover {
    transform: translateX(-4px);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(255, 32, 46, 0.15);
    background: #1b1515;
}

/* EMPTY MESSAGE */

#emptyMessage {
    color: var(--gray);
    text-align: center;
    padding: 25px;
}

/* FOOTER */

footer {
    text-align: center;
    padding: 55px 15px 45px;
    border-top: 1px solid rgba(185, 154, 86, 0.3);
    background: #050505;
}

.footer-symbol {
    font-size: 32px;
    margin-bottom: 15px;
}

footer p {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255,255,255,0.12);
}

/* SOURCES */

.sources {
    max-width: 900px;
    width: 92%;
    margin: 0 auto 35px;
    padding: 20px;
    background: #101010;
    border: 1px solid #292323;
    border-radius: 12px;
}

.sources h3 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 15px;
}

.sources a {
    display: block;
    color: #c9c2b7;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid #292020;
}

.sources a:hover {
    color: var(--red);
}

/* ANIMATION */

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MOBILE */

@media (max-width: 600px) {

    header {
        padding: 55px 15px 40px;
    }

    main {
        width: 91%;
        padding-top: 20px;
    }

    .intro h2 {
        font-size: 21px;
    }

    .person {
        padding: 14px;
        font-size: 13px;
    }

    footer p {
        font-size: 16px;
    }
}

/* SELECTION */

::selection {
    background: var(--red);
    color: white;
}

