/* =========================================
   VIRALMINT AI - TREND INTELLIGENCE PRO CSS
   File: css/trend-intelligence.css
========================================= */

:root {
    --trend-bg: #050506;
    --trend-panel: rgba(255, 255, 255, 0.045);
    --trend-panel-strong: rgba(255, 255, 255, 0.07);
    --trend-border: rgba(255, 255, 255, 0.1);
    --trend-border-strong: rgba(255, 255, 255, 0.16);

    --trend-text: #ffffff;
    --trend-muted: rgba(255, 255, 255, 0.64);
    --trend-soft: rgba(255, 255, 255, 0.42);

    --trend-pink: #ff1493;
    --trend-purple: #8b5cf6;
    --trend-blue: #42bfff;
    --trend-green: #20f5a7;
    --trend-orange: #ffb86b;

    --trend-radius-xl: 32px;
    --trend-radius-lg: 24px;
    --trend-radius-md: 18px;

    --trend-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

/* =========================================
   PAGE BASE FIXES
========================================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background:
        radial-gradient(circle at 88% 0%, rgba(255, 20, 147, 0.16), transparent 34%),
        radial-gradient(circle at 18% 92%, rgba(66, 191, 255, 0.08), transparent 35%),
        #050506;
}

.hidden {
    display: none !important;
}

.trend-main {
    position: relative;
    min-width: 0;
    overflow-x: hidden;
}

.trend-page-shell {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding-bottom: 70px;
}

/* Sidebar active state correction for this page */
.sidebar-menu a.active-link {
    background: transparent;
}

.sidebar-menu a[href="trend-intelligence.html"] {
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(255, 20, 147, 0.18), rgba(139, 92, 246, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================================
   FLOATING PARTICLES
========================================= */

.trend-particles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.trend-particles span {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow:
        0 0 18px rgba(255, 20, 147, 0.42),
        0 0 28px rgba(139, 92, 246, 0.24);
    animation: trendParticleFloat 14s linear infinite;
}

.trend-particles span:nth-child(1) {
    left: 18%;
    top: 18%;
    animation-delay: 0s;
}

.trend-particles span:nth-child(2) {
    left: 42%;
    top: 12%;
    animation-delay: 2s;
}

.trend-particles span:nth-child(3) {
    left: 78%;
    top: 22%;
    animation-delay: 4s;
}

.trend-particles span:nth-child(4) {
    left: 66%;
    top: 72%;
    animation-delay: 6s;
}

.trend-particles span:nth-child(5) {
    left: 28%;
    top: 82%;
    animation-delay: 8s;
}

.trend-particles span:nth-child(6) {
    left: 90%;
    top: 56%;
    animation-delay: 10s;
}

.trend-particles span:nth-child(7) {
    left: 12%;
    top: 58%;
    animation-delay: 12s;
}

.trend-particles span:nth-child(8) {
    left: 52%;
    top: 92%;
    animation-delay: 14s;
}

@keyframes trendParticleFloat {
    0% {
        transform: translateY(60px) scale(0.7);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translateY(-180px) scale(1.15);
        opacity: 0;
    }
}

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

.trend-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    align-items: stretch;
    margin-bottom: 34px;
}

.trend-hero-left {
    position: relative;
    padding-top: 4px;
}

.trend-label,
.dashboard-label {
    color: rgba(255, 255, 255, 0.44);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.trend-title {
    color: #ffffff;
    font-size: clamp(2.3rem, 5vw, 4.7rem);
    line-height: 0.96;
    letter-spacing: -0.075em;
    font-weight: 950;
    margin-bottom: 18px;
}

.trend-subtitle {
    max-width: 740px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 1.02rem;
    line-height: 1.8;
}

.trend-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.trend-hero-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 13px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
    font-size: 0.78rem;
    font-weight: 800;
}

/* =========================================
   HERO SIGNAL PANEL
========================================= */

.trend-hero-panel {
    position: relative;
    overflow: hidden;
    min-height: 185px;
    padding: 24px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 80% 0%, rgba(255, 20, 147, 0.2), transparent 38%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.026));
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: var(--trend-shadow);
    backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    gap: 18px;
}

.trend-hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.2;
    pointer-events: none;
}

.trend-hero-panel > * {
    position: relative;
    z-index: 2;
}

.signal-orb {
    width: 74px;
    height: 74px;
    flex-shrink: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, #ffffff, var(--trend-blue) 22%, var(--trend-purple) 52%, var(--trend-pink) 78%);
    box-shadow:
        0 0 28px rgba(255, 20, 147, 0.34),
        0 0 56px rgba(139, 92, 246, 0.25);
    animation: signalPulse 2.4s ease-in-out infinite;
}

@keyframes signalPulse {
    0%,
    100% {
        transform: scale(0.94);
        box-shadow:
            0 0 22px rgba(255, 20, 147, 0.28),
            0 0 44px rgba(139, 92, 246, 0.22);
    }

    50% {
        transform: scale(1.04);
        box-shadow:
            0 0 34px rgba(255, 20, 147, 0.46),
            0 0 68px rgba(139, 92, 246, 0.34);
    }
}

.trend-hero-panel p {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.trend-hero-panel h3 {
    color: #ffffff;
    font-size: 1.7rem;
    letter-spacing: -0.04em;
    font-weight: 950;
    margin-bottom: 8px;
}

.trend-hero-panel span {
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.55;
    font-size: 0.9rem;
}

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

.trend-search-card {
    position: relative;
    overflow: hidden;
    padding: 34px;
    margin-top: 28px;
    border-radius: var(--trend-radius-xl);
    background:
        radial-gradient(circle at 92% 0%, rgba(255, 20, 147, 0.18), transparent 38%),
        radial-gradient(circle at 12% 100%, rgba(139, 92, 246, 0.12), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: var(--trend-shadow);
    backdrop-filter: blur(18px);
}

.trend-search-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    transform: translateX(-100%);
    animation: softPanelSweep 7s ease-in-out infinite;
    pointer-events: none;
}

@keyframes softPanelSweep {
    0% {
        transform: translateX(-120%);
    }

    35% {
        transform: translateX(120%);
    }

    100% {
        transform: translateX(120%);
    }
}

.trend-search-card > * {
    position: relative;
    z-index: 2;
}

.trend-search-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.mini-label {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.trend-search-card h2 {
    color: #ffffff;
    font-size: clamp(1.65rem, 2.5vw, 2.3rem);
    line-height: 1.12;
    letter-spacing: -0.055em;
    font-weight: 950;
    margin-bottom: 14px;
}

.trend-search-card p {
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.75;
    max-width: 760px;
    font-size: 0.98rem;
}

.trend-premium-badge {
    flex-shrink: 0;
    padding: 12px 16px;
    border-radius: 999px;
    color: rgba(255, 210, 235, 0.95);
    background: rgba(255, 20, 147, 0.13);
    border: 1px solid rgba(255, 20, 147, 0.3);
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.12);
    font-size: 0.82rem;
    font-weight: 900;
}

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

.trend-search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 16px;
    align-items: center;
}

.trend-search-box input {
    width: 100%;
    height: 58px;
    padding: 0 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(0, 0, 0, 0.26);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 650;
    outline: none;
    transition: 0.24s ease;
}

.trend-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.34);
}

.trend-search-box input:focus {
    border-color: rgba(255, 20, 147, 0.55);
    box-shadow:
        0 0 0 4px rgba(255, 20, 147, 0.08),
        0 0 34px rgba(139, 92, 246, 0.14);
}

/* =========================================
   ANALYZE BUTTON
========================================= */

.trend-analyze-btn,
#trendResearchBtn {
    position: relative;
    overflow: hidden;
    height: 58px;
    border: none;
    border-radius: 18px;
    color: #ffffff;
    background:
        linear-gradient(90deg, var(--trend-pink), var(--trend-purple), var(--trend-blue), var(--trend-pink));
    background-size: 280% 100%;
    font-family: inherit;
    font-size: 0.96rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow:
        0 18px 48px rgba(139, 92, 246, 0.26),
        0 10px 34px rgba(255, 20, 147, 0.18);
    animation: trendButtonFlow 5s ease infinite;
    transition: 0.24s ease;
}

.trend-analyze-btn:hover,
#trendResearchBtn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 24px 64px rgba(139, 92, 246, 0.34),
        0 14px 42px rgba(255, 20, 147, 0.25);
}

.trend-analyze-btn:disabled,
#trendResearchBtn:disabled {
    cursor: wait;
    opacity: 0.92;
}

.trend-analyze-btn::before,
#trendResearchBtn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 75%;
    height: 100%;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-22deg);
    animation: trendButtonShine 3.2s ease-in-out infinite;
}

.trend-btn-text,
.trend-loader {
    position: relative;
    z-index: 2;
}

.trend-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
}

.trend-loader-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow:
        0 0 16px rgba(255, 255, 255, 0.95),
        0 0 32px rgba(255, 20, 147, 0.7);
    animation: trendLoaderPulse 1.1s ease-in-out infinite;
}

.trend-loader-status {
    font-size: 0.86rem;
    font-weight: 900;
}

@keyframes trendButtonFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes trendButtonShine {
    0% {
        left: -120%;
    }

    45% {
        left: 130%;
    }

    100% {
        left: 130%;
    }
}

@keyframes trendLoaderPulse {
    0%,
    100% {
        transform: scale(0.82);
        opacity: 0.75;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

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

.trend-search-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.trend-search-notes div {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.075);
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.86rem;
    line-height: 1.55;
}

.trend-search-notes strong {
    color: rgba(255, 255, 255, 0.85);
}

/* =========================================
   PREVIEW STATS
========================================= */

.trend-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 28px 0;
}

.trend-stat-card {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    padding: 22px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.14), transparent 38%),
        rgba(255, 255, 255, 0.038);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(14px);
    transition: 0.24s ease;
}

.trend-stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.055);
}

.trend-stat-card span {
    display: block;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.trend-stat-card h3 {
    color: #ffffff;
    font-size: 1.65rem;
    font-weight: 950;
    letter-spacing: -0.045em;
    margin-bottom: 10px;
}

.trend-stat-card p {
    color: rgba(255, 255, 255, 0.56);
    line-height: 1.6;
    font-size: 0.9rem;
}

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

.trend-results {
    margin-top: 34px;
    padding-bottom: 30px;
}

.trend-results.hidden {
    display: none !important;
}

.trend-results-active {
    display: block;
}

.trend-results-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding: 28px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 94% 0%, rgba(255, 20, 147, 0.16), transparent 35%),
        rgba(255, 255, 255, 0.038);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.trend-results-header h2 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 950;
    letter-spacing: -0.055em;
    margin-bottom: 10px;
}

.trend-results-header p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.75;
}

.trend-report-chip {
    flex-shrink: 0;
    padding: 12px 15px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
    font-size: 0.84rem;
    font-weight: 800;
}

.trend-report-chip span {
    color: #ffffff;
}

/* =========================================
   TREND GRID
========================================= */

.trend-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

/* =========================================
   TREND CARDS
========================================= */

.trend-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 26px;
    border-radius: 26px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022));
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(14px);
    transition:
        opacity 0.55s ease,
        transform 0.55s ease,
        border-color 0.24s ease,
        background 0.24s ease;
}

.trend-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 20, 147, 0.11), transparent 35%),
        radial-gradient(circle at 100% 100%, rgba(66, 191, 255, 0.08), transparent 38%);
    opacity: 0;
    transition: 0.24s ease;
    pointer-events: none;
}

.trend-card::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    top: 0;
    height: 1px;
    background:
        linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    opacity: 0.55;
}

.trend-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.17);
    background: rgba(255, 255, 255, 0.052);
}

.trend-card:hover::before {
    opacity: 1;
}

.trend-card > * {
    position: relative;
    z-index: 2;
}

.trend-card-large {
    min-height: 260px;
}

/* =========================================
   CARD TOP
========================================= */

.trend-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.trend-card h3 {
    color: #ffffff;
    font-size: 1.18rem;
    font-weight: 950;
    letter-spacing: -0.035em;
    margin-bottom: 8px;
}

.trend-card-top p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* =========================================
   BADGES
========================================= */

.trend-score {
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    font-size: 0.72rem;
    font-weight: 850;
    white-space: nowrap;
}

.high-score {
    color: rgba(255, 188, 226, 0.95);
    background: rgba(255, 20, 147, 0.13);
    border-color: rgba(255, 20, 147, 0.28);
}

/* =========================================
   LISTS
========================================= */

.trend-list,
.trend-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trend-list li,
.trend-card li {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    font-size: 0.94rem;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.trend-list li:last-child,
.trend-card li:last-child {
    border-bottom: none;
}

.trend-list-item {
    animation: listItemReveal 0.35s ease both;
}

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

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

/* Numbered hook list */
.hook-list li,
.trend-list-item:has(.trend-item-number) {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
}

.trend-item-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(255, 20, 147, 0.88), rgba(139, 92, 246, 0.9));
    font-size: 0.72rem;
    font-weight: 950;
    box-shadow: 0 0 22px rgba(255, 20, 147, 0.18);
}

/* Pill list */
.pill-list,
.hashtag-list {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 10px !important;
}

.pill-list li,
.hashtag-list li {
    padding: 9px 12px !important;
    border-radius: 999px;
    border: 1px solid rgba(255, 20, 147, 0.2) !important;
    background: rgba(255, 20, 147, 0.09);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.84rem;
    font-weight: 800;
}

/* Action list */
.action-list li {
    padding-left: 18px;
    position: relative;
}

.action-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--trend-green);
    box-shadow: 0 0 14px rgba(32, 245, 167, 0.45);
}

.empty-trend-item {
    color: rgba(255, 255, 255, 0.42) !important;
    font-style: italic;
}

/* =========================================
   INSIGHT CARDS
========================================= */

.insight-card {
    min-height: auto;
    margin-top: 18px;
}

.insight-card p,
#trendInsight {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.9;
    font-size: 0.98rem;
}

/* =========================================
   STEP REVEAL ANIMATION
========================================= */

#trendResults .trend-card,
#trendResults .trend-stat-card,
#trendResults .trend-results-header {
    opacity: 0;
    transform: translateY(22px);
}

#trendResults .trend-reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 1100px) {
    .trend-page-shell {
        max-width: 100%;
    }

    .trend-hero {
        grid-template-columns: 1fr;
    }

    .trend-hero-panel {
        max-width: 100%;
    }
}

@media (max-width: 860px) {
    .trend-main {
        padding-left: 18px;
        padding-right: 18px;
    }

    .trend-search-top,
    .trend-results-header {
        flex-direction: column;
    }

    .trend-search-box {
        grid-template-columns: 1fr;
    }

    .trend-preview-grid {
        grid-template-columns: 1fr;
    }

    .trend-grid {
        grid-template-columns: 1fr;
    }

    .trend-search-notes {
        grid-template-columns: 1fr;
    }

    .trend-hero-badges {
        gap: 8px;
    }
}

@media (max-width: 560px) {
    .trend-title {
        font-size: 2.4rem;
    }

    .trend-search-card,
    .trend-results-header,
    .trend-card,
    .trend-stat-card {
        padding: 22px;
        border-radius: 22px;
    }

    .trend-card-top {
        flex-direction: column;
    }

    .trend-analyze-btn,
    #trendResearchBtn,
    .trend-search-box input {
        height: 56px;
    }

    .trend-loader-status {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* =========================================
   TREND INTELLIGENCE CLEANUP PATCH
========================================= */

.trend-page-shell {
    max-width: 1030px;
}

.trend-hero {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 24px;
    margin-bottom: 26px;
}

.trend-title {
    font-size: clamp(2.7rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -0.07em;
}

.trend-subtitle {
    max-width: 650px;
    font-size: 0.98rem;
    line-height: 1.72;
}

.trend-hero-panel {
    min-height: 155px;
    padding: 22px;
}

.signal-orb {
    width: 62px;
    height: 62px;
}

.trend-hero-panel h3 {
    font-size: 1.45rem;
}

.trend-search-card {
    margin-top: 24px;
    padding: 30px;
}

.trend-search-card h2 {
    font-size: 2rem;
}

.trend-search-card p {
    max-width: 680px;
    line-height: 1.65;
}

.trend-search-box {
    grid-template-columns: minmax(0, 1fr) 180px;
}

.trend-preview-grid {
    gap: 16px;
    margin: 24px 0;
}

.trend-stat-card {
    min-height: 132px;
    padding: 20px;
}

.trend-stat-card h3 {
    font-size: 1.45rem;
}

.trend-results-header {
    padding: 26px;
}

.trend-grid {
    gap: 16px;
}

.trend-card {
    min-height: auto;
    padding: 24px;
}

.trend-card-large {
    min-height: auto;
}

.trend-card-top {
    margin-bottom: 18px;
}

.trend-card-top p {
    font-size: 0.84rem;
    line-height: 1.55;
}

.trend-list li,
.trend-card li {
    font-size: 0.92rem;
    line-height: 1.55;
    padding: 10px 0;
}

#trendInsight {
    max-width: 850px;
    font-size: 0.96rem;
    line-height: 1.78;
    color: rgba(255, 255, 255, 0.72);
}

/* Make long AI report visually cleaner */
.insight-card {
    padding: 28px;
}

.insight-card p {
    white-space: pre-line;
}

/* Reduce visual heaviness */
.trend-card,
.trend-stat-card,
.trend-search-card,
.trend-results-header,
.trend-hero-panel {
    box-shadow: 0 18px 58px rgba(0, 0, 0, 0.32);
}

/* Better mobile spacing */
@media (max-width: 860px) {
    .trend-hero {
        grid-template-columns: 1fr;
    }

    .trend-search-box {
        grid-template-columns: 1fr;
    }

    .trend-title {
        font-size: 2.45rem;
    }
}