/* Live Data Dashboard CSS - Sanctum Network */
:root {
    --primary-color: #f0a0f5;
    --secondary-color: #5ee4e4;
    --background-color: rgba(0, 0, 0, 0.56);
    --hover-color: #30e430;
    --section-bg: rgba(0, 0, 0, 0.8);
    --font-family: 'Orbitron', 'Roboto', sans-serif;
    --nav-bg: rgba(0, 0, 0, 0.85);
    --info-bg: rgba(0, 0, 0, 0.91);
    --glow-primary: 0 0 10px rgba(240, 160, 245, 0.7);
    --glow-secondary: 0 0 10px rgba(94, 228, 228, 0.7);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px var(--primary-color); }
    50% { box-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--secondary-color); }
    100% { box-shadow: 0 0 5px var(--primary-color); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes meteorShower {
    0% { transform: translateX(-100%) translateY(100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(100vw) translateY(-100%); opacity: 0; }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes beachPulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Base Styles */
html, body {
    height: 100%;
    margin: 0;
    font-family: var(--font-family);
    overflow-x: hidden;
    color: #fff;
    max-width: 100%;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
    max-width: 100%;
}

body {
    display: flex;
    flex-direction: column;
    background: url('../images/minecraft_magic_elemental_background.png') no-repeat center top;
    background-size: cover;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(94, 228, 228, 0.1), rgba(240, 160, 245, 0.1));
    pointer-events: none;
    z-index: -1;
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background: var(--nav-bg);
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

nav .divider {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

nav img {
    width: 120px;
    height: 112px;
    border-radius: 39px;
    transition: all 0.3s ease;
    animation: pulse 3s infinite ease-in-out;
    box-shadow: var(--glow-primary);
}

nav img:hover {
    transform: scale(1.1);
}

/* Main Content */
main {
    margin-top: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 100px;
}

.data-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    background: linear-gradient(145deg, var(--info-bg), rgba(20, 20, 30, 0.95));
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    color: #ffffff;
    width: 85%;
    max-width: 1200px;
    position: relative;
    border: 1px solid rgba(94, 228, 228, 0.2);
    backdrop-filter: blur(5px);
    animation: glow 5s infinite ease-in-out;
    margin: 20px auto;
    box-sizing: border-box;
    overflow: hidden;
}

/* Typography */
h1 {
    text-align: center;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--secondary-color);
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.data-section {
    width: 100%;
    margin-bottom: 30px;
}

.data-section h2 {
    color: var(--secondary-color);
    text-shadow: 0 0 8px rgba(94, 228, 228, 0.7);
    margin-bottom: 20px;
}

/* Category Selection */
.category-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
    width: 100%;
}

.category-option {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(10, 10, 20, 0.7);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 15px rgba(94, 228, 228, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.category-option:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px var(--primary-color);
}

.category-option.active {
    border: 2px solid var(--hover-color);
    box-shadow: 0 0 25px var(--hover-color);
}

.category-option .category-icon {
    font-size: 42px;
    margin-bottom: 12px;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.category-option:hover .category-icon {
    color: var(--hover-color);
    transform: scale(1.1);
}

.category-option .category-name {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.category-option:hover .category-name {
    color: var(--hover-color);
}

/* Visualization Options */
.viz-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
}

.viz-option {
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--secondary-color);
    border-radius: 30px;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.viz-option:hover, .viz-option.active {
    background: rgba(48, 228, 48, 0.2);
    border-color: var(--hover-color);
    color: var(--hover-color);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(48, 228, 48, 0.3);
}

/* Data Display */
.data-display {
    width: 100%;
    min-height: 400px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(94, 228, 228, 0.3);
    padding: 20px;
    transition: all 0.5s ease;
    position: relative;
}

.loading-indicator {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(240, 160, 245, 0.3);
    border-radius: 50%;
    border-top: 5px solid var(--primary-color);
    animation: spin 1s linear infinite;
}

.no-data-message {
    color: var(--secondary-color);
    text-align: center;
    max-width: 400px;
}

/* Tables and Charts */
.chart-container {
    width: 100%;
    height: 400px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    position: relative;
}

.map-container {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.9em;
    border-radius: 10px;
    overflow: hidden;
}

.data-table th {
    background-color: rgba(94, 228, 228, 0.2);
    color: var(--secondary-color);
    text-align: left;
    padding: 12px;
    font-weight: bold;
}

.data-table td {
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(94, 228, 228, 0.1);
}

.data-table tr:hover td {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Earthquake table specific styles */
.earthquake-data-section {
    width: 100%;
    margin-top: 30px;
}

.earthquake-data-section h3 {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(94, 228, 228, 0.5);
}

.data-table-container {
    max-height: 500px;
    overflow-y: auto;
    border-radius: 10px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(94, 228, 228, 0.3);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

.data-table-container::-webkit-scrollbar {
    width: 8px;
}

.data-table-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.data-table-container::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
    opacity: 0.7;
}

.data-table-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
    opacity: 1;
}

/* Metrics and Cards */
.data-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
    width: 100%;
}

.metric-card {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 15px;
    width: calc(25% - 15px);
    min-width: 200px;
    text-align: center;
    border: 1px solid rgba(94, 228, 228, 0.2);
}

.metric-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0;
}

.metric-label {
    font-size: 14px;
    color: var(--secondary-color);
}

.metric-unit {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* Status and Error Messages */
.data-error {
    color: #ff5555;
    font-style: italic;
    text-align: center;
    padding: 20px;
    border: 1px solid rgba(255, 85, 85, 0.3);
    border-radius: 10px;
    background: rgba(255, 85, 85, 0.1);
    max-width: 600px;
    margin: 20px auto;
}

.api-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-top: 10px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-online {
    background-color: #4CAF50;
    box-shadow: 0 0 10px #4CAF50;
}

.status-offline {
    background-color: #F44336;
    box-shadow: 0 0 10px #F44336;
}

.status-loading {
    background-color: #FFC107;
    box-shadow: 0 0 10px #FFC107;
}

/* Meteor Shower Styles */
.meteor-shower-section {
    width: 100%;
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 40, 0.9));
    border-radius: 20px;
    border: 2px solid rgba(94, 228, 228, 0.3);
    position: relative;
    overflow: hidden;
}

.next-meteor-display {
    text-align: center;
    position: relative;
    z-index: 2;
}

.meteor-shower-title {
    font-size: 32px;
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.meteor-shower-name {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(94, 228, 228, 0.5);
}

.meteor-countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.countdown-unit {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 20px;
    min-width: 80px;
    border: 1px solid rgba(94, 228, 228, 0.3);
}

.countdown-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.countdown-label {
    font-size: 14px;
    color: var(--secondary-color);
    margin-top: 5px;
}

.meteor-status-active {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: #000;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    margin: 15px 0;
    animation: pulse 2s infinite;
}

.meteor-status-upcoming {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: #000;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    margin: 15px 0;
}

/* Event Cards */
.event-card {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    border-left: 4px solid var(--secondary-color);
    text-align: left;
}

/* Stream Controls */
.stream-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.stream-control-btn {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--secondary-color);
    border-radius: 25px;
    padding: 8px 15px;
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.stream-control-btn:hover {
    background: rgba(94, 228, 228, 0.2);
    transform: scale(1.05);
}

/* Beach/Stream Specific Styles */
.beach-info-panel {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-height: 400px;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(94, 228, 228, 0.3);
    overflow-y: auto;
    z-index: 15;
    backdrop-filter: blur(10px);
}

.beach-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.beach-close-btn:hover {
    color: var(--hover-color);
    transform: scale(1.2);
}

.beach-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #00ffff 0%, #0088ff 100%);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
    animation: beachPulse 2s infinite ease-in-out;
}

.beach-marker:hover {
    transform: scale(1.5);
    box-shadow: 0 0 25px rgba(0, 255, 255, 1);
}

/* Globe Styles */
.globe-container {
    width: 100%;
    height: 600px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #000428, #004e92);
}

.globe-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
}

.globe-loading .loading-indicator {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.globe-stats {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(94, 228, 228, 0.3);
    z-index: 10;
    min-width: 200px;
}

.globe-stats h4 {
    color: var(--secondary-color);
    margin: 0 0 10px 0;
    font-size: 14px;
}

.globe-stat-item {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    font-size: 12px;
}

.globe-stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.globe-stat-value {
    color: var(--primary-color);
    font-weight: bold;
}

/* Leaflet Map Overrides */
.leaflet-container {
    background: rgba(0, 0, 0, 0.2) !important;
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background: var(--section-bg);
    color: #ffffff;
    position: fixed;
    width: 100%;
    bottom: 0;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
}

footer p {
    margin: 0;
    text-shadow: 0 0 5px var(--primary-color);
    font-size: 0.9em;
}

.data-refresh {
    text-align: center;
    margin-top: 20px;
    color: var(--secondary-color);
    font-size: 0.9em;
    text-shadow: 0 0 5px rgba(94, 228, 228, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .data-container {
        width: 95%;
        padding: 20px;
    }
    
    .category-selector {
        gap: 15px;
    }
    
    .category-option {
        width: 150px;
        height: 150px;
    }
    
    .metric-card {
        width: calc(50% - 15px);
    }
    
    .globe-container {
        height: 400px;
    }
    
    .beach-info-panel {
        width: calc(100% - 40px);
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-height: 250px;
    }
    
    .globe-controls, .globe-stats {
        position: relative;
        width: 100%;
        margin: 10px 0;
    }
    
    .meteor-countdown {
        gap: 15px;
    }
    
    .countdown-unit {
        min-width: 60px;
        padding: 15px;
    }
    
    .countdown-number {
        font-size: 24px;
    }
} 