/* Public landing page (/). Moved out of index.html for CSP. */
/* ============================================
   دمج الأنماط (CSS Integration)
   ============================================ */
:root {
    --primary: #1a1a2e;
    --secondary: #3498db;
    --accent: #9b59b6;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --bg-dark: #0f0f23;
    --surface: #1e1e3a;
    --text-main: #ffffff;
    --text-sec: #b8b8d1;
    --gradient-main: linear-gradient(135deg, #1a1a2e, #16213e);
    --gradient-card: linear-gradient(135deg, #ffffff, #f8f9fa);
    --radius: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}

.logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: white; font-size: 22px; font-weight: 700;
}
.logo i { color: var(--secondary); font-size: 26px; }
.logo-pro {
    background: linear-gradient(45deg, var(--secondary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.nav-actions .btn { margin-left: 10px; }

/* Hero Section */
.hero-section {
    padding: 120px 20px 60px;
    background: var(--gradient-main);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-section::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
}

.hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.05); padding: 5px 15px;
    border-radius: 50px; border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px; font-size: 14px;
}

.hero-title {
    font-size: 48px; margin-bottom: 20px; line-height: 1.2;
    background: linear-gradient(45deg, #fff, #b8b8d1);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 18px; color: var(--text-sec); margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 30px; border-radius: 12px; font-weight: 600;
    text-decoration: none; transition: var(--transition); border: none; cursor: pointer;
    font-family: 'Cairo', sans-serif;
}

.btn-primary { background: var(--secondary); color: white; box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3); }
.btn-primary:hover { background: #2980b9; transform: translateY(-2px); }

.btn-outline { background: transparent; border: 2px solid rgba(255,255,255,0.2); color: white; }
.btn-outline:hover { border-color: var(--secondary); color: var(--secondary); }

.btn-admin { background: linear-gradient(135deg, #2c3e50, #34495e); color: white; }
.btn-screen { background: linear-gradient(135deg, var(--warning), #e67e22); color: white; }

/* Status Box (From index.html) */
.status-container {
    max-width: 1000px; margin: -40px auto 40px;
    background: rgba(30, 30, 58, 0.8); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius); padding: 30px;
    position: relative; z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
}

.status-header h3 { color: var(--text-main); margin-bottom: 5px; }
.status-header p { color: var(--text-sec); font-size: 14px; }

/* Stats Grid (Merged) */
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px; margin-top: 30px;
}

.stat-card {
    background: rgba(255,255,255,0.05); padding: 20px;
    border-radius: 12px; text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.08); }
.stat-card i { font-size: 32px; color: var(--secondary); margin-bottom: 10px; }
.stat-card h3 { font-size: 24px; margin: 5px 0; }
.stat-card p { font-size: 14px; color: var(--text-sec); }

/* Quick Links Section */
.quick-links {
    display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-top: 25px;
}
.link-pill {
    background: rgba(255,255,255,0.05); padding: 8px 16px;
    border-radius: 50px; color: var(--text-sec); text-decoration: none;
    font-size: 14px; transition: var(--transition);
    display: flex; align-items: center; gap: 8px;
}
.link-pill:hover { background: rgba(255,255,255,0.1); color: white; }
.link-pill.active { color: var(--success); border: 1px solid var(--success); background: rgba(39, 174, 96, 0.1); }

/* Features Section */
.section { padding: 80px 20px; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-title { font-size: 32px; margin-bottom: 10px; }

.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; max-width: 1200px; margin: 0 auto;
}

.feature-card {
    background: var(--surface); padding: 30px; border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.05); transition: var(--transition);
}
.feature-card:hover { transform: translateY(-10px); border-color: var(--secondary); }
.feature-icon {
    width: 60px; height: 60px; background: rgba(52, 152, 219, 0.1);
    border-radius: 15px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; font-size: 24px; color: var(--secondary);
}

/* Screens Preview */
.screens-preview {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px; max-width: 1200px; margin: 0 auto;
}
.screen-mini {
    background: #000; border-radius: 10px; overflow: hidden;
    border: 2px solid #333; position: relative; aspect-ratio: 16/9;
}
.screen-mini-content {
    display: flex; align-items: center; justify-content: center;
    height: 100%; color: #666; flex-direction: column;
}
.screen-badge {
    position: absolute; top: 10px; right: 10px;
    background: rgba(0,0,0,0.7); color: white; padding: 2px 8px;
    border-radius: 4px; font-size: 12px;
}

/* Footer */
footer {
    background: #0a0a15; padding: 60px 20px 20px; margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-content {
    max-width: 1200px; margin: 0 auto; display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px;
}
.footer-col h4 { margin-bottom: 20px; color: white; }
.footer-col a { display: block; color: var(--text-sec); text-decoration: none; margin-bottom: 10px; }
.footer-col a:hover { color: var(--secondary); }
.copyright {
    text-align: center; margin-top: 60px; padding-top: 20px; 
    border-top: 1px solid rgba(255,255,255,0.05); color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 32px; }
    .status-container { margin: -20px 10px 40px; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }
}

/* Former inline style attributes */
.status-online { color: var(--success); }
.status-offline { color: var(--danger); }
.status-loading-icon { color: var(--secondary); }
.status-heading { margin-top: 10px; }
.status-icon { margin-bottom: 15px; }
.status-icon.ok { color: var(--success); }
.status-icon.fail { color: var(--danger); }
.status-title { color: var(--text-main); }
.status-title.fail { color: var(--danger); }
.server-info-label { color: var(--text-sec); }
.server-info-value { color: white; }
.text-sec { color: var(--text-sec); }
.footer-logo { margin-bottom: 20px; }
.footer-desc { color: #666; font-size: 14px; }

