/* =========================================================
   DIGISADHAN.COM
   X (TWITTER) TRENDS - WORLDWIDE
========================================================= */

:root {

    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;

    --dark: #111827;
    --dark-soft: #1f2937;

    --text: #374151;
    --muted: #6b7280;

    --white: #ffffff;
    --background: #f5f7fb;

    --border: #e5e7eb;

    --green: #059669;
    --green-light: #ecfdf5;

    --orange: #f59e0b;
    --red: #dc2626;

    --shadow:
        0 12px 35px rgba(15, 23, 42, .07);

}


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

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


html {
    scroll-behavior: smooth;
}


body {

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);

    background: var(--background);

    line-height: 1.6;

}


button,
input {
    font: inherit;
}


button {
    cursor: pointer;
}


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


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

.site-header {

    position: sticky;

    top: 0;

    z-index: 1000;

    background:
        rgba(255, 255, 255, .96);

    border-bottom:
        1px solid var(--border);

    backdrop-filter:
        blur(12px);

}


.header-inner {

    width:
        min(1100px, calc(100% - 30px));

    min-height: 68px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.brand {

    display: flex;

    align-items: center;

    gap: 10px;

}


.brand-logo {

    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    border-radius: 10px;

    font-size: 13px;

    font-weight: 800;

}


.brand-text {

    display: flex;

    flex-direction: column;

}


.brand-text strong {

    color: var(--dark);

    font-size: 17px;

    line-height: 1.1;

}


.brand-text span {

    color: var(--muted);

    font-size: 8px;

}


.main-nav {

    display: flex;

    gap: 25px;

}


.main-nav a {

    color: var(--text);

    font-size: 12px;

    font-weight: 600;

}


.main-nav a:hover {
    color: var(--primary);
}


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

.container {

    width:
        min(1080px, calc(100% - 30px));

    margin: auto;

    padding:
        25px 0 75px;

}


/* =========================================================
   BREADCRUMB
========================================================= */

.breadcrumb {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 7px;

    margin-bottom: 25px;

    color: var(--muted);

    font-size: 10px;

}


.breadcrumb a:hover {
    color: var(--primary);
}


.breadcrumb strong {
    color: var(--text);
}


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

.hero {

    display: flex;

    align-items: center;

    gap: 18px;

    margin-bottom: 28px;

}


.hero-logo {

    width: 68px;

    height: 68px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    color: white;

    background: #111827;

    border-radius: 17px;

    font-size: 34px;

    font-weight: 700;

}


.eyebrow {

    color: var(--primary);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.6px;

}


.hero h1 {

    margin-top: 3px;

    color: var(--dark);

    font-size:
        clamp(27px, 4vw, 41px);

    line-height: 1.18;

}


.hero p {

    max-width: 780px;

    margin-top: 7px;

    color: var(--muted);

    font-size: 14px;

}


/* =========================================================
   TOOL CARD
========================================================= */

.tool-card {

    padding:
        clamp(20px, 4vw, 38px);

    background: white;

    border:
        1px solid var(--border);

    border-radius: 18px;

    box-shadow:
        var(--shadow);

}


/* =========================================================
   TOOL TOP
========================================================= */

.tool-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

}


.tool-label {

    color: var(--primary);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.5px;

}


.tool-top h2 {

    margin-top: 3px;

    color: var(--dark);

    font-size: 23px;

}


.tool-top p {

    margin-top: 3px;

    color: var(--muted);

    font-size: 11px;

}


.refresh-btn {

    min-height: 44px;

    padding:
        0 17px;

    color: white;

    background: var(--primary);

    border: none;

    border-radius: 8px;

    font-size: 11px;

    font-weight: 700;

    transition: .2s;

}


.refresh-btn:hover {

    background:
        var(--primary-dark);

    transform:
        translateY(-1px);

}


.refresh-btn.loading {

    pointer-events: none;

    opacity: .7;

}


#refreshIcon {

    display: inline-block;

    margin-right: 4px;

}


/* =========================================================
   LOCATION
========================================================= */

.location-card {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 24px;

    padding:
        14px 16px;

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #eff6ff
        );

    border:
        1px solid #dbeafe;

    border-radius: 10px;

}


.location-icon {

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: white;

    border-radius: 9px;

    font-size: 21px;

}


.location-card > div:nth-child(2) {

    display: flex;

    flex-direction: column;

}


.location-card span {

    color: var(--muted);

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 1px;

}


.location-card strong {

    color: var(--dark);

    font-size: 15px;

}


.live-indicator {

    display: flex !important;

    flex-direction: row !important;

    align-items: center;

    gap: 6px;

    margin-left: auto;

}


.live-indicator i {

    width: 7px;

    height: 7px;

    display: block;

    background:
        var(--green);

    border-radius: 50%;

    box-shadow:
        0 0 0 4px
        rgba(5, 150, 105, .1);

}


.live-indicator span {

    color:
        var(--green);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0;

}


/* =========================================================
   UPDATE BAR
========================================================= */

.update-bar {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-top: 13px;

    padding:
        13px 15px;

    background:
        #f8fafc;

    border:
        1px solid var(--border);

    border-radius: 9px;

}


.update-left {

    display: flex;

    align-items: center;

    gap: 10px;

}


.clock-icon {

    width: 34px;

    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--primary);

    background:
        var(--primary-light);

    border-radius: 8px;

}


.update-left div {

    display: flex;

    flex-direction: column;

}


.update-left small {

    color: var(--muted);

    font-size: 7px;

    font-weight: 800;

    letter-spacing: .8px;

}


.update-left strong {

    margin-top: 1px;

    color: var(--primary);

    font-size: 15px;

}


.update-right {

    display: flex;

    flex-direction: column;

    align-items: flex-end;

}


.update-right span {

    color: var(--muted);

    font-size: 8px;

}


.update-right strong {

    color: var(--dark);

    font-size: 10px;

}


/* =========================================================
   SEARCH
========================================================= */

.search-section {

    margin-top: 25px;

}


.search-section label {

    display: block;

    margin-bottom: 8px;

    color: var(--dark);

    font-size: 12px;

    font-weight: 700;

}


.search-box {

    position: relative;

    display: flex;

    align-items: center;

}


.search-icon {

    position: absolute;

    left: 14px;

    font-size: 14px;

}


.search-box input {

    width: 100%;

    height: 50px;

    padding:
        0 45px;

    color: var(--dark);

    background: white;

    border:
        2px solid var(--border);

    border-radius: 9px;

    outline: none;

    font-size: 13px;

}


.search-box input:focus {

    border-color:
        var(--primary);

    box-shadow:
        0 0 0 4px
        rgba(37,99,235,.08);

}


.clear-btn {

    position: absolute;

    right: 11px;

    width: 29px;

    height: 29px;

    color: var(--muted);

    background: transparent;

    border: none;

    border-radius: 50%;

    font-size: 20px;

    line-height: 1;

}


.clear-btn:hover {

    color: var(--dark);

    background:
        #f1f5f9;

}


/* =========================================================
   CATEGORIES
========================================================= */

.categories {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 16px;

}


.category-btn {

    padding:
        7px 13px;

    color: var(--text);

    background: white;

    border:
        1px solid var(--border);

    border-radius: 20px;

    font-size: 9px;

    font-weight: 700;

}


.category-btn:hover {

    border-color:
        #bfdbfe;

}


.category-btn.active {

    color: white;

    background:
        var(--primary);

    border-color:
        var(--primary);

}


/* =========================================================
   ACTION ROW
========================================================= */

.action-row {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 18px;

}


.action-btn {

    min-height: 38px;

    padding:
        0 13px;

    color: var(--text);

    background: white;

    border:
        1px solid var(--border);

    border-radius: 7px;

    font-size: 9px;

    font-weight: 700;

}


.action-btn:hover {

    background:
        #f8fafc;

    border-color:
        #cbd5e1;

}


/* =========================================================
   API NOTICE
========================================================= */

.api-notice {

    margin-top: 17px;

    padding:
        12px 14px;

    color:
        #1e40af;

    background:
        var(--primary-light);

    border:
        1px solid #bfdbfe;

    border-radius: 8px;

    font-size: 10px;

}


.api-notice strong {
    margin-right: 4px;
}


/* =========================================================
   STATISTICS
========================================================= */

.statistics {

    display: grid;

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

    gap: 10px;

    margin-top: 20px;

}


.stat {

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        15px;

    background:
        #f8fafc;

    border:
        1px solid var(--border);

    border-radius: 9px;

}


.stat > span {

    font-size: 20px;

}


.stat div {

    min-width: 0;

}


.stat strong {

    display: block;

    overflow: hidden;

    color: var(--dark);

    font-size: 14px;

    text-overflow: ellipsis;

    white-space: nowrap;

}


.stat small {

    display: block;

    margin-top: 1px;

    color: var(--muted);

    font-size: 8px;

}


/* =========================================================
   TABLE HEADING
========================================================= */

.trend-heading {

    display: grid;

    grid-template-columns:
        45px 1fr 120px 110px 80px;

    align-items: center;

    gap: 10px;

    margin-top: 24px;

    padding:
        11px 10px;

    color: var(--muted);

    background:
        #f8fafc;

    border:
        1px solid var(--border);

    border-radius: 8px 8px 0 0;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .5px;

    text-transform: uppercase;

}


/* =========================================================
   TREND LIST
========================================================= */

.trend-list {

    border-left:
        1px solid var(--border);

    border-right:
        1px solid var(--border);

}


.trend-item {

    display: grid;

    grid-template-columns:
        45px 1fr 120px 110px 80px;

    align-items: center;

    gap: 10px;

    min-height: 66px;

    padding:
        10px;

    background: white;

    border-bottom:
        1px solid var(--border);

    transition: .15s;

}


.trend-item:hover {

    background:
        #f8fbff;

}


.rank {

    width: 31px;

    height: 31px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--primary);

    background:
        var(--primary-light);

    border-radius: 7px;

    font-size: 9px;

    font-weight: 800;

}


.rank.top-three {

    color: white;

    background:
        var(--primary);

}


.trend-info {

    min-width: 0;

}


.trend-name {

    display: block;

    overflow: hidden;

    color: var(--dark);

    font-size: 13px;

    font-weight: 750;

    text-overflow: ellipsis;

    white-space: nowrap;

}


.trend-name:hover {

    color: var(--primary);

}


.trend-subtitle {

    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-top: 3px;

}


.mini-tag {

    padding:
        2px 6px;

    color: var(--muted);

    background:
        #f1f5f9;

    border-radius: 4px;

    font-size: 7px;

}


.category-text {

    color: var(--text);

    font-size: 9px;

    font-weight: 600;

}


.volume {

    color: var(--green);

    font-size: 9px;

    font-weight: 700;

}


.copy-btn {

    min-height: 31px;

    padding:
        0 8px;

    color: var(--primary);

    background:
        var(--primary-light);

    border:
        1px solid #bfdbfe;

    border-radius: 6px;

    font-size: 8px;

    font-weight: 800;

}


.copy-btn:hover {

    color: white;

    background:
        var(--primary);

}


/* =========================================================
   LOADING
========================================================= */

.loading {

    display: none;

    padding:
        50px 20px;

    text-align: center;

}


.spinner {

    width: 38px;

    height: 38px;

    margin:
        0 auto 13px;

    border:
        3px solid #e5e7eb;

    border-top-color:
        var(--primary);

    border-radius: 50%;

    animation:
        spin .8s linear infinite;

}


@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}


.loading strong {

    display: block;

    color: var(--dark);

    font-size: 13px;

}


.loading span {

    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 10px;

}


/* =========================================================
   NO RESULTS
========================================================= */

.no-results {

    display: none;

    padding:
        50px 20px;

    text-align: center;

}


.no-results > div {

    font-size: 32px;

}


.no-results h3 {

    margin-top: 10px;

    color: var(--dark);

    font-size: 18px;

}


.no-results p {

    margin-top: 3px;

    color: var(--muted);

    font-size: 11px;

}


/* =========================================================
   INFORMATION
========================================================= */

.info-section,
.use-section,
.faq-section {

    margin-top: 65px;

}


.section-heading span {

    color: var(--primary);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.7px;

}


.section-heading h2 {

    margin-top: 4px;

    color: var(--dark);

    font-size: 28px;

}


.info-content {

    margin-top: 20px;

}


.info-content p {

    max-width: 900px;

    margin-bottom: 14px;

    color: var(--text);

    font-size: 13px;

}


.formula-box {

    display: inline-flex;

    flex-direction: column;

    gap: 3px;

    margin-top: 5px;

    padding:
        14px 18px;

    color: var(--primary);

    background:
        var(--primary-light);

    border-radius: 8px;

}


.formula-box strong {

    font-size: 11px;

}


.formula-box span {

    font-size: 10px;

}


/* =========================================================
   USE CASES
========================================================= */

.use-grid {

    display: grid;

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

    gap: 13px;

    margin-top: 20px;

}


.use-card {

    padding:
        22px;

    background: white;

    border:
        1px solid var(--border);

    border-radius: 12px;

    transition: .2s;

}


.use-card:hover {

    transform:
        translateY(-3px);

    box-shadow:
        var(--shadow);

}


.use-icon {

    font-size: 24px;

}


.use-card h3 {

    margin-top: 12px;

    color: var(--dark);

    font-size: 15px;

}


.use-card p {

    margin-top: 5px;

    color: var(--muted);

    font-size: 10px;

}


/* =========================================================
   FAQ
========================================================= */

.faq-list {

    margin-top: 20px;

    border-top:
        1px solid var(--border);

}


details {

    border-bottom:
        1px solid var(--border);

}


summary {

    padding:
        18px 3px;

    color: var(--dark);

    cursor: pointer;

    font-size: 13px;

    font-weight: 700;

    list-style: none;

}


summary::-webkit-details-marker {
    display: none;
}


summary::after {

    content: "+";

    float: right;

    color: var(--primary);

    font-size: 18px;

}


details[open] summary::after {
    content: "−";
}


details p {

    padding:
        0 30px 20px 3px;

    color: var(--muted);

    font-size: 12px;

}


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

.brand-cta {

    margin-top: 70px;

    padding:
        45px 20px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #111827,
            #263244
        );

    border-radius: 16px;

    text-align: center;

}


.cta-logo {

    width: 52px;

    height: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin:
        0 auto 12px;

    color: white;

    background:
        var(--primary);

    border-radius: 13px;

    font-size: 14px;

    font-weight: 800;

}


.brand-cta h2 {
    font-size: 26px;
}


.brand-cta p {

    margin-top: 4px;

    color: #cbd5e1;

    font-size: 11px;

}


.brand-cta a {

    display: inline-block;

    margin-top: 17px;

    padding:
        9px 15px;

    color: white;

    background:
        var(--primary);

    border-radius: 7px;

    font-size: 10px;

}


.brand-cta a:hover {

    background:
        var(--primary-dark);

}


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

.site-footer {

    padding:
        35px 0 20px;

    color:
        #cbd5e1;

    background:
        #0f172a;

}


.footer-inner {

    width:
        min(1080px, calc(100% - 30px));

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

}


.footer-inner strong {

    color: white;

    font-size: 15px;

}


.footer-inner p {

    margin-top: 3px;

    font-size: 9px;

}


.footer-links {

    display: flex;

    gap: 18px;

}


.footer-links a {

    font-size: 9px;

}


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


.copyright {

    width:
        min(1080px, calc(100% - 30px));

    margin:
        22px auto 0;

    padding-top: 17px;

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

    color:
        #94a3b8;

    font-size: 9px;

    text-align: center;

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 950px) {

    .trend-heading,
    .trend-item {

        grid-template-columns:
            40px 1fr 100px 90px 70px;

    }


    .use-grid {

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

    }

}


@media (max-width: 750px) {

    .statistics {

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

    }


    .trend-heading {

        display: none;

    }


    .trend-item {

        grid-template-columns:
            40px 1fr auto;

        gap: 10px;

        padding:
            13px 10px;

    }


    .trend-category-mobile {

        display: block;

    }


    .category-text {

        display: none;

    }


    .volume {

        display: none;

    }


    .copy-btn {

        grid-column:
            3;

    }

}


@media (max-width: 600px) {

    .container {

        width:
            calc(100% - 20px);

    }


    .header-inner {

        width:
            calc(100% - 20px);

    }


    .main-nav {

        display: none;

    }


    .hero {

        align-items:
            flex-start;

    }


    .hero-logo {

        width: 52px;

        height: 52px;

        font-size: 27px;

    }


    .hero h1 {

        font-size: 26px;

    }


    .hero p {

        font-size: 12px;

    }


    .tool-top {

        align-items:
            flex-start;

        flex-direction:
            column;

    }


    .refresh-btn {

        width: 100%;

    }


    .location-card {

        align-items:
            flex-start;

    }


    .live-indicator {

        display: none !important;

    }


    .update-bar {

        align-items:
            flex-start;

        flex-direction:
            column;

    }


    .update-right {

        align-items:
            flex-start;

    }


    .statistics {

        grid-template-columns:
            1fr;

    }


    .trend-item {

        grid-template-columns:
            34px 1fr;

    }


    .copy-btn {

        grid-column:
            2;

        width: 100%;

    }


    .trend-name {

        font-size: 12px;

    }


    .use-grid {

        grid-template-columns:
            1fr;

    }


    .footer-inner {

        width:
            calc(100% - 20px);

        align-items:
            flex-start;

        flex-direction:
            column;

    }


    .copyright {

        width:
            calc(100% - 20px);

    }

}