/* ============================================================
   RockMoney Search
   Main Stylesheet
   File: /search/assets/css/style.css
   ============================================================ */

:root {
    --bg: #f5f7fb;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-solid: #ffffff;
    --text: #172033;
    --muted: #697386;
    --border: rgba(25, 35, 55, 0.10);
    --accent: #315efb;
    --accent-dark: #2449d8;
    --accent-soft: rgba(49, 94, 251, 0.09);
    --shadow: 0 20px 60px rgba(25, 35, 55, 0.09);
    --shadow-small: 0 8px 25px rgba(25, 35, 55, 0.07);
    --radius-large: 28px;
    --radius-medium: 18px;
    --radius-small: 12px;
    --max-width: 1120px;
    --transition: 180ms ease;
}

html.dark-mode {
    --bg: #0b0f17;
    --surface: rgba(20, 26, 38, 0.82);
    --surface-solid: #141a26;
    --text: #f1f4f9;
    --muted: #9ba6b8;
    --border: rgba(255, 255, 255, 0.09);
    --accent: #6d8cff;
    --accent-dark: #87a0ff;
    --accent-soft: rgba(109, 140, 255, 0.12);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --shadow-small: 0 8px 25px rgba(0, 0, 0, 0.25);
}


/* ============================================================
   RESET
   ============================================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(49, 94, 251, 0.10),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 20%,
            rgba(130, 80, 255, 0.08),
            transparent 28%
        ),
        var(--bg);

    color: var(--text);

    transition:
        background var(--transition),
        color var(--transition);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ============================================================
   APP
   ============================================================ */

.search-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* ============================================================
   TOP BAR
   ============================================================ */

.topbar {
    width: 100%;
    max-width: var(--max-width);

    margin: 0 auto;

    padding:
        22px
        28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    font-weight: 800;
    letter-spacing: -0.4px;
}

.brand-mark {
    width: 35px;
    height: 35px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            var(--accent),
            #7b61ff
        );

    color: #ffffff;

    font-size: 16px;

    box-shadow:
        0 8px 20px
        rgba(49, 94, 251, 0.25);
}

.brand-text {
    font-size: 16px;
}

.brand-search {
    font-size: 13px;
    font-weight: 600;

    color: var(--muted);

    padding-left: 1px;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-nav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;

    transition:
        color var(--transition),
        transform var(--transition);
}

.top-nav a:hover {
    color: var(--text);
    transform: translateY(-1px);
}

.theme-button {
    width: 37px;
    height: 37px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--surface);

    color: var(--text);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transition:
        transform var(--transition),
        background var(--transition);
}

.theme-button:hover {
    transform: rotate(12deg);
    background: var(--surface-solid);
}


/* ============================================================
   MAIN
   ============================================================ */

.home-main {
    width: 100%;
    flex: 1;

    display: flex;
    justify-content: center;

    padding:
        40px
        22px
        70px;
}

.hero {
    width: 100%;
    max-width: 850px;

    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* ============================================================
   BADGE
   ============================================================ */

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding:
        8px
        13px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: var(--surface);

    color: var(--muted);

    font-size: 12px;
    font-weight: 700;

    box-shadow: var(--shadow-small);

    backdrop-filter: blur(14px);

    animation:
        fadeUp 500ms ease both;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #31b56b;

    box-shadow:
        0 0 0 4px
        rgba(49, 181, 107, 0.10);
}


/* ============================================================
   LOGO
   ============================================================ */

.hero-logo {
    margin-top: 30px;

    display: flex;
    flex-direction: column;
    align-items: center;

    animation:
        fadeUp 600ms ease both;
}

.logo-symbol {
    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 23px;

    background:
        linear-gradient(
            135deg,
            var(--accent),
            #7959ff
        );

    color: #ffffff;

    font-size: 34px;
    font-weight: 900;

    box-shadow:
        0 18px 45px
        rgba(49, 94, 251, 0.24);

    transform: rotate(-3deg);
}

.hero-logo h1 {
    margin:
        22px
        0
        0;

    font-size:
        clamp(38px, 7vw, 68px);

    line-height: 1;

    letter-spacing: -3px;

    font-weight: 850;
}

.hero-logo h1 span {
    background:
        linear-gradient(
            90deg,
            var(--accent),
            #825eff
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero-description {
    margin:
        20px
        0
        0;

    color: var(--muted);

    font-size: 16px;

    animation:
        fadeUp 700ms ease both;
}


/* ============================================================
   SEARCH FORM
   ============================================================ */

.search-form {
    width: 100%;

    margin-top: 32px;

    animation:
        fadeUp 800ms ease both;
}

.search-box {
    width: 100%;

    min-height: 66px;

    display: flex;
    align-items: center;

    padding:
        0
        14px
        0
        21px;

    border:
        1px solid
        var(--border);

    border-radius: 22px;

    background: var(--surface);

    box-shadow: var(--shadow);

    backdrop-filter: blur(18px);

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.search-box:focus-within {
    border-color:
        rgba(49, 94, 251, 0.35);

    box-shadow:
        0 20px 60px
        rgba(49, 94, 251, 0.13);

    transform: translateY(-1px);
}

.search-icon {
    flex: 0 0 auto;

    color: var(--muted);

    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;

    min-width: 0;

    height: 64px;

    padding:
        0
        14px;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--text);

    font-size: 17px;
}

.search-input::placeholder {
    color: var(--muted);
    opacity: 0.8;
}

.clear-button,
.voice-button {
    flex: 0 0 auto;

    width: 40px;
    height: 40px;

    border: 0;
    border-radius: 12px;

    background: transparent;

    color: var(--muted);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

.clear-button {
    display: none;

    font-size: 24px;
    line-height: 1;
}

.clear-button.visible {
    display: inline-flex;
}

.clear-button:hover,
.voice-button:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.voice-button:hover {
    transform: scale(1.04);
}

.search-actions {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-top: 17px;
}

.primary-button,
.secondary-button {
    min-height: 43px;

    padding:
        0
        18px;

    border-radius: 13px;

    font-size: 13px;
    font-weight: 750;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.primary-button {
    border: 1px solid var(--accent);

    background: var(--accent);

    color: #ffffff;

    box-shadow:
        0 10px 24px
        rgba(49, 94, 251, 0.20);
}

.primary-button:hover {
    background: var(--accent-dark);

    transform: translateY(-2px);

    box-shadow:
        0 13px 28px
        rgba(49, 94, 251, 0.28);
}

.secondary-button {
    border:
        1px solid
        var(--border);

    background: var(--surface);

    color: var(--text);
}

.secondary-button:hover {
    background: var(--surface-solid);

    transform: translateY(-2px);

    box-shadow: var(--shadow-small);
}


/* ============================================================
   SEARCH TYPES
   ============================================================ */

.search-types {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    margin-top: 27px;

    padding: 5px;

    border:
        1px solid
        var(--border);

    border-radius: 15px;

    background: var(--surface);

    backdrop-filter: blur(12px);
}

.search-type {
    border: 0;

    border-radius: 10px;

    background: transparent;

    color: var(--muted);

    padding:
        8px
        12px;

    font-size: 12px;
    font-weight: 700;

    transition:
        background var(--transition),
        color var(--transition);
}

.search-type span {
    margin-right: 4px;
}

.search-type:hover {
    color: var(--text);
}

.search-type.active {
    background: var(--accent-soft);
    color: var(--accent);
}


/* ============================================================
   QUICK AREA
   ============================================================ */

.quick-area {
    width: 100%;

    margin-top: 55px;

    animation:
        fadeUp 900ms ease both;
}

.quick-title {
    margin-bottom: 15px;

    color: var(--muted);

    font-size: 12px;
    font-weight: 750;

    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.quick-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 13px;
}

.quick-card {
    min-height: 83px;

    display: flex;
    align-items: center;

    gap: 14px;

    padding:
        16px;

    text-align: left;

    border:
        1px solid
        var(--border);

    border-radius: 18px;

    background: var(--surface);

    box-shadow:
        0 8px 28px
        rgba(25, 35, 55, 0.045);

    backdrop-filter: blur(12px);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.quick-card:hover {
    transform: translateY(-3px);

    border-color:
        rgba(49, 94, 251, 0.20);

    box-shadow: var(--shadow-small);
}

.quick-icon {
    width: 43px;
    height: 43px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: var(--accent-soft);

    color: var(--accent);

    font-size: 21px;
    font-weight: 700;
}

.quick-card strong {
    display: block;

    font-size: 13px;
    font-weight: 750;

    color: var(--text);
}

.quick-card small {
    display: block;

    margin-top: 5px;

    color: var(--muted);

    font-size: 11px;
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    width: 100%;
    max-width: var(--max-width);

    margin:
        auto
        auto
        0;

    padding:
        22px
        28px;

    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;

    gap: 20px;

    border-top:
        1px solid
        var(--border);

    color: var(--muted);

    font-size: 11px;
}

.footer-links {
    display: flex;
    align-items: center;

    gap: 17px;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-status {
    justify-self: end;

    display: flex;
    align-items: center;

    gap: 8px;
}


/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 720px) {

    .topbar {
        padding:
            16px
            17px;
    }

    .brand-text {
        display: none;
    }

    .brand-search {
        font-size: 12px;
    }

    .top-nav {
        gap: 10px;
    }

    .top-nav a {
        font-size: 12px;
    }

    .home-main {
        padding:
            28px
            16px
            45px;
    }

    .hero-badge {
        font-size: 10px;
    }

    .logo-symbol {
        width: 61px;
        height: 61px;

        border-radius: 20px;

        font-size: 29px;
    }

    .hero-logo h1 {
        margin-top: 18px;

        letter-spacing: -2px;
    }

    .hero-description {
        margin-top: 15px;

        font-size: 14px;
    }

    .search-form {
        margin-top: 25px;
    }

    .search-box {
        min-height: 59px;

        padding-left: 16px;

        border-radius: 18px;
    }

    .search-input {
        height: 57px;

        padding:
            0
            9px;

        font-size: 15px;
    }

    .clear-button,
    .voice-button {
        width: 36px;
        height: 36px;
    }

    .search-actions {
        margin-top: 13px;
    }

    .primary-button,
    .secondary-button {
        min-height: 40px;

        padding:
            0
            14px;

        font-size: 12px;
    }

    .search-types {
        margin-top: 21px;

        max-width: 100%;

        overflow-x: auto;

        justify-content: flex-start;

        scrollbar-width: none;
    }

    .search-types::-webkit-scrollbar {
        display: none;
    }

    .search-type {
        flex: 0 0 auto;
    }

    .quick-area {
        margin-top: 40px;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        grid-template-columns: 1fr;

        padding:
            18px
            17px;

        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-status {
        justify-self: center;
    }

}


/* ============================================================
   VERY SMALL DEVICES
   ============================================================ */

@media (max-width: 390px) {

    .search-actions {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .footer-links {
        flex-wrap: wrap;
    }

}
/* =========================================================
   FOOTER AD
   ========================================================= */

.footer-ad {
    width: 100%;
    max-width: 420px;
    margin: 10px auto 18px;
    padding: 0 10px;
    box-sizing: border-box;
    text-align: center;
}

.footer-ad .adsbygoogle {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}
/* =========================================================
   FOOTER ADSENSE AD
   ========================================================= */

.footer-ad {
    width: 100%;
    max-width: 500px;
    margin: 15px auto;
    padding: 0 10px;
    box-sizing: border-box;
    text-align: center;
}

.footer-ad .adsbygoogle {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}