/* ===== RESET & BASE ===== */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-green: #0a1f0f;
    --medium-green: #1a3d2a;
    --light-green: #2d5f3f;
    --accent-green: #4a8b5f;
    --gold: #d4af37;
    --light-gold: #f4e5c2;
    --bright-gold: #ffd700;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --glass-bg: rgba(10, 31, 15, 0.6);
    --glass-border: rgba(212, 175, 55, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('img/bg.jpg') center / cover fixed no-repeat;
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    cursor: url('img/cursor/normal.cur'), auto;
}

a, .nav-node, .realm-button, .scroll-indicator, button, .realm-card, input, textarea, select {
    cursor: url('img/cursor/link.cur'), pointer;
}

* {
    cursor: url('img/cursor/normal.cur'), auto !important;
}

a:hover, .nav-node:hover, .realm-button:hover, .scroll-indicator:hover, button:hover, .realm-card:hover {
    cursor: url('img/cursor/link.cur'), pointer !important;
}

/* ===== MYSTICAL NAVIGATION ===== */
.mystical-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    pointer-events: none;
}

.nav-line-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    height: 80px;
    pointer-events: auto;
}

.nav-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 0 40px;
}

.nav-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    right: -20px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    transform: translateY(-50%);
    animation: line-energy 3s ease-in-out infinite;
}

.nav-node {
    position: relative;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.nav-node:hover {
    transform: scale(1.1);
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Navigation spacing for Discord and TikTok */
.nav-node:nth-child(2) {
    margin-right: 40px;
}

.nav-node:nth-child(3) {
    margin-left: 40px;
}

/* Override margins when wrapped in links */
a:nth-child(2) .nav-node {
    margin-right: 40px;
}

a:nth-child(3) .nav-node {
    margin-left: 40px;
}

.nav-node::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-node:hover::before {
    opacity: 1;
    animation: node-ring-pulse 2s ease-out infinite;
}

.node-icon {
    font-size: 18px;
    color: var(--gold);
    transition: all 0.3s ease;
}

.nav-node:hover .node-icon {
    color: var(--bright-gold);
    transform: scale(1.1);
}

.node-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-node:hover .node-pulse {
    opacity: 1;
    animation: pulse-ring 2s ease-out infinite;
}

.central-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--gold) 0%, rgba(212, 175, 55, 0.8) 50%, transparent 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s ease;
    animation: central-orb-float 4s ease-in-out infinite;
    z-index: 3;
}

.central-orb:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
}

.central-symbol {
    font-size: 24px;
    color: var(--dark-green);
    font-weight: bold;
}

.orb-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow-pulse 3s ease-in-out infinite;
}

.nav-energy {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 175, 55, 0.05) 25%, 
        rgba(212, 175, 55, 0.05) 75%, 
        transparent 100%);
    animation: energy-flow 4s linear infinite;
    pointer-events: none;
}

/* Tooltip styles */
.nav-node[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg);
    color: var(--gold);
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(10px);
    animation: tooltip-fade 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Mystical Navigation Animations */
@keyframes central-orb-float {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-5px); }
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); }
}

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

@keyframes node-ring-pulse {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.3; transform: translate(-50%, -50%) scale(1.1); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes line-energy {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

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

@keyframes tooltip-fade {
    0% { opacity: 0; transform: translateX(-50%) translateY(5px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes hero-entrance {
    0% { opacity: 0; transform: translateY(50px) scale(0.8); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes title-entrance {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes symbol-glow {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.5)); }
    50% { filter: drop-shadow(0 0 60px rgba(212, 175, 55, 0.8)); }
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(74, 139, 95, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.3) 0%, transparent 2%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.2) 0%, transparent 2%),
        radial-gradient(circle at 40% 40%, rgba(255, 215, 0, 0.15) 0%, transparent 1%);
    background-size: 200px 200px, 150px 150px, 100px 100px;
    animation: float-particles 20s linear infinite;
}

.mystical-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(10, 31, 15, 0.4) 0%, 
        transparent 30%, 
        transparent 70%, 
        rgba(10, 31, 15, 0.4) 100%);
    animation: mystical-pulse 4s ease-in-out infinite;
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.main-logo {
    height: 180px;
    width: auto;
    filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.3));
    display: block;
}

.scroll-indicator {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    gap: 15px;
}

.scroll-arrow {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scroll-indicator:hover .scroll-arrow {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.scroll-arrow i {
    font-size: 20px;
    color: var(--gold);
    transition: all 0.3s ease;
}

.scroll-indicator:hover .scroll-arrow i {
    transform: translateY(3px);
    color: var(--bright-gold);
}

.scroll-text {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.scroll-indicator:hover .scroll-text {
    color: var(--gold);
    opacity: 1;
}

/* ===== REALMS SECTION ===== */
.realms-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title-icon {
    font-size: 42px;
    color: var(--gold);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    font-style: italic;
}

.realms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.realm-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    animation: realm-entrance 0.8s ease-out;
}

.realm-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
}

.realm-header {
    padding: 30px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.realm-info {
    flex: 1;
}

.realm-name {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.realm-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.realm-status .status-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #dc3545;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.5);
    animation: pulse-dot 2s infinite;
}

.realm-stats {
    padding: 30px;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.2);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: 16px;
}

/* Server Status Colors - IMPORTANT: !important pentru a suprascrie */
.server-status-text {
    color: #dc3545 !important; /* Roșu default pentru offline */
    font-weight: 600;
}

.status-dot {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50%;
    background: #dc3545 !important; /* Roșu default pentru offline */
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5) !important;
    display: inline-block;
    margin-right: 8px;
    animation: pulse-dot 2s infinite;
}

/* Server Online - Verde */
.realm-status.online .status-dot,
.status-dot.online {
    background: #28a745 !important; /* Verde */
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.8) !important;
}

.realm-status.online .server-status-text,
.server-status-text.online {
    color: #28a745 !important; /* Verde */
}

/* Server Offline - Roșu */
.realm-status.offline .status-dot,
.status-dot.offline {
    background: #dc3545 !important; /* Roșu */
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.8) !important;
}

.realm-status.offline .server-status-text,
.server-status-text.offline {
    color: #dc3545 !important; /* Roșu */
}

.realm-action {
    padding: 0 30px 30px;
}

.realm-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--bright-gold) 100%);
    border: none;
    border-radius: 12px;
    color: var(--dark-green);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.realm-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.realm-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
}

.realm-button:hover::before {
    left: 100%;
}

.realm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 31, 15, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.realm-card.unavailable .realm-overlay {
    display: flex;
}

.overlay-content {
    text-align: center;
}

.overlay-icon {
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 15px;
    display: block;
}

.overlay-content p {
    color: var(--text-secondary);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== FOOTER ===== */
.footer {
    padding: 40px 20px;
    text-align: center;
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-symbol {
    font-size: 32px;
    color: var(--gold);
}

.footer-text {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.footer-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--bright-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* ===== STATUS DOT ===== */
.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dc3545;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
    animation: pulse-dot 2s infinite;
    display: inline-block;
    margin-right: 8px;
}

.status-indicator.online .status-dot,
.realm-status.online .status-dot {
    background: #28a745;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.8);
}

.status-text {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

/* Loading animation for stats */
.stat-value.loading {
    color: var(--gold);
    animation: pulse 1s ease-in-out infinite;
}

/* Improved server status transitions */
.realm-status .status-dot {
    transition: all 0.3s ease;
}

.server-status-text {
    transition: all 0.3s ease;
}

/* ===== ANIMATIONS ===== */
@keyframes float-particles {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes mystical-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes hero-entrance {
    0% { opacity: 0; transform: translateY(50px) scale(0.8); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes symbol-glow {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.5)); }
    50% { filter: drop-shadow(0 0 60px rgba(212, 175, 55, 0.8)); }
}

@keyframes ring-rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orb-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes orb-shimmer {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes realm-entrance {
    0% { opacity: 0; transform: translateY(30px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-line-container {
        padding: 15px;
        height: 70px;
    }
    
    .nav-line {
        gap: 20px;
        padding: 0 20px;
    }
    
    .nav-node {
        width: 40px;
        height: 40px;
    }
    
    .node-icon {
        font-size: 14px;
    }
    
    .central-orb {
        width: 50px;
        height: 50px;
    }
    
    .central-symbol {
        font-size: 20px;
    }
    
    .orb-glow {
        width: 70px;
        height: 70px;
    }
    
    .main-logo {
        height: 120px;
    }
    
    .scroll-arrow {
        width: 40px;
        height: 40px;
    }
    
    .scroll-arrow i {
        font-size: 16px;
    }
    
    .scroll-text {
        font-size: 10px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .realms-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .stat-orb {
        width: 120px;
        height: 120px;
    }
    
    .orb-number {
        font-size: 28px;
    }
    
    .realm-header {
        padding: 20px;
    }
    
    .realm-name {
        font-size: 22px;
    }
    
    .realm-stats {
        padding: 20px;
    }
    
    .stat-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}