/*
 * OMNIA Dashboard — dark theme overrides + dashboard-specific styles.
 * Loaded AFTER Stellar's main.css to override colors/backgrounds.
 */

@font-face {
    font-family: 'Source Sans Pro';
    font-weight: 300;
    font-style: normal;
    src: url('../fonts/source-sans-pro-300.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'Source Sans Pro';
    font-weight: 400;
    font-style: normal;
    src: url('../fonts/source-sans-pro-400.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'Source Sans Pro';
    font-weight: 600;
    font-style: normal;
    src: url('../fonts/source-sans-pro-600.ttf') format('truetype');
    font-display: swap;
}

/* --- Global overrides --- */

body {
    background: #0a0a0f !important;
    color: #e4e4e7;
}

#wrapper {
    background: none !important;
}

/* Kill Stellar's star/space background layers */
body::after,
#wrapper::before,
#wrapper::after {
    display: none !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #f0f0f3;
}

p {
    color: #a1a1aa;
}

a {
    color: #14b8a6;
}

/* --- Header / Brand --- */

#header {
    background: #0a0a0f !important;
    padding: 3em 0 1em;
}

#header .logo img {
    width: 280px;
    max-width: 90vw;
    height: auto;
}

#header h1, #header p {
    display: none;
}

/* --- Nav: hidden for single-page dashboard --- */

#nav {
    display: none;
}

/* --- Main content --- */

#main {
    background: #0a0a0f;
}

#main .main {
    border-top-color: #1e1e2a;
}

/* --- Hero Score Section --- */

.hero-score {
    text-align: center;
    padding: 2em 0 1em;
}

.score-ring {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2em;
    position: relative;
    --score-deg: 0deg;
    --score-color: #14b8a6;
}

.score-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 14px;
    background: conic-gradient(
        var(--score-color) 0deg,
        var(--score-color) var(--score-deg),
        #2a2a35 var(--score-deg)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.score-value {
    font-size: 4rem;
    font-weight: 600;
    color: #f0f0f3;
    z-index: 1;
    line-height: 1;
}

.score-label {
    font-size: 1.1rem;
    font-weight: 300;
    color: #71717a;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.3em;
}

.score-date {
    font-size: 0.85rem;
    color: #52525b;
}

/* --- Biomarker Cards --- */

.biomarker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5em;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1em;
}

@media screen and (max-width: 980px) {
    .biomarker-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .biomarker-grid {
        grid-template-columns: 1fr;
    }
}

.bio-card {
    background: #12121a;
    border: 1px solid #1e1e2a;
    border-left: 4px solid #14b8a6;
    border-radius: 8px;
    padding: 1.5em;
    text-align: left;
}

.bio-card .card-icon {
    font-size: 1.4rem;
    color: #71717a;
    margin-bottom: 0.6em;
}

.bio-card .card-name {
    font-size: 0.85rem;
    font-weight: 400;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4em;
}

.bio-card .card-score {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 0.3em;
}

.bio-card .card-value {
    font-size: 0.9rem;
    color: #71717a;
}

/* --- Trend Chart --- */

.trend-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1em;
}

.trend-section h2 {
    font-weight: 300;
    font-size: 1.5rem;
    color: #f0f0f3;
    margin-bottom: 1em;
    text-align: center;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* --- Insight Card --- */

.insight-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1em;
}

.insight-card {
    background: #12121a;
    border: 1px solid #1e1e2a;
    border-radius: 8px;
    padding: 2em;
}

.insight-card h3 {
    font-weight: 400;
    font-size: 1.1rem;
    color: #f0f0f3;
    margin-bottom: 1em;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.insight-card h3 i {
    color: #14b8a6;
}

.insight-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #a1a1aa;
    margin-bottom: 0.8em;
}

.insight-card p:last-child {
    margin-bottom: 0;
}

/* --- Footer --- */

#footer {
    background: #0a0a0f;
    border-top: 1px solid #1e1e2a;
    color: #52525b;
}

#footer .copyright {
    color: #52525b;
    font-size: 0.85rem;
}

#footer a {
    color: #14b8a6;
}

/* --- Section spacing --- */

#main > section {
    padding: 3em 0;
}

/* --- Stellar overrides for buttons/forms we don't use --- */

.button.primary {
    background-color: #14b8a6;
    border-color: #14b8a6;
}

.button.primary:hover {
    background-color: #0d9488;
}

/* --- Statistics bar (Stellar component) — restyle if used --- */

ul.statistics li {
    border-left-color: #1e1e2a;
}
