/*
Theme Name: GH Astro Dashboard
Theme URI: https://oliver-augst.com
Author: Olli & ChatGPT
Description: Minimalistisches Astro-Dashboard Theme.
Version: 1.0
Text Domain: gh-astro-dashboard
*/

/* ============= Basis ============= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #0b1024 0, #030712 55%, #020617 100%);
    color: #e5e7eb;
    line-height: 1.6;
}

/* Typo */

h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: 0.03em;
    margin: 0 0 0.5em;
}

a {
    color: #93c5fd;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ============= Layout Rahmen ============= */

.site-header {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.24), transparent 55%),
                rgba(3, 7, 18, 0.96);
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
}

.site-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-title a {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f9fafb;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 18px;
}

.site-nav a {
    font-size: 0.9rem;
    color: #cbd5f5;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background 0.18s ease, color 0.18s ease;
}

.site-nav a:hover {
    background: rgba(129, 140, 248, 0.18);
    color: #e5e7eb;
}

.astro-shell {
    max-width: 1400px;
    margin: 32px auto 80px;
    padding: 0 24px;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 24px 24px 32px;
    background: rgba(3, 7, 18, 0.98);
    color: #9ca3af;
    font-size: 0.85rem;
}

.site-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* ============= Cards & Glass Look ============= */

.glass-box {
    position: relative;
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 55%),
        rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 255, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
    padding: 20px 22px;
    overflow: hidden;
}

.glass-box::before {
    content: "";
    position: absolute;
    inset: -40px;
    background-image:
        radial-gradient(circle, rgba(248, 250, 252, 0.1) 0, transparent 55%),
        radial-gradient(circle, rgba(96, 165, 250, 0.12) 0, transparent 65%);
    background-size: 2px 2px, 3px 3px;
    opacity: 0.4;
    mix-blend-mode: screen;
    pointer-events: none;
}

.glass-box-inner {
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #a5b4fc;
    margin-bottom: 6px;
}

/* ============= Astro Hero / Banner ============= */

.astro-hero {
    margin-bottom: 26px;
}

.astro-hero-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.astro-hero-main {
    max-width: 720px;
}

.astro-hero-kicker {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #a5b4fc;
    margin-bottom: 6px;
}

.astro-hero-title {
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin: 0 0 10px;
    color: #f9fafb;
}

.astro-hero-subtitle {
    font-size: 0.98rem;
    color: #cbd5f5;
    max-width: 640px;
}

/* Astro-Score Box */

.astro-score-box {
    min-width: 260px;
}

.astro-score-label {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.astro-score-value-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.astro-score-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #bbf7d0;
}

.astro-score-text {
    font-size: 0.85rem;
    color: #a3e635;
}

.astro-score-bar {
    position: relative;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(30, 64, 175, 0.6), rgba(15, 23, 42, 0.9));
    overflow: hidden;
}

.astro-score-fill {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #84cc16);
    transform-origin: left center;
    transform: scaleX(0.3);
    animation: astroScorePulse 4s ease-in-out infinite;
}

@keyframes astroScorePulse {
    0% { transform: scaleX(0.2); }
    40% { transform: scaleX(0.45); }
    100% { transform: scaleX(0.3); }
}

/* Laufband Banner */

.astro-ticker {
    margin-top: 18px;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.5);
    background: linear-gradient(90deg, rgba(22, 101, 52, 0.7), rgba(22, 163, 74, 0.25));
    overflow: hidden;
    padding: 6px 0;
}

.astro-ticker-track {
    display: inline-block;
    padding-left: 100%;
    white-space: nowrap;
    font-size: 0.9rem;
    color: #bbf7d0;
    animation: astroTickerScroll 26s linear infinite;
}

@keyframes astroTickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ============= Grids ============= */

.astro-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 26px;
}

.astro-grid-small {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ============= Karten: Wolkenradar / Satellit / Nachthimmel ============= */

.astro-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.astro-card-heading h2 {
    font-size: 1.15rem;
    margin: 0;
}

.astro-card-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #9ca3af;
}

/* Platzhalter-Fläche für iFrames oder Screenshots */

.astro-card-placeholder {
    margin-top: 10px;
    border-radius: 16px;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.28), transparent 70%);
    border: 1px dashed rgba(148, 163, 255, 0.45);
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Button */

.astro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 255, 0.7);
    color: #e5e7eb;
    font-size: 0.85rem;
    text-decoration: none;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.4), rgba(15, 23, 42, 0.95));
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
    gap: 6px;
}

.astro-btn:hover {
    border-color: #a5b4fc;
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.95);
}

/* ============= Nachthimmel – Planetarium Mini ============= */

.planetarium {
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 1) 0, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
    margin-top: 12px;
    padding: 20px 0;
}

.planetarium-orbit {
    position: absolute;
    inset: 18%;
    border-radius: 999px;
    border: 1px dashed rgba(148, 163, 255, 0.4);
    opacity: 0.7;
}

.planetarium-orbit:nth-child(2) {
    inset: 28%;
    opacity: 0.5;
}

.planetarium-orbit:nth-child(3) {
    inset: 38%;
    opacity: 0.3;
}

/* Sonne */

.planetarium-sun {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: radial-gradient(circle, #f97316 0, #ea580c 35%, #7c2d12 100%);
    margin: 0 auto;
    box-shadow: 0 0 18px rgba(248, 250, 252, 0.7);
}

/* Planeten */

.planetarium-body {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
    animation: planetOrbit 16s linear infinite;
}

.planetarium-body.moon {
    width: 6px;
    height: 6px;
    background: #e5e7eb;
    box-shadow: 0 0 8px rgba(226, 232, 240, 0.9);
    animation-duration: 9s;
}

.planetarium-body.planet {
    animation-duration: 19s;
}

@keyframes planetOrbit {
    0%   { transform: rotate(0deg) translateX(95px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(95px) rotate(-360deg); }
}

/* ============= NASA APOD / Astro-Ampel / SETI Scanner ============= */

.apod-thumb {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid rgba(148, 163, 255, 0.4);
}

.apod-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.apod-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.apod-meta {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-bottom: 8px;
}

/* Astro Ampel kompakt */

.ampel-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.ampel-label {
    color: #9ca3af;
}

.ampel-status {
    font-weight: 600;
}

.ampel-bar {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #dc2626, #f97316, #22c55e);
    overflow: hidden;
}

.ampel-indicator {
    position: absolute;
    top: -2px;
    width: 2px;
    height: 14px;
    background: #f9fafb;
    border-radius: 999px;
    transform: translateX(65%);
}

/* SETI Scanner Mini */

.seti-bars {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.78rem;
}

.seti-bar-label {
    color: #9ca3af;
    display: flex;
    justify-content: space-between;
}

.seti-bar-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(30, 64, 175, 0.8);
    overflow: hidden;
    position: relative;
}

.seti-bar-fill {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #22d3ee, #a855f7);
    transform-origin: left center;
    animation: setiBarPulse 5s ease-in-out infinite;
}

.seti-bar-fill.struct {
    animation-duration: 7s;
}

.seti-bar-fill.anom {
    animation-duration: 9s;
}

@keyframes setiBarPulse {
    0% { transform: scaleX(0.2); }
    30% { transform: scaleX(0.6); }
    60% { transform: scaleX(0.4); }
    100% { transform: scaleX(0.5); }
}

.seti-status {
    margin-top: 8px;
    font-size: 0.78rem;
    color: #9ca3af;
}

/* ============= Responsive ============= */

@media (max-width: 960px) {
    .astro-shell {
        padding: 0 16px 60px;
    }

    .astro-grid,
    .astro-grid-small {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .astro-hero-top {
        flex-direction: column;
        align-items: flex-start;
    }
}