/* Explain: Styles for various UI components, buttons, cards, and dashboard elements. */
.nav-link {
    color: var(--text-color);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 180ms ease, background 180ms ease;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.btn-brand-primary {
    min-height: 46px;
    border: 1px solid var(--secondary-color);
    background: var(--secondary-color);
    color: var(--white-color);
    box-shadow: 0 12px 24px rgba(30, 91, 154, 0.20);
}

.btn-brand-primary:hover {
    border-color: var(--secondary-hover);
    background: var(--secondary-hover);
}

.btn-brand-outline {
    min-height: 46px;
    border: 1px solid rgba(11, 46, 74, 0.22);
    background: var(--white-color);
    color: var(--primary-color);
}

.btn-brand-outline:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.brand-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
    background: var(--white-color);
    box-shadow: var(--shadow-card);
}

.dashboard-expanded-lock {
    overflow: hidden;
}

.dashboard-view-hidden {
    display: none !important;
}

.dashboard-side-link.dashboard-nav-active {
    background: var(--surface-strong);
    color: var(--primary-color);
    box-shadow: inset 3px 0 0 var(--secondary-color);
}

.dashboard-console-expanded {
    position: fixed;
    inset: 0.75rem;
    z-index: 80;
    max-height: calc(100vh - 1.5rem);
    overflow-y: auto;
    border-radius: 24px;
    padding: 1rem !important;
    box-shadow: 0 30px 90px rgba(11, 46, 74, 0.28);
}

.dashboard-console-expanded .dashboard-chart-height {
    height: min(58vh, 620px) !important;
    min-height: 360px !important;
}

@media (min-width: 640px) {
    .dashboard-console-expanded {
        inset: 1rem;
        max-height: calc(100vh - 2rem);
        padding: 2rem !important;
    }

    .dashboard-console-expanded .dashboard-chart-height {
        height: min(62vh, 680px) !important;
        min-height: 440px !important;
    }
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--secondary-color);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-kicker::before {
    content: '';
    width: 34px;
    height: 2px;
    background: var(--secondary-color);
}

.form-input-brand {
    border: 1px solid var(--border-color);
    background: var(--white-color);
    color: var(--text-color);
}

.form-input-brand:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(30, 91, 154, 0.12);
}

.status-message {
    display: none;
    border-radius: var(--radius-small);
    padding: 0.9rem 1rem;
    font-weight: 700;
}

.status-message.is-visible {
    display: block;
}

.status-message.is-success {
    border: 1px solid rgba(30, 91, 154, 0.24);
    background: var(--accent-color);
    color: var(--primary-color);
}

.status-message.is-error {
    border: 1px solid rgba(185, 28, 28, 0.20);
    background: #FEF2F2;
    color: #991B1B;
}

.site-footer {
    color: var(--text-color);
}

.site-footer p,
.site-footer a,
.site-footer .footer-muted {
    color: var(--text-muted);
}

.site-footer h2,
.site-footer .footer-brand {
    color: #000000;
}

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

.cookie-banner {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 300ms ease, transform 300ms ease;
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-orbit-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60%;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--secondary-color);
    border-radius: 9999px;
    transform: translate(-50%, -50%);
    animation: hero-ring-pulse 4s ease-out infinite;
}

.hero-orbit-ring-late {
    animation-delay: 2s;
}

.hero-hub-glow {
    animation: hero-hub-breathe 3s ease-in-out infinite;
}

.hero-node-float {
    animation: hero-node-float 5s ease-in-out infinite;
}

.hero-flow-line {
    stroke: var(--secondary-color);
    stroke-width: 2;
    stroke-dasharray: 3 9;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    opacity: 0.55;
    animation: hero-flow 1.2s linear infinite;
}

@keyframes hero-ring-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.25);
        opacity: 0;
    }
}

@keyframes hero-hub-breathe {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(30, 91, 154, 0.30);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(30, 91, 154, 0);
    }
}

@keyframes hero-node-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes hero-flow {
    from {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: -12;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-orbit-ring,
    .hero-hub-glow,
    .hero-node-float,
    .hero-flow-line {
        animation: none;
    }
}