/* ValidateNiche homepage legacy stylesheet placeholder.
   index.html references this file; keeping it prevents MIME errors
   without changing the current page design. */

/* Make temporary search/loading messages readable on the dark homepage. */
#results-grid > div[style*="text-align: center"] {
    background: #ffffff !important;
    border: 1.5px solid rgba(0, 217, 255, 0.28) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22) !important;
}

#results-grid > div[style*="text-align: center"] h3 {
    color: #0A2540 !important;
}

#results-grid > div[style*="text-align: center"] p {
    color: #1E293B !important;
    font-weight: 600 !important;
}

.vn-live-loading {
    padding: 2rem;
    background: #ffffff;
    border: 1.5px solid rgba(0, 217, 255, 0.28);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.vn-loader-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.vn-loader-head h3 {
    margin: 0 0 0.25rem;
    color: #0A2540;
}

.vn-loader-head p {
    margin: 0;
    color: #1E293B;
    font-weight: 600;
}

.vn-loader-orbit {
    position: relative;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 50%;
    border: 3px solid rgba(63, 160, 230, 0.18);
    border-top-color: #3FA0E6;
    animation: vnSpin 0.9s linear infinite;
}

.vn-loader-orbit span {
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    background: #00D9FF;
    box-shadow: 0 0 18px rgba(0, 217, 255, 0.7);
}

.vn-loader-dots::after {
    content: "";
    animation: vnDots 1.2s steps(4, end) infinite;
}

.vn-loader-progress {
    height: 8px;
    margin: 1.4rem 0 1rem;
    overflow: hidden;
    border-radius: 999px;
    background: #E6EEF5;
}

.vn-loader-progress span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3FA0E6, #00D9FF, #16A34A);
    animation: vnProgress 1.6s ease-in-out infinite;
}

.vn-loader-steps {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
}

.vn-loader-steps span {
    padding: 0.45rem 0.5rem;
    border-radius: 8px;
    background: #F1F7FB;
    color: #0A2540;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
    animation: vnStepPulse 1.8s ease-in-out infinite;
}

.vn-loader-steps span:nth-child(2) { animation-delay: 0.15s; }
.vn-loader-steps span:nth-child(3) { animation-delay: 0.3s; }
.vn-loader-steps span:nth-child(4) { animation-delay: 0.45s; }
.vn-loader-steps span:nth-child(5) { animation-delay: 0.6s; }
.vn-loader-steps span:nth-child(6) { animation-delay: 0.75s; }

@keyframes vnSpin {
    to { transform: rotate(360deg); }
}

@keyframes vnDots {
    0% { content: ""; }
    25% { content: "."; }
    50% { content: ".."; }
    75%, 100% { content: "..."; }
}

@keyframes vnProgress {
    0% { transform: translateX(-110%); }
    55%, 100% { transform: translateX(250%); }
}

@keyframes vnStepPulse {
    0%, 100% { background: #F1F7FB; color: #0A2540; }
    35% { background: #DDF7FF; color: #075985; }
}

@media (max-width: 720px) {
    .vn-loader-head { align-items: flex-start; }
    .vn-loader-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Keep the current card design, but make gray text inside dark result cards readable. */
#results-grid .niche-card [style*="color:#C9D8E6"],
#results-grid .niche-card [style*="color: #C9D8E6"],
#results-grid .niche-card [style*="color:#A7BBCC"],
#results-grid .niche-card [style*="color: #A7BBCC"],
#results-grid .niche-card [style*="color:#9FB3C5"],
#results-grid .niche-card [style*="color: #9FB3C5"],
#results-grid .niche-card [style*="color:#9CC0D6"],
#results-grid .niche-card [style*="color: #9CC0D6"] {
    color: #ffffff !important;
}

#results-grid .niche-card [style*="rgba(255,255,255,0.6)"],
#results-grid .niche-card [style*="rgba(255,255,255,0.58)"],
#results-grid .niche-card [style*="rgba(255,255,255,0.55)"] {
    color: #ffffff !important;
}

/* Supporting notes should be softer than the main metrics, but still readable. */
#results-grid .niche-card [style*="margin:4px 0 6px"],
#results-grid .niche-card [style*="margin:6px 0 4px"],
#results-grid .niche-card [style*="margin-top:4px"],
#results-grid .niche-card [style*="border-left:3px solid #3FA0E6"],
#results-grid .niche-card [style*="line-height:1.6; color:#C9D8E6"],
#results-grid .niche-card [style*="margin-top:10px"],
#results-grid .niche-card [style*="Affiliate links above help support"] {
    color: #BFD0DE !important;
}

#results-grid .niche-card [style*="color:#9FB3C5"][style*=" · "],
#results-grid .niche-card [style*="font-size:0.85rem; color:#9CC0D6"] {
    color: #A9BDD0 !important;
}

.metric-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 5px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
}

.metric-help-btn:hover,
.metric-help-btn:focus {
    background: #ffffff;
    color: #0A2B44;
    outline: none;
}

.metric-help-popover {
    position: fixed;
    z-index: 9999;
    max-width: min(280px, calc(100vw - 32px));
    padding: 0.85rem 0.95rem;
    border-radius: 10px;
    background: #ffffff;
    color: #102033;
    border: 1px solid rgba(16, 32, 51, 0.12);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    font-size: 0.88rem;
    line-height: 1.55;
    text-align: left;
}

.metric-help-popover strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #0A2540;
}

/* Wide moving source strip for the homepage hero. Uses the full hero width so the labels do not feel cramped. */
.nv-sources-strip.vn-source-ticker {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem;
    width: min(1120px, calc(100vw - 48px));
    max-width: none;
    margin: 0.45rem auto 0;
    padding: 0.45rem 0 !important;
    overflow: hidden;
    white-space: nowrap;
}

.vn-source-ticker .src-label {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.68) !important;
    font-size: 0.78rem;
    font-weight: 800;
}

.vn-source-window {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.vn-source-track {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    animation: vnSourceScroll 48s linear infinite;
    padding-right: 0.7rem;
}

.vn-source-ticker:hover .vn-source-track {
    animation-play-state: paused;
}

.vn-source-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.34rem 0.76rem;
    border-radius: 999px;
    border: 1px solid currentColor;
    background: rgba(255, 255, 255, 0.08);
    color: var(--source-color, #ffffff);
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
}

@keyframes vnSourceScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 640px) {
    .nv-sources-strip.vn-source-ticker {
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
        width: min(520px, calc(100vw - 28px));
    }
    .vn-source-ticker .src-label {
        text-align: center;
    }
    .vn-source-window {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vn-source-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        white-space: normal;
    }
    .vn-source-window {
        max-width: 100%;
        mask-image: none;
        -webkit-mask-image: none;
    }
}
