/* assets/css/style.css */
/* AGE OF NEXUM - Global Styles */

:root {
    --nexum-dark: #0A0E17;
    --nexum-darker: #060A10;
    --nexum-panel: #111827;
    --nexum-border: #1E293B;
    --nexum-steel: #4A5568;
    --nexum-silver: #A0AEC0;
    --nexum-cyan: #00D4FF;
    --nexum-cyan-dark: #0099CC;
    --nexum-orange: #FF6B00;
    --nexum-orange-glow: #FFA500;
    --nexum-gold: #FFD700;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--nexum-dark);
    color: var(--nexum-silver);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Backgrounds */
.bg-grid {
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.bg-circuit {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0v10M30 50v10M0 30h10M50 30h10' stroke='%23ffffff' stroke-width='0.5' opacity='0.03'/%3E%3Ccircle cx='30' cy='30' r='2' fill='%2300D4FF' opacity='0.05'/%3E%3C/svg%3E");
}

.vignette {
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
}

/* Text Effects */
.text-glow-cyan { text-shadow: 0 0 10px rgba(0, 212, 255, 0.5), 0 0 20px rgba(0, 212, 255, 0.3); }
.text-glow-orange { text-shadow: 0 0 10px rgba(255, 107, 0, 0.5), 0 0 20px rgba(255, 107, 0, 0.3); }

/* Buttons */
.btn-nexum {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 153, 204, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: var(--nexum-cyan);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-nexum::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-nexum:hover::before { left: 100%; }
.btn-nexum:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(0, 153, 204, 0.2));
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.btn-nexum-orange {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.15), rgba(255, 165, 0, 0.1));
    border: 1px solid rgba(255, 107, 0, 0.4);
    color: var(--nexum-orange);
}

.btn-nexum-orange:hover {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.25), rgba(255, 165, 0, 0.2));
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.4);
}

.btn-play {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2), rgba(255, 165, 0, 0.15));
    border: 2px solid rgba(255, 107, 0, 0.6);
    color: var(--nexum-gold);
    animation: playPulse 2s ease-in-out infinite;
}

@keyframes playPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 0, 0.3), 0 0 40px rgba(255, 107, 0, 0.1); }
    50% { box-shadow: 0 0 30px rgba(255, 107, 0, 0.5), 0 0 60px rgba(255, 107, 0, 0.2); }
}

.btn-play:hover {
    animation: none;
    box-shadow: 0 0 40px rgba(255, 107, 0, 0.6), 0 0 80px rgba(255, 107, 0, 0.3);
    transform: scale(1.05);
}

/* Navbar */
.navbar {
    background: linear-gradient(180deg, rgba(10, 14, 23, 0.98), rgba(10, 14, 23, 0.9));
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
    backdrop-filter: blur(10px);
    position: relative;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.4), transparent);
}

.nav-link {
    position: relative;
    transition: all 0.3s;
    color: var(--nexum-silver);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--nexum-cyan), var(--nexum-cyan-dark));
    transition: width 0.3s;
}

.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--nexum-cyan); text-shadow: 0 0 10px rgba(0, 212, 255, 0.5); }

/* Panels */
.panel {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(10, 14, 23, 0.98));
    border: 1px solid rgba(0, 212, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--nexum-cyan), transparent);
}

.panel-orange::before {
    background: linear-gradient(90deg, transparent, var(--nexum-orange), transparent);
}

/* Cards */
.stat-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(10, 14, 23, 0.95));
    border: 1px solid rgba(74, 85, 104, 0.3);
    position: relative;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
}

.stat-icon {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), transparent);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.action-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(10, 14, 23, 0.98));
    border: 1px solid rgba(74, 85, 104, 0.3);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--nexum-cyan), transparent);
}

.action-card:hover {
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 212, 255, 0.1);
}

.action-card:hover::before {
    background: linear-gradient(180deg, var(--nexum-cyan), var(--nexum-cyan-dark));
}

.feature-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(10, 14, 23, 0.95));
    border: 1px solid rgba(74, 85, 104, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color, var(--nexum-cyan)), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 255, 0.1);
}

.feature-icon {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), transparent);
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.4s;
}

.feature-card:hover .feature-icon {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.5);
}

/* Forms */
.input-field {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s;
    color: var(--nexum-silver);
}

.input-field:focus {
    outline: none;
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1), inset 0 0 10px rgba(0, 212, 255, 0.05);
    background: rgba(0, 212, 255, 0.03);
}

.input-field::placeholder { color: rgba(160, 174, 192, 0.4); }

.checkbox-custom {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(0, 212, 255, 0.4);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.checkbox-custom:checked {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--nexum-cyan);
}

.checkbox-custom:checked::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--nexum-cyan);
    font-size: 12px;
}

/* User Badge */
.user-badge {
    background: linear-gradient(135deg, rgba(74, 85, 104, 0.3), rgba(30, 41, 59, 0.5));
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.role-admin {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2), rgba(255, 165, 0, 0.1));
    border: 1px solid rgba(255, 107, 0, 0.5);
    color: var(--nexum-gold);
}

.role-moderator {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 153, 204, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.5);
    color: var(--nexum-cyan);
}

.role-user {
    background: rgba(74, 85, 104, 0.3);
    border: 1px solid rgba(160, 174, 192, 0.3);
    color: var(--nexum-silver);
}

/* Language Switch */
.lang-switch {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s;
    color: var(--nexum-silver);
    text-decoration: none;
}

.lang-switch:hover { border-color: rgba(0, 212, 255, 0.5); }
.lang-switch.active {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
}

/* Crystals */
.crystal {
    width: 8px;
    height: 16px;
    background: linear-gradient(180deg, var(--nexum-cyan), var(--nexum-cyan-dark));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.crystal-orange {
    background: linear-gradient(180deg, var(--nexum-gold), var(--nexum-orange));
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
}

/* Messages */
.error-message {
    background: linear-gradient(135deg, rgba(255, 50, 50, 0.1), rgba(255, 50, 50, 0.05));
    border: 1px solid rgba(255, 50, 50, 0.3);
    border-left: 3px solid #ff3232;
}

.success-message {
    background: linear-gradient(135deg, rgba(0, 255, 100, 0.1), rgba(0, 255, 100, 0.05));
    border: 1px solid rgba(0, 255, 100, 0.3);
    border-left: 3px solid #00ff64;
}

/* Login Panel */
.login-panel {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(10, 14, 23, 0.98));
    border: 1px solid rgba(0, 212, 255, 0.2);
    position: relative;
    animation: panelGlow 4s ease-in-out infinite;
}

.login-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--nexum-cyan), transparent);
}

.login-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--nexum-orange), transparent);
}

@keyframes panelGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(0, 212, 255, 0.1); }
    50% { box-shadow: 0 0 50px rgba(0, 212, 255, 0.2); }
}

/* Corner Decorations */
.corner-tl, .corner-tr, .corner-bl, .corner-br {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 212, 255, 0.4);
}

.corner-tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.corner-tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.corner-bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.corner-br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 212, 255, 0.5);
    border-radius: 50%;
    animation: particleFloat 15s infinite linear;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Hero Logo Animation */
@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-logo {
    animation: logoFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.3));
}

/* Footer */
.footer {
    background: linear-gradient(180deg, transparent, rgba(10, 14, 23, 0.95));
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(10, 14, 23, 0.99));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--nexum-steel);
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--nexum-cyan);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--nexum-dark); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--nexum-cyan), var(--nexum-cyan-dark));
    border-radius: 4px;
}

/* 404 Page */
.error-code {
    font-family: 'Orbitron', sans-serif;
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(90deg, #f00, #f0f, #0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 90%, 100% { transform: translateX(0); }
    92% { transform: translateX(-5px); }
    94% { transform: translateX(5px); }
    96% { transform: translateX(-3px); }
    98% { transform: translateX(3px); }
}

/* Scanlines for 404 */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.1) 0px, rgba(0, 0, 0, 0.1) 1px, transparent 1px, transparent 3px);
    z-index: 1000;
}