@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@500;600;700&display=swap');

:root {
    --primary: #ff003c; /* رنگ اصلی نئون قرمز/صورتی */
    --primary-dim: rgba(255, 0, 60, 0.15);
    --bg-dark: #050505;
    --glass: rgba(20, 20, 20, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    --sidebar-w: 280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; -webkit-tap-highlight-color: transparent; }

body {
    background: var(--bg-dark); color: white;
    font-family: 'Rajdhani', sans-serif;
    overflow: hidden; height: 100vh;
}

/* --- BACKGROUND FX --- */
.video-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -10; }
#bg-video { width: 100%; height: 100%; object-fit: cover; }
.overlay-grid {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(var(--border) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 50px 50px; opacity: 0.1;
}
.overlay-gradient {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #000 90%);
}

/* --- LOADING SCREEN --- */
#boot-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: black; z-index: 9999; display: flex; align-items: center; justify-content: center;
    font-family: 'Orbitron'; flex-direction: column;
}
.boot-logo { width: 120px; animation: pulse 2s infinite; margin-bottom: 20px; }
.glitch-text { font-size: 1.5rem; letter-spacing: 5px; color: var(--primary); margin-bottom: 20px; }
.loader-bar { width: 300px; height: 4px; background: #222; overflow: hidden; }
.fill { height: 100%; background: var(--primary); width: 0%; transition: width 0.2s; box-shadow: 0 0 10px var(--primary); }
.console-log { font-family: monospace; color: #555; font-size: 0.8rem; margin-top: 10px; height: 20px; }

/* --- SIDEBAR --- */
.sidebar {
    position: fixed; left: 0; top: 0; height: 100vh; width: var(--sidebar-w);
    background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(15px);
    border-right: 1px solid var(--border); display: flex; flex-direction: column;
    z-index: 100; transform: translateX(0); transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.sidebar-top { padding: 40px 30px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 15px; }
.sidebar-top img { width: 50px; }
.profile-info { display: flex; flex-direction: column; }
.p-name { font-family: 'Orbitron'; font-weight: bold; letter-spacing: 1px; }
.p-rank { color: var(--primary); font-size: 0.8rem; }

.nav-links { list-style: none; padding: 30px 0; flex: 1; }
.nav-links li {
    padding: 18px 30px; cursor: pointer; color: #888; transition: 0.3s;
    font-family: 'Orbitron'; letter-spacing: 1px; display: flex; align-items: center; gap: 15px;
    position: relative; overflow: hidden;
}
.nav-links li:hover, .nav-links li.active { color: white; background: linear-gradient(90deg, var(--primary-dim), transparent); }
.nav-links li.active::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background: var(--primary); box-shadow: 0 0 10px var(--primary); }

.sidebar-bottom { padding: 20px 30px; border-top: 1px solid var(--border); font-size: 0.8rem; color: #666; display: flex; align-items: center; gap: 10px; }
.online { width: 8px; height: 8px; background: #0f0; border-radius: 50%; box-shadow: 0 0 5px #0f0; }

/* --- MAIN STAGE --- */
.stage { margin-left: var(--sidebar-w); height: 100vh; padding: 40px; position: relative; perspective: 1000px; overflow-y: auto; }
.view { display: none; animation: fadeIn 0.5s ease-out; height: 100%; }
.view.active { display: block; }

/* --- HOME DASHBOARD (THE BOMB) --- */
.dashboard-grid {
    display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr auto;
    gap: 40px; height: 90%; align-content: center;
}

.hero-module { display: flex; flex-direction: column; justify-content: center; }
.holo-subtitle { color: var(--primary); font-family: 'Orbitron'; letter-spacing: 3px; margin-bottom: 10px; }
.holo-title { font-family: 'Orbitron'; font-size: 5rem; line-height: 0.9; font-weight: 900; text-shadow: 0 0 30px rgba(0,0,0,0.5); }
.neon-text { color: transparent; -webkit-text-stroke: 2px white; position: relative; }
.holo-desc { color: #aaa; margin: 20px 0 40px; max-width: 500px; font-size: 1.1rem; line-height: 1.6; border-left: 2px solid var(--primary); padding-left: 15px; }

.action-buttons { display: flex; gap: 20px; }
button { padding: 15px 40px; font-family: 'Orbitron'; font-weight: bold; cursor: pointer; transition: 0.3s; clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px); border: none; }
.btn-primary { background: var(--primary); color: black; box-shadow: 0 0 20px var(--primary-dim); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 40px var(--primary-dim); }
.btn-secondary { background: transparent; border: 1px solid white; color: white; }
.btn-secondary:hover { background: white; color: black; }

/* HOLO STATS CARD */
.stats-module {
    background: rgba(10,10,10,0.6); border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(3px); padding: 30px; border-radius: 20px;
    display: flex; flex-direction: column; justify-content: space-between;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); transform-style: preserve-3d;
}
.glass-header { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; font-family: 'Orbitron'; color: #888; }
.match-info { display: flex; justify-content: space-between; align-items: center; font-size: 2rem; font-weight: bold; margin: 30px 0; }
.vs { font-size: 1rem; color: var(--primary); }
.live-score { text-align: center; font-family: 'Orbitron'; font-size: 3rem; color: white; text-shadow: 0 0 15px white; }
.live-indicator { color: #f00; font-weight: bold; margin-top: auto; display: flex; align-items: center; gap: 10px; }
.blink { animation: pulse 1s infinite; }

/* ROSTER CARDS */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; margin-top: 30px; }
.player-card {
    height: 400px; position: relative; overflow: hidden; border-radius: 10px; border: 1px solid #333;
    transition: 0.4s;
}
.player-card:hover { border-color: var(--primary); transform: translateY(-10px); }
.card-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: 0.4s; }
.player-card:hover img { filter: grayscale(0); transform: scale(1.1); }
.card-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(transparent, black);
    padding: 20px;
}
.stat-bars .bar { width: 100%; height: 4px; background: #333; margin-top: 5px; }
.stat-bars .val { height: 100%; background: var(--primary); }

/* MOBILE */
.mobile-header { display: none; position: fixed; top: 0; left: 0; width: 100%; padding: 20px; z-index: 200; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px); border-bottom: 1px solid #333; }
.mobile-logo { font-family: 'Orbitron'; font-weight: 900; font-size: 1.5rem; }
.hamburger { width: 30px; cursor: pointer; }
.line { width: 100%; height: 2px; background: white; margin: 6px 0; transition: 0.3s; }

@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); width: 100%; top: 70px; height: calc(100vh - 70px); }
    .sidebar.open { transform: translateX(0); }
    .stage { margin-left: 0; padding: 100px 20px 20px; }
    .mobile-header { display: flex; }
    .dashboard-grid { grid-template-columns: 1fr; grid-template-rows: auto; gap: 30px; }
    .holo-title { font-size: 3rem; }
    .stats-module { min-height: 300px; }
}

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }