/* BUZ Play - StyleSheet Premium 2025 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    /* ألوان التدرجات الفخمة */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark-gradient: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    --whatsapp: #25D366;
    --success: #10b981;
    --warning: #f59e0b;
    
    /* Glassmorphism */
    --glass: rgba(255,255,255,0.1);
    --glass-dark: rgba(0,0,0,0.4);
    
    /* Shadows */
    --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.25);
    --shadow-xl: 0 35px 60px -12px rgba(0,0,0,0.3);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-gradient);
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes glow {
    from { text-shadow: 0 0 20px currentColor; }
    to { text-shadow: 0 0 30px currentColor, 0 0 40px currentColor; }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--dark-gradient);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120,119,198,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,119,198,0.3) 0%, transparent 50%);
    animation: glow 8s ease-in-out infinite;
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    background: linear-gradient(45deg, #fff, #e0e7ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: slideInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: #a1a1aa;
    margin-bottom: 2rem;
    font-weight: 300;
    animation: slideInUp 1s ease-out 0.2s both;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    background: var(--primary-gradient);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    animation: slideInUp 1s ease-out 0.4s both;
}

.hero-cta:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.hero-visual {
    position: relative;
    height: 500px;
    display: grid;
    place-items: center;
}

.floating-card {
    position: absolute;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    animation: float 6s ease-in-out infinite;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.floating-card:nth-child(1) { top: 10%; left: 10%; width: 200px; animation-delay: 0s; }
.floating-card:nth-child(2) { top: 40%; right: 15%; width: 180px; animation-delay: 2s; }
.floating-card:nth-child(3) { bottom: 20%; left: 20%; width: 220px; animation-delay: 4s; }

/* Section Titles */
.section-title {
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 4rem;
    background: linear-gradient(45deg, #fff, #a1a1aa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Features Grid */
.features {
    padding: 8rem 2rem;
    background: linear-gradient(180deg, #0f0f23 0%, #000 100%);
}

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

.feature-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-15px);
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

/* Plans Section */
.plans {
    padding: 8rem 2rem;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.plans::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255,255,255,0.2);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.plan-card {
    background: rgba(255,255,255,0.95);
    color: #000;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: var(--shadow-lg);
}

.plan-card.featured {
    transform: scale(1.05);
    background: linear-gradient(145deg, #fff, #f8fafc);
    box-shadow: var(--shadow-xl);
}

.plan-card.featured::before {
    content: '🔥 POPULAIRE';
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--whatsapp);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.plan-header {
    background: var(--secondary-gradient);
    padding: 3rem 2rem;
    text-align: center;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.plan-duration {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.plan-features {
    padding: 2.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.plan-features li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.plan-cta {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 0 0 24px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-cta:hover {
    background: linear-gradient(145deg, #5a67d8, #4c51bf);
    transform: translateY(-2px);
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--whatsapp);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Language Switcher */
.lang-switch {
    display: inline-flex;
    background: var(--glass);
    backdrop-filter: blur(15px);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.lang-switch a {
    color: #fff;
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin: 0 0.2rem;
}

.lang-switch a.active,
.lang-switch a:hover {
    background: var(--primary-gradient);
    transform: scale(1.05);
}

/* Footer */
.footer {
    padding: 4rem 2rem 2rem;
    background: rgba(0,0,0,0.8);
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer p {
    color: #a1a1aa;
    margin-top: 1rem;
}

/* Login Page */
.login-container {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: slideInUp 1s ease-out;
}

.login-logo {
    font-size: 3rem;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.input-group input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: none;
    border-radius: 16px;
    background: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* Admin Dashboard */
.navbar-brand {
    font-weight: 900 !important;
}

.list-group-item {
    border: none;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background: rgba(102,126,234,0.2) !important;
    transform: translateX(10px);
}

.card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow-lg);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Downloads Page */
.download-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s ease;
}

.download-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(37,211,102,0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .features-grid,
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float {
        bottom: 80px;
        right: 20px;
    }
    
    .lang-switch {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .hero-content {
    direction: rtl;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(145deg, #5a67d8, #4c51bf);
}

.nav-top-btn {
    border-radius: 999px !important;
    padding: 0.6rem 1.6rem !important;
    font-weight: 600 !important;
    border-width: 2px !important;
    background: transparent !important;
    color: #fff !important;
}

.nav-top-btn:hover {
    background: rgba(255,255,255,0.12) !important;
}

.card .form-control,
.card .form-select,
.card textarea {
    background-color: #0f172a !important;  /* أغمق قليلاً من الخلفية */
    color: #f9fafb !important;             /* نص أبيض */
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,0.6);
}

.card .form-control::placeholder,
.card textarea::placeholder {
    color: #c8c9cc !important;
}

/* عنوان القسم */
.staff-section-title {
    color: #e5e7eb;
    font-weight: 600;
    font-size: 0.9rem;
}

.staff-card .form-check-label {
    color: #f9fafb;
    font-size: 0.85rem;
}

/* جعل الخلفية حول الـ checkbox أفتح قليلاً لزيادة التباين */
.staff-card .form-check {
    padding: 0.15rem 0;
}

.table-dark-glass th, .table-dark-glass td {
    color: #ffffff; /* لون الكلمات الأبيض */
}

