/*
Theme Name: StormSpark
Theme URI: https://williehowe.com
Author: Willie Howe
Author URI: https://williehowe.com
Description: A playful lightning-themed companion theme for the AS3935 Lightning Monitor plugin with bright gradients, stormy vibes, and fun emoji-friendly styling.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Text Domain: stormspark
*/

:root {
    --storm-bg: #08111f;
    --storm-panel: #0f1b30;
    --storm-panel-soft: #152744;
    --storm-text: #eef4ff;
    --storm-muted: #b6c7e8;
    --storm-accent: #ffd247;
    --storm-accent-2: #69a8ff;
    --storm-shadow: 0 24px 50px rgba(3, 11, 26, 0.35);
    --storm-radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top, rgba(105,168,255,0.24), transparent 28%),
        radial-gradient(circle at 20% 20%, rgba(255,210,71,0.14), transparent 24%),
        linear-gradient(180deg, #07101e 0%, #0b1530 55%, #0a1222 100%);
    color: var(--storm-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

a {
    color: #9bc5ff;
}

a:hover {
    color: #fff1a8;
}

.site-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(14px);
    background: rgba(7, 16, 30, 0.78);
    border-bottom: 1px solid rgba(255,255,255,0.09);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-logo img {
    max-height: 48px;
    width: auto;
}

.site-title {
    margin: 0;
    font-size: 1.2rem;
}

.site-description {
    margin: 2px 0 0;
    color: var(--storm-muted);
    font-size: 0.92rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 14px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.nav-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 14px;
    text-decoration: none;
    background: rgba(255,255,255,0.08);
    color: var(--storm-text);
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.16);
}

.hero-card,
.content-card,
.footer-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--storm-radius);
    box-shadow: var(--storm-shadow);
}

.hero-card {
    padding: 34px;
    margin: 34px 0 22px;
}

.hero-kicker {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-weight: 700;
    color: #ffe9a3;
    background: rgba(255,210,71,0.1);
    border: 1px solid rgba(255,210,71,0.22);
    border-radius: 999px;
    padding: 8px 14px;
}

.hero-title {
    margin: 18px 0 12px;
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 1.05;
}

.hero-text {
    color: var(--storm-muted);
    max-width: 720px;
    font-size: 1.06rem;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.hero-button,
.wp-block-button__link,
button,
input[type="submit"] {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    padding: 12px 18px;
    text-decoration: none;
}

.hero-button.primary,
.wp-block-button__link,
input[type="submit"] {
    background: linear-gradient(135deg, var(--storm-accent), #ff9f43);
    color: #1b1200;
}

.hero-button.secondary,
button {
    background: rgba(255,255,255,0.12);
    color: var(--storm-text);
}

.content-card {
    padding: 28px;
    margin: 0 0 28px;
}

.entry-title {
    margin-top: 0;
}

.site-footer {
    padding: 0 0 28px;
}

.footer-card {
    padding: 18px 24px;
    color: var(--storm-muted);
}

.footer-card p {
    margin: 0;
}

/* Plugin companion styling */
.as3935lm-panel {
    background: linear-gradient(180deg, rgba(7,15,28,0.96) 0%, rgba(16,28,53,0.96) 100%) !important;
    border: 1px solid rgba(255,255,255,0.12);
}

.as3935lm-card {
    background: rgba(255,255,255,0.09) !important;
}

.as3935lm-table-wrap {
    background: rgba(255,255,255,0.98) !important;
}

.as3935lm-table thead th {
    background: #0a1328 !important;
}

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

    .hero-card,
    .content-card {
        padding: 22px;
    }
}
