/* 
   O.P SYSTEM - OFFICIAL GAMING STYLESHEET 
   Theme: Tech-Military / Pro-Gamer
   Primary Color: Neon Red (#ff0000)
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700;900&family=Teko:wght@300;500;700&family=Orbitron:wght@400;900&display=swap');

:root {
    --bg-dark: #050505;
    --card-bg: #0d0d0d;
    --op-red: #ff0000;
    --op-red-dim: #8b0000;
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --border-color: #1a1a1a;
    --glass: rgba(255, 255, 255, 0.03);
}

/* Reset & Global */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
}

/* Background Grid Effect */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--op-red); border-radius: 10px; }

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--op-red-dim);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: 3px;
}

.navbar .logo span {
    color: var(--op-red);
    text-shadow: 0 0 10px var(--op-red);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--op-red);
    text-shadow: 0 0 5px var(--op-red);
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(255, 0, 0, 0.1) 0%, transparent 70%);
}

.hero-content h1 {
    font-family: 'Teko', sans-serif;
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: 5px;
}

.glitch {
    position: relative;
    color: white;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.8;
}

.glitch::before { color: #ff00c1; z-index: -1; animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite; }
.glitch::after { color: #00fff9; z-index: -2; animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) reverse both infinite; }

@keyframes glitch {
    0% { transform: translate(0) }
    20% { transform: translate(-3px, 3px) }
    40% { transform: translate(-3px, -3px) }
    60% { transform: translate(3px, 3px) }
    80% { transform: translate(3px, -3px) }
    100% { transform: translate(0) }
}

.stats-bar {
    display: inline-block;
    padding: 8px 25px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid var(--op-red);
    border-radius: 50px;
    font-family: 'Teko', sans-serif;
    font-size: 1.4rem;
    margin-top: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 35px;
    background: var(--op-red);
    color: #000;
    border: none;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.4s;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
}

.btn:hover {
    background: #fff;
    box-shadow: 0 0 20px var(--op-red);
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--op-red);
    color: var(--op-red);
}

.btn-outline:hover {
    background: var(--op-red);
    color: #000;
}

/* Sections & Grid */
section {
    padding: 80px 10%;
}

.section-title {
    font-family: 'Teko', sans-serif;
    font-size: 3.5rem;
    text-align: center;
    color: var(--op-red);
    margin-bottom: 50px;
    text-transform: uppercase;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Card HUD Style */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    position: relative;
    transition: 0.3s;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 10px; height: 10px;
    border-top: 2px solid var(--op-red);
    border-right: 2px solid var(--op-red);
}

.card:hover {
    border-color: var(--op-red-dim);
    background: rgba(255, 0, 0, 0.02);
    transform: translateY(-5px);
}

/* Partner Card Specific */
.partner-section {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    padding: 100px 10%;
}

.partner-card {
    border: 2px solid #fff !important;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.partner-badge {
    background: #fff;
    color: #000;
    padding: 5px 20px;
    font-weight: 900;
    font-family: 'Teko', sans-serif;
    display: inline-block;
    margin-bottom: 20px;
}

/* Leaderboard / Members */
.member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.avatar-small {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--op-red);
    margin-bottom: 15px;
    box-shadow: 0 0 10px rgba(255,0,0,0.3);
}

.status-dot {
    height: 10px;
    width: 10px;
    background-color: #00ff00;
    border-radius: 50%;
    display: inline-block;
    margin-left: 5px;
}

/* Tournament Card */
.tournament-card {
    border-top: 4px solid var(--op-red);
}

.t-date {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--op-red);
    color: #000;
    padding: 2px 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Admin Gate / Secret Area */
.admin-input {
    width: 100%;
    padding: 15px;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    letter-spacing: 5px;
    margin-bottom: 20px;
}

.admin-input:focus {
    border-color: var(--op-red);
    outline: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 3.5rem; }
    .nav-links { display: none; } /* يمكن إضافة قائمة موبايل لاحقاً */
    section { padding: 50px 5%; }
}