/**
 * @package     ChipWitch
 * @subpackage  mod_spaceweather
 * @version     2.0.0
 * @author      Chris Ambler <chris@ambler.net>
 * @copyright   Copyright (C) 2025 Chris Ambler. All rights reserved.
 * @license     GNU General Public License version 2 or later
 * @description Centralized CSS for all Space Weather Module Templates
 */

/* ==========================================================================
   SPACE WEATHER MODULE - UNIVERSAL STYLES
   ========================================================================== */

/* Base Module Styles */
.mod-spaceweather {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Complexity-specific adjustments */
.mod-spaceweather.complexity-minimal {
    padding: 16px 20px;
    border-radius: 12px;
}

.mod-spaceweather.complexity-moderate {
    padding: 20px;
    border-radius: 14px;
}

/* Fix for top positions - prevent menu overlap */
#g-top .mod-spaceweather,
#g-header .mod-spaceweather,
#g-navigation .mod-spaceweather {
    margin-top: 40px;
}

/* ==========================================================================
   CURRENT CONDITIONS TEMPLATE
   ========================================================================== */

.mod-spaceweather.spaceweather-current-conditions {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.mod-spaceweather.spaceweather-current-conditions::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(155, 89, 182, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.mod-spaceweather.spaceweather-current-conditions .conditions-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.mod-spaceweather.spaceweather-current-conditions.complexity-minimal .conditions-header {
    margin-bottom: 12px;
}

.mod-spaceweather.spaceweather-current-conditions.complexity-moderate .conditions-header {
    margin-bottom: 16px;
}

.mod-spaceweather.spaceweather-current-conditions .conditions-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #e6e6fa;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mod-spaceweather.spaceweather-current-conditions.complexity-minimal .conditions-title {
    font-size: 1.1em;
    margin: 0 0 4px 0;
}

.mod-spaceweather.spaceweather-current-conditions.complexity-moderate .conditions-title {
    font-size: 1.25em;
    margin: 0 0 6px 0;
}

.mod-spaceweather.spaceweather-current-conditions .conditions-subtitle {
    font-size: 0.9em;
    color: #b19cd9;
    margin: 0;
    opacity: 0.8;
}

.mod-spaceweather.spaceweather-current-conditions.complexity-minimal .conditions-subtitle {
    font-size: 0.75em;
}

.mod-spaceweather.spaceweather-current-conditions.complexity-moderate .conditions-subtitle {
    font-size: 0.8em;
}

/* Layout orientations with complexity awareness */
.mod-spaceweather.spaceweather-current-conditions.layout-horizontal .conditions-grid {
    display: grid;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.mod-spaceweather.spaceweather-current-conditions.layout-horizontal.complexity-minimal .conditions-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}

.mod-spaceweather.spaceweather-current-conditions.layout-horizontal.complexity-moderate .conditions-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.mod-spaceweather.spaceweather-current-conditions.layout-horizontal.complexity-full .conditions-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.mod-spaceweather.spaceweather-current-conditions.layout-vertical .conditions-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.mod-spaceweather.spaceweather-current-conditions.layout-vertical.complexity-minimal .conditions-grid {
    gap: 8px;
}

.mod-spaceweather.spaceweather-current-conditions .condition-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mod-spaceweather.spaceweather-current-conditions.complexity-minimal .condition-item {
    padding: 12px;
    border-radius: 8px;
}

.mod-spaceweather.spaceweather-current-conditions.complexity-moderate .condition-item {
    padding: 14px;
    border-radius: 10px;
}

.mod-spaceweather.spaceweather-current-conditions .condition-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.3);
}

.mod-spaceweather.spaceweather-current-conditions .condition-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #5dade2, #85c1e9);
    opacity: 0.6;
}

.mod-spaceweather.spaceweather-current-conditions.complexity-minimal .condition-item::before {
    height: 2px;
}

.mod-spaceweather.spaceweather-current-conditions .item-label {
    font-size: 0.85em;
    color: #b19cd9;
    margin: 0 0 8px 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mod-spaceweather.spaceweather-current-conditions.complexity-minimal .item-label {
    font-size: 0.7em;
    margin: 0 0 4px 0;
}

.mod-spaceweather.spaceweather-current-conditions.complexity-moderate .item-label {
    font-size: 0.75em;
    margin: 0 0 6px 0;
}

.mod-spaceweather.spaceweather-current-conditions .item-value {
    font-size: 1.3em;
    font-weight: 700;
    color: #e6e6fa;
    margin: 0 0 4px 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.mod-spaceweather.spaceweather-current-conditions.complexity-minimal .item-value {
    font-size: 1.1em;
    margin: 0 0 2px 0;
}

.mod-spaceweather.spaceweather-current-conditions.complexity-moderate .item-value {
    font-size: 1.2em;
    margin: 0 0 3px 0;
}

.mod-spaceweather.spaceweather-current-conditions .item-status {
    font-size: 0.75em;
    margin: 4px 0;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mod-spaceweather.spaceweather-current-conditions.complexity-minimal .item-status {
    font-size: 0.65em;
    padding: 1px 6px;
    margin: 2px 0;
}

/* ==========================================================================
   HISTORICAL ANALYSIS TEMPLATE
   ========================================================================== */

.mod-spaceweather.spaceweather-historical-analysis {
    background: linear-gradient(135deg, #2d1b69 0%, #1a1a2e 50%, #16213e 100%);
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.mod-spaceweather.spaceweather-historical-analysis::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(75, 0, 130, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.mod-spaceweather.spaceweather-historical-analysis .historical-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.mod-spaceweather.spaceweather-historical-analysis.complexity-minimal .historical-header {
    margin-bottom: 12px;
}

.mod-spaceweather.spaceweather-historical-analysis.complexity-moderate .historical-header {
    margin-bottom: 16px;
}

.mod-spaceweather.spaceweather-historical-analysis .historical-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #e6e6fa;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mod-spaceweather.spaceweather-historical-analysis.complexity-minimal .historical-title {
    font-size: 1.1em;
    margin: 0 0 4px 0;
}

.mod-spaceweather.spaceweather-historical-analysis.complexity-moderate .historical-title {
    font-size: 1.25em;
    margin: 0 0 6px 0;
}

.mod-spaceweather.spaceweather-historical-analysis .historical-subtitle {
    font-size: 0.9em;
    color: #b19cd9;
    margin: 0;
    opacity: 0.8;
}

.mod-spaceweather.spaceweather-historical-analysis.complexity-minimal .historical-subtitle {
    font-size: 0.75em;
}

.mod-spaceweather.spaceweather-historical-analysis.complexity-moderate .historical-subtitle {
    font-size: 0.8em;
}

/* Layout orientations with complexity awareness */
.mod-spaceweather.spaceweather-historical-analysis.layout-horizontal .historical-grid {
    display: grid;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.mod-spaceweather.spaceweather-historical-analysis.layout-horizontal.complexity-minimal .historical-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}

.mod-spaceweather.spaceweather-historical-analysis.layout-horizontal.complexity-moderate .historical-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.mod-spaceweather.spaceweather-historical-analysis.layout-horizontal.complexity-full .historical-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.mod-spaceweather.spaceweather-historical-analysis.layout-vertical .historical-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.mod-spaceweather.spaceweather-historical-analysis.layout-vertical.complexity-minimal .historical-grid {
    gap: 8px;
}

.mod-spaceweather.spaceweather-historical-analysis .historical-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mod-spaceweather.spaceweather-historical-analysis.complexity-minimal .historical-item {
    padding: 12px;
    border-radius: 8px;
}

.mod-spaceweather.spaceweather-historical-analysis.complexity-moderate .historical-item {
    padding: 14px;
    border-radius: 10px;
}

.mod-spaceweather.spaceweather-historical-analysis .historical-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.3);
}

.mod-spaceweather.spaceweather-historical-analysis .historical-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8a2be2, #9370db, #ba55d3);
    opacity: 0.6;
}

.mod-spaceweather.spaceweather-historical-analysis.complexity-minimal .historical-item::before {
    height: 2px;
}

.mod-spaceweather.spaceweather-historical-analysis .item-label {
    font-size: 0.85em;
    color: #b19cd9;
    margin: 0 0 8px 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mod-spaceweather.spaceweather-historical-analysis.complexity-minimal .item-label {
    font-size: 0.7em;
    margin: 0 0 4px 0;
}

.mod-spaceweather.spaceweather-historical-analysis.complexity-moderate .item-label {
    font-size: 0.75em;
    margin: 0 0 6px 0;
}

.mod-spaceweather.spaceweather-historical-analysis .item-value {
    font-size: 1.3em;
    font-weight: 700;
    color: #e6e6fa;
    margin: 0 0 4px 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.mod-spaceweather.spaceweather-historical-analysis.complexity-minimal .item-value {
    font-size: 1.1em;
    margin: 0 0 2px 0;
}

.mod-spaceweather.spaceweather-historical-analysis.complexity-moderate .item-value {
    font-size: 1.2em;
    margin: 0 0 3px 0;
}

.mod-spaceweather.spaceweather-historical-analysis .item-trend {
    font-size: 0.8em;
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mod-spaceweather.spaceweather-historical-analysis.complexity-minimal .item-trend {
    font-size: 0.7em;
    margin: 2px 0;
}

.mod-spaceweather.spaceweather-historical-analysis .trend-increasing {
    color: #ff6b6b;
}

.mod-spaceweather.spaceweather-historical-analysis .trend-decreasing {
    color: #4ecdc4;
}

.mod-spaceweather.spaceweather-historical-analysis .trend-stable {
    color: #95a5a6;
}

.mod-spaceweather.spaceweather-historical-analysis .item-average {
    font-size: 0.75em;
    color: #9370db;
    margin: 4px 0 0 0;
    opacity: 0.8;
}

.mod-spaceweather.spaceweather-historical-analysis.complexity-minimal .item-average {
    font-size: 0.65em;
    margin: 2px 0 0 0;
}

.mod-spaceweather.spaceweather-historical-analysis .item-change {
    font-size: 0.7em;
    color: #dda0dd;
    margin: 2px 0 0 0;
    font-weight: 600;
}

.mod-spaceweather.spaceweather-historical-analysis.complexity-minimal .item-change {
    display: none;
}

/* ==========================================================================
   DEFAULT TEMPLATE
   ========================================================================== */

.mod-spaceweather.spaceweather-default {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
}

.mod-spaceweather.spaceweather-default::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 25% 75%, rgba(52, 152, 219, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 75% 25%, rgba(155, 89, 182, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.mod-spaceweather.spaceweather-default .default-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.mod-spaceweather.spaceweather-default.complexity-minimal .default-header {
    margin-bottom: 12px;
}

.mod-spaceweather.spaceweather-default.complexity-moderate .default-header {
    margin-bottom: 16px;
}

.mod-spaceweather.spaceweather-default .default-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #ecf0f1;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mod-spaceweather.spaceweather-default.complexity-minimal .default-title {
    font-size: 1.1em;
    margin: 0 0 4px 0;
}

.mod-spaceweather.spaceweather-default.complexity-moderate .default-title {
    font-size: 1.25em;
    margin: 0 0 6px 0;
}

.mod-spaceweather.spaceweather-default .default-title::before {
    content: '🌌';
    font-size: 1.2em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.mod-spaceweather.spaceweather-default .default-subtitle {
    font-size: 0.9em;
    color: #bdc3c7;
    margin: 0;
    opacity: 0.8;
}

.mod-spaceweather.spaceweather-default.complexity-minimal .default-subtitle {
    font-size: 0.75em;
}

.mod-spaceweather.spaceweather-default.complexity-moderate .default-subtitle {
    font-size: 0.8em;
}

.mod-spaceweather.spaceweather-default.layout-horizontal .default-grid {
    display: grid;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.mod-spaceweather.spaceweather-default.layout-horizontal.complexity-minimal .default-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}

.mod-spaceweather.spaceweather-default.layout-horizontal.complexity-moderate .default-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.mod-spaceweather.spaceweather-default.layout-horizontal.complexity-full .default-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.mod-spaceweather.spaceweather-default.layout-vertical .default-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.mod-spaceweather.spaceweather-default.layout-vertical.complexity-minimal .default-grid {
    gap: 8px;
}

.mod-spaceweather.spaceweather-default .default-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mod-spaceweather.spaceweather-default.complexity-minimal .default-item {
    padding: 12px;
    border-radius: 8px;
}

.mod-spaceweather.spaceweather-default.complexity-moderate .default-item {
    padding: 14px;
    border-radius: 10px;
}

.mod-spaceweather.spaceweather-default .default-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.mod-spaceweather.spaceweather-default .default-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #9b59b6);
    opacity: 0.6;
}

.mod-spaceweather.spaceweather-default.complexity-minimal .default-item::before {
    height: 2px;
}

.mod-spaceweather.spaceweather-default .item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.mod-spaceweather.spaceweather-default.complexity-minimal .item-header {
    margin-bottom: 4px;
    gap: 6px;
}

.mod-spaceweather.spaceweather-default .item-icon {
    font-size: 1.2em;
    opacity: 0.9;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.mod-spaceweather.spaceweather-default.complexity-minimal .item-icon {
    font-size: 1em;
}

.mod-spaceweather.spaceweather-default .item-label {
    font-size: 0.85em;
    color: #bdc3c7;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
}

.mod-spaceweather.spaceweather-default.complexity-minimal .item-label {
    font-size: 0.7em;
}

.mod-spaceweather.spaceweather-default.complexity-moderate .item-label {
    font-size: 0.75em;
}

.mod-spaceweather.spaceweather-default .item-value {
    font-size: 1.3em;
    font-weight: 700;
    color: #ecf0f1;
    margin: 0 0 4px 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.mod-spaceweather.spaceweather-default.complexity-minimal .item-value {
    font-size: 1.1em;
    margin: 0 0 2px 0;
}

.mod-spaceweather.spaceweather-default.complexity-moderate .item-value {
    font-size: 1.2em;
    margin: 0 0 3px 0;
}

.mod-spaceweather.spaceweather-default .item-status {
    font-size: 0.75em;
    margin: 4px 0;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mod-spaceweather.spaceweather-default.complexity-minimal .item-status {
    font-size: 0.65em;
    padding: 1px 6px;
    margin: 2px 0;
}

/* ==========================================================================
   EVENTS RECENT TEMPLATE
   ========================================================================== */

.mod-spaceweather.spaceweather-events-recent {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 50%, #8e44ad 100%);
    border: 1px solid rgba(155, 89, 182, 0.2);
}

.mod-spaceweather.spaceweather-events-recent::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(155, 89, 182, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(142, 68, 173, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.mod-spaceweather.spaceweather-events-recent .events-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.mod-spaceweather.spaceweather-events-recent.complexity-minimal .events-header {
    margin-bottom: 12px;
}

.mod-spaceweather.spaceweather-events-recent.complexity-moderate .events-header {
    margin-bottom: 16px;
}

.mod-spaceweather.spaceweather-events-recent .events-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #f8f9fa;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mod-spaceweather.spaceweather-events-recent.complexity-minimal .events-title {
    font-size: 1.1em;
    margin: 0 0 4px 0;
}

.mod-spaceweather.spaceweather-events-recent.complexity-moderate .events-title {
    font-size: 1.25em;
    margin: 0 0 6px 0;
}

.mod-spaceweather.spaceweather-events-recent .events-title::before {
    content: '📅';
    font-size: 1.2em;
    text-shadow: 0 0 10px rgba(248, 249, 250, 0.5);
}

.mod-spaceweather.spaceweather-events-recent .events-subtitle {
    font-size: 0.9em;
    color: #d5dbdb;
    margin: 0;
    opacity: 0.8;
}

.mod-spaceweather.spaceweather-events-recent.complexity-minimal .events-subtitle {
    font-size: 0.75em;
}

.mod-spaceweather.spaceweather-events-recent.complexity-moderate .events-subtitle {
    font-size: 0.8em;
}

.mod-spaceweather.spaceweather-events-recent.layout-horizontal .events-timeline {
    display: grid;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.mod-spaceweather.spaceweather-events-recent.layout-horizontal.complexity-minimal .events-timeline {
    grid-template-columns: 1fr;
    gap: 10px;
}

.mod-spaceweather.spaceweather-events-recent.layout-horizontal.complexity-moderate .events-timeline {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.mod-spaceweather.spaceweather-events-recent.layout-horizontal.complexity-full .events-timeline {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.mod-spaceweather.spaceweather-events-recent.layout-vertical .events-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.mod-spaceweather.spaceweather-events-recent.layout-vertical.complexity-minimal .events-timeline {
    gap: 8px;
}

.mod-spaceweather.spaceweather-events-recent .event-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mod-spaceweather.spaceweather-events-recent.complexity-minimal .event-item {
    padding: 12px;
    border-radius: 8px;
}

.mod-spaceweather.spaceweather-events-recent.complexity-moderate .event-item {
    padding: 14px;
    border-radius: 10px;
}

.mod-spaceweather.spaceweather-events-recent .event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.2);
    border-color: rgba(155, 89, 182, 0.3);
}

.mod-spaceweather.spaceweather-events-recent .event-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    opacity: 0.7;
}

.mod-spaceweather.spaceweather-events-recent .event-item.severity-minor::before {
    background: linear-gradient(90deg, #3498db, #5dade2);
}

.mod-spaceweather.spaceweather-events-recent .event-item.severity-moderate::before {
    background: linear-gradient(90deg, #f39c12, #f7dc6f);
}

.mod-spaceweather.spaceweather-events-recent .event-item.severity-high::before {
    background: linear-gradient(90deg, #e67e22, #f8c471);
}

.mod-spaceweather.spaceweather-events-recent .event-item.severity-severe::before {
    background: linear-gradient(90deg, #e74c3c, #ec7063);
}

.mod-spaceweather.spaceweather-events-recent .event-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.mod-spaceweather.spaceweather-events-recent.complexity-minimal .event-header {
    margin-bottom: 8px;
    gap: 8px;
}

.mod-spaceweather.spaceweather-events-recent .event-icon {
    font-size: 1.5em;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    flex-shrink: 0;
}

.mod-spaceweather.spaceweather-events-recent.complexity-minimal .event-icon {
    font-size: 1.2em;
}

.mod-spaceweather.spaceweather-events-recent .event-info {
    flex: 1;
    min-width: 0;
}

.mod-spaceweather.spaceweather-events-recent .event-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #f8f9fa;
    margin: 0 0 4px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mod-spaceweather.spaceweather-events-recent.complexity-minimal .event-title {
    font-size: 1em;
    margin: 0 0 2px 0;
}

.mod-spaceweather.spaceweather-events-recent .event-time {
    font-size: 0.75em;
    color: #d5dbdb;
    margin: 0 0 8px 0;
    opacity: 0.8;
}

.mod-spaceweather.spaceweather-events-recent.complexity-minimal .event-time {
    font-size: 0.7em;
    margin: 0 0 4px 0;
}

.mod-spaceweather.spaceweather-events-recent .event-description {
    font-size: 0.85em;
    color: #ecf0f1;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.mod-spaceweather.spaceweather-events-recent.complexity-minimal .event-description {
    font-size: 0.75em;
    margin: 0 0 4px 0;
}

.mod-spaceweather.spaceweather-events-recent .event-impact {
    font-size: 0.8em;
    color: #bb8fce;
    margin: 4px 0;
    font-style: italic;
}

.mod-spaceweather.spaceweather-events-recent.complexity-minimal .event-impact {
    font-size: 0.7em;
    margin: 2px 0;
}

.mod-spaceweather.spaceweather-events-recent .event-details {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    font-size: 0.75em;
    color: #d5dbdb;
    opacity: 0.8;
}

.mod-spaceweather.spaceweather-events-recent.complexity-minimal .event-details,
.mod-spaceweather.spaceweather-events-recent.complexity-moderate .event-details {
    display: none;
}

.mod-spaceweather.spaceweather-events-recent .event-detail {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mod-spaceweather.spaceweather-events-recent .severity-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   UNIVERSAL STATUS STYLES
   ========================================================================== */

.mod-spaceweather .status-normal,
.mod-spaceweather .status-quiet {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.mod-spaceweather .status-active {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.mod-spaceweather .status-moderate {
    background: rgba(230, 126, 34, 0.2);
    color: #e67e22;
    border: 1px solid rgba(230, 126, 34, 0.3);
}

.mod-spaceweather .status-elevated,
.mod-spaceweather .status-high {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.mod-spaceweather .status-severe {
    background: rgba(142, 68, 173, 0.2);
    color: #8e44ad;
    border: 1px solid rgba(142, 68, 173, 0.3);
}

.mod-spaceweather .severity-minor {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

/* ==========================================================================
   DIGITAL SCALE BARS (UNIVERSAL)
   ========================================================================== */

.mod-spaceweather .digital-scale {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.mod-spaceweather.complexity-minimal .digital-scale {
    height: 4px;
    margin-top: 4px;
}

.mod-spaceweather.complexity-moderate .digital-scale {
    height: 5px;
    margin-top: 6px;
}

.mod-spaceweather .scale-track {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s ease-out;
    position: relative;
}

.mod-spaceweather .scale-track.bright {
    background: linear-gradient(90deg, #3498db, #5dade2);
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.4);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .mod-spaceweather.layout-horizontal .conditions-grid,
    .mod-spaceweather.layout-horizontal .historical-grid,
    .mod-spaceweather.layout-horizontal .default-grid,
    .mod-spaceweather.layout-horizontal .events-timeline {
        grid-template-columns: 1fr;
    }

    .mod-spaceweather {
        padding: 16px;
    }

    .mod-spaceweather .conditions-title,
    .mod-spaceweather .historical-title,
    .mod-spaceweather .default-title,
    .mod-spaceweather .events-title {
        font-size: 1.2em;
    }
}
