/* Custom CSS for Gaming Platform */
/* نظام الألوان المتعدد */
:root {
    /* الألوان الافتراضية - لوحة متناسقة */
    --primary-color: #2563eb; /* أزرق */
    --secondary-color: #f59e42; /* برتقالي */
    --accent-color: #10b981; /* أخضر نعناعي */
    --info-color: #a78bfa; /* بنفسجي فاتح */
    --neutral-color: #f3f4f6; /* رمادي فاتح */
    --dark-color: #374151; /* رمادي غامق */
    --light-color: #e0e7ef;
    --gradient-color: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    --warning-color: #ffc107;
    --footer-gradient: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
}

/* ألوان المظاهر المختلفة */
:root[data-theme="green"] {
    --primary-color: #28a745;
    --secondary-color: #f59e42;
    --accent-color: #10b981;
    --info-color: #a78bfa;
    --neutral-color: #f3f4f6;
    --dark-color: #155724;
    --light-color: #e0f7e9;
    --gradient-color: linear-gradient(135deg, #28a745 0%, #10b981 100%);
    --footer-gradient: linear-gradient(135deg, #1a5928 0%, #f59e42 100%);
}

:root[data-theme="blue"] {
    --primary-color: #2563eb;
    --secondary-color: #f59e42;
    --accent-color: #10b981;
    --info-color: #a78bfa;
    --neutral-color: #f3f4f6;
    --dark-color: #1e3a8a;
    --light-color: #e0e7ef;
    --gradient-color: linear-gradient(135deg, #2563eb 0%, #a78bfa 100%);
    --footer-gradient: linear-gradient(135deg, #1e3a8a 0%, #f59e42 100%);
}

:root[data-theme="red"] {
    --primary-color: #dc3545;
    --secondary-color: #f59e42;
    --accent-color: #10b981;
    --info-color: #a78bfa;
    --neutral-color: #f3f4f6;
    --dark-color: #a71e2a;
    --light-color: #ffeaea;
    --gradient-color: linear-gradient(135deg, #dc3545 0%, #f59e42 100%);
    --footer-gradient: linear-gradient(135deg, #a71e2a 0%, #10b981 100%);
}

:root[data-theme="purple"] {
    --primary-color: #6f42c1;
    --secondary-color: #f59e42;
    --accent-color: #10b981;
    --info-color: #2563eb;
    --neutral-color: #f3f4f6;
    --dark-color: #4a2c85;
    --light-color: #ede9fe;
    --gradient-color: linear-gradient(135deg, #6f42c1 0%, #10b981 100%);
    --footer-gradient: linear-gradient(135deg, #4a2c85 0%, #f59e42 100%);
}

:root[data-theme="orange"] {
    --primary-color: #f59e42;
    --secondary-color: #2563eb;
    --accent-color: #10b981;
    --info-color: #a78bfa;
    --neutral-color: #f3f4f6;
    --dark-color: #b8560f;
    --light-color: #fff7e6;
    --gradient-color: linear-gradient(135deg, #f59e42 0%, #2563eb 100%);
    --footer-gradient: linear-gradient(135deg, #b8560f 0%, #10b981 100%);
}

:root[data-theme="teal"] {
    --primary-color: #10b981;
    --secondary-color: #2563eb;
    --accent-color: #f59e42;
    --info-color: #a78bfa;
    --neutral-color: #f3f4f6;
    --dark-color: #138f72;
    --light-color: #e6fff7;
    --gradient-color: linear-gradient(135deg, #10b981 0%, #2563eb 100%);
    --footer-gradient: linear-gradient(135deg, #138f72 0%, #f59e42 100%);
}

:root[data-theme="pink"] {
    --primary-color: #e83e8c;
    --secondary-color: #2563eb;
    --accent-color: #f59e42;
    --info-color: #10b981;
    --neutral-color: #f3f4f6;
    --dark-color: #d91a72;
    --light-color: #fff0f6;
    --gradient-color: linear-gradient(135deg, #e83e8c 0%, #2563eb 100%);
    --footer-gradient: linear-gradient(135deg, #d91a72 0%, #10b981 100%);
}

:root[data-theme="indigo"] {
    --primary-color: #6610f2;
    --secondary-color: #f59e42;
    --accent-color: #10b981;
    --info-color: #a78bfa;
    --neutral-color: #f3f4f6;
    --dark-color: #520dc2;
    --light-color: #ede9fe;
    --gradient-color: linear-gradient(135deg, #6610f2 0%, #f59e42 100%);
    --footer-gradient: linear-gradient(135deg, #520dc2 0%, #10b981 100%);
}

:root[data-theme="cyan"] {
    --primary-color: #17a2b8;
    --secondary-color: #f59e42;
    --accent-color: #2563eb;
    --info-color: #a78bfa;
    --neutral-color: #f3f4f6;
    --dark-color: #117a8b;
    --light-color: #e0f7fa;
    --gradient-color: linear-gradient(135deg, #17a2b8 0%, #2563eb 100%);
    --footer-gradient: linear-gradient(135deg, #117a8b 0%, #f59e42 100%);
}

:root[data-theme="yellow"] {
    --primary-color: #ffc107;
    --secondary-color: #2563eb;
    --accent-color: #10b981;
    --info-color: #a78bfa;
    --neutral-color: #f3f4f6;
    --dark-color: #e0a800;
    --light-color: #fffde7;
    --gradient-color: linear-gradient(135deg, #ffc107 0%, #2563eb 100%);
    --footer-gradient: linear-gradient(135deg, #e0a800 0%, #10b981 100%);
}

:root[data-theme="lime"] {
    --primary-color: #8bc34a;
    --secondary-color: #2563eb;
    --accent-color: #f59e42;
    --info-color: #a78bfa;
    --neutral-color: #f3f4f6;
    --dark-color: #689f38;
    --light-color: #f9ffe6;
    --gradient-color: linear-gradient(135deg, #8bc34a 0%, #2563eb 100%);
    --footer-gradient: linear-gradient(135deg, #689f38 0%, #f59e42 100%);
}

:root[data-theme="deep-purple"] {
    --primary-color: #673ab7;
    --secondary-color: #f59e42;
    --accent-color: #10b981;
    --info-color: #2563eb;
    --neutral-color: #f3f4f6;
    --dark-color: #512da8;
    --light-color: #ede9fe;
    --gradient-color: linear-gradient(135deg, #673ab7 0%, #10b981 100%);
    --footer-gradient: linear-gradient(135deg, #512da8 0%, #f59e42 100%);
}

:root[data-theme="brown"] {
    --primary-color: #795548;
    --secondary-color: #2563eb;
    --accent-color: #f59e42;
    --info-color: #10b981;
    --neutral-color: #f3f4f6;
    --dark-color: #5d4037;
    --light-color: #f5e9da;
    --gradient-color: linear-gradient(135deg, #795548 0%, #2563eb 100%);
    --footer-gradient: linear-gradient(135deg, #5d4037 0%, #f59e42 100%);
}

:root[data-theme="dark"] {
    --primary-color: #343a40;
    --secondary-color: #f59e42;
    --accent-color: #10b981;
    --info-color: #a78bfa;
    --neutral-color: #23272b;
    --dark-color: #212529;
    --light-color: #6c757d;
    --gradient-color: linear-gradient(135deg, #343a40 0%, #10b981 100%);
    --footer-gradient: linear-gradient(135deg, #212529 0%, #f59e42 100%);
}

/* الألوان الإضافية الجديدة */
:root[data-theme="emerald"] {
    --primary-color: #50C878;
    --dark-color: #3DA58A;
    --light-color: #2ECC71;
    --gradient-color: linear-gradient(135deg, #50C878 0%, #2ECC71 100%);
    --footer-gradient: linear-gradient(135deg, #27AE60 0%, #229954 100%);
}

:root[data-theme="crimson"] {
    --primary-color: #DC143C;
    --dark-color: #B91C1C;
    --light-color: #EF4444;
    --gradient-color: linear-gradient(135deg, #DC143C 0%, #EF4444 100%);
    --footer-gradient: linear-gradient(135deg, #991B1B 0%, #7F1D1D 100%);
}

:root[data-theme="royal-blue"] {
    --primary-color: #4169E1;
    --dark-color: #1E40AF;
    --light-color: #3B82F6;
    --gradient-color: linear-gradient(135deg, #4169E1 0%, #3B82F6 100%);
    --footer-gradient: linear-gradient(135deg, #1E3A8A 0%, #1E3A8A 100%);
}

:root[data-theme="gold"] {
    --primary-color: #FFD700;
    --dark-color: #F59E0B;
    --light-color: #FCD34D;
    --gradient-color: linear-gradient(135deg, #FFD700 0%, #FCD34D 100%);
    --footer-gradient: linear-gradient(135deg, #D97706 0%, #B45309 100%);
}

:root[data-theme="violet"] {
    --primary-color: #8A2BE2;
    --dark-color: #7C3AED;
    --light-color: #A855F7;
    --gradient-color: linear-gradient(135deg, #8A2BE2 0%, #A855F7 100%);
    --footer-gradient: linear-gradient(135deg, #6D28D9 0%, #5B21B6 100%);
}

:root[data-theme="turquoise"] {
    --primary-color: #40E0D0;
    --dark-color: #0891B2;
    --light-color: #06B6D4;
    --gradient-color: linear-gradient(135deg, #40E0D0 0%, #06B6D4 100%);
    --footer-gradient: linear-gradient(135deg, #0E7490 0%, #155E75 100%);
}

:root[data-theme="coral"] {
    --primary-color: #FF7F50;
    --dark-color: #EA580C;
    --light-color: #FB923C;
    --gradient-color: linear-gradient(135deg, #FF7F50 0%, #FB923C 100%);
    --footer-gradient: linear-gradient(135deg, #C2410C 0%, #9A3412 100%);
}

:root[data-theme="lavender"] {
    --primary-color: #E6E6FA;
    --dark-color: #A78BFA;
    --light-color: #C4B5FD;
    --gradient-color: linear-gradient(135deg, #E6E6FA 0%, #C4B5FD 100%);
    --footer-gradient: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

:root[data-theme="mint"] {
    --primary-color: #98FB98;
    --dark-color: #22C55E;
    --light-color: #4ADE80;
    --gradient-color: linear-gradient(135deg, #98FB98 0%, #4ADE80 100%);
    --footer-gradient: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
}

:root[data-theme="rose"] {
    --primary-color: #FF69B4;
    --dark-color: #EC4899;
    --light-color: #F472B6;
    --gradient-color: linear-gradient(135deg, #FF69B4 0%, #F472B6 100%);
    --footer-gradient: linear-gradient(135deg, #DB2777 0%, #BE185D 100%);
}

:root[data-theme="sky"] {
    --primary-color: #87CEEB;
    --dark-color: #0EA5E9;
    --light-color: #38BDF8;
    --gradient-color: linear-gradient(135deg, #87CEEB 0%, #38BDF8 100%);
    --footer-gradient: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
}

:root[data-theme="amber"] {
    --primary-color: #FFBF00;
    --dark-color: #F59E0B;
    --light-color: #FCD34D;
    --gradient-color: linear-gradient(135deg, #FFBF00 0%, #FCD34D 100%);
    --footer-gradient: linear-gradient(135deg, #D97706 0%, #B45309 100%);
}

:root[data-theme="slate"] {
    --primary-color: #64748B;
    --dark-color: #475569;
    --light-color: #94A3B8;
    --gradient-color: linear-gradient(135deg, #64748B 0%, #94A3B8 100%);
    --footer-gradient: linear-gradient(135deg, #334155 0%, #1E293B 100%);
}

:root[data-theme="forest"] {
    --primary-color: #228B22;
    --dark-color: #006400;
    --light-color: #32CD32;
    --gradient-color: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
    --footer-gradient: linear-gradient(135deg, #004225 0%, #013220 100%);
}

/* إعدادات عامة */
body {
    background: var(--neutral-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* تطبيق الألوان على جميع عناصر success في Bootstrap */
.btn-success,
.bg-success,
.text-success,
.border-success,
.alert-success,
.badge-success,
.list-group-item-success {
    --bs-success: var(--primary-color);
    --bs-success-rgb: 40, 167, 69;
}

.card-header.bg-success {
    background-color: var(--primary-color) !important;
}

.alert-success {
    background-color: rgba(var(--bs-success-rgb, 40, 167, 69), 0.1);
    border-color: var(--primary-color);
    color: var(--dark-color);
}

.text-success {
    color: var(--primary-color) !important;
}

.border-success {
    border-color: var(--primary-color) !important;
}

/* تطبيق الألوان على عناصر info */
.btn-info,
.bg-info,
.text-info,
.border-info,
.alert-info {
    --bs-info: var(--info-color);
}

.card-header.bg-info {
    background-color: var(--info-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

.border-info {
    border-color: var(--info-color) !important;
}

/* تطبيق الألوان على عناصر warning */
.btn-warning,
.bg-warning,
.text-warning,
.border-warning,
.alert-warning {
    --bs-warning: var(--warning-color);
}

.card-header.bg-warning {
    background-color: var(--warning-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.border-warning {
    border-color: var(--warning-color) !important;
}

/* تطبيق الألوان على عناصر primary */
.btn-primary,
.bg-primary,
.text-primary,
.border-primary,
.alert-primary {
    --bs-primary: var(--primary-color);
}

.card-header.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* شريط التنقل */
.navbar-brand {
    font-size: 1.5rem !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--warning-color) !important;
}

.bg-success {
    background: var(--primary-color) !important;
}

.navbar-dark.bg-success {
    background: var(--primary-color) !important;
}

.navbar {
    background: var(--primary-color) !important;
}

/* قسم Hero */
.hero-section {
    background: var(--gradient-color);
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

.bg-gradient-success {
    background: var(--gradient-color) !important;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-image-container {
    position: relative;
    display: inline-block;
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floating-icon-1,
.floating-icon-2,
.floating-icon-3 {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
    animation: float 3s ease-in-out infinite;
}

.floating-icon-1 {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.floating-icon-2 {
    top: 60%;
    left: 15%;
    animation-delay: 1s;
}

.floating-icon-3 {
    top: 40%;
    right: 30%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* قسم الإحصائيات */
.stat-card {
    padding: 2rem 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

/* كروت الألعاب */
.game-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid var(--info-color) !important;
    background: #fff;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(var(--primary-color-rgb), 0.2) !important;
    border-color: var(--primary-color) !important;
}

.game-card .card-header {
    padding: 2rem 1rem;
    border: none;
    background: var(--gradient-color) !important;
}

.game-card .card-header i {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.game-card .card-body {
    padding: 2rem 1.5rem;
}

.game-card .card-title {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.game-card .btn {
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.game-card .btn:hover {
    transform: scale(1.05);
}

/* الشارات */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* جدول المتصدرين */
.table-hover tbody tr:hover {
    background-color: rgba(40, 167, 69, 0.1);
}

.table-success th {
    background-color: var(--primary-color) !important;
    color: white;
    font-weight: 600;
    border: none;
}

/* الأزرار */
.btn-success {
    background: var(--gradient-color) !important;
    border: none !important;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: var(--dark-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.btn-warning {
    background-color: var(--warning-color) !important;
    border: none !important;
    border-radius: 25px;
    font-weight: 600;
    color: #000 !important;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: var(--dark-color) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
}

/* تأثيرات النص */
/* .text-success محددة في الأعلى */

.display-4,
.display-5 {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* القدم */
footer {
    background: var(--footer-gradient) !important;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

footer .container {
    position: relative;
    z-index: 2;
}

footer a {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--warning-color) !important;
    transform: translateY(-2px);
}

footer .text-success {
    color: var(--warning-color) !important;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer h5, footer h6 {
    color: white !important;
}

footer .border-secondary {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* تحسينات إضافية للقدم */
.social-icon {
    display: inline-block;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
}

.social-icon:hover i {
    color: var(--light-color) !important;
}

.newsletter-box {
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.newsletter-box:hover {
    border-color: var(--light-color);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

footer ul li {
    transition: all 0.3s ease;
}

footer ul li:hover {
    transform: translateX(-5px);
}

footer ul li a:hover i {
    color: var(--warning-color) !important;
}

/* شارات القدم */
footer .badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

footer .badge:hover {
    transform: scale(1.05);
}

/* منتقي الألوان */
.color-picker-menu {
    min-width: 350px;
    max-width: 380px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: none;
    max-height: 80vh;
    overflow-y: auto;
}

.color-option {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.color-option:hover {
    transform: scale(1.1);
    border-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.color-option.active {
    border-color: white;
    transform: scale(1.15);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.color-option.active::after {
    content: '\F26B';
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* تأثير انتقال الألوان */
body {
    transition: all 0.5s ease;
}

.navbar, .hero-section, .game-card .card-header, footer {
    transition: all 0.5s ease;
}

/* تحسين القائمة المنسدلة */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.dropdown-header {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
}

/* تأثير النبضة للون النشط */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.color-option.active {
    animation: pulse 2s infinite;
}

/* ===================================
   تحسينات التصميم المتجاوب (Responsive Design)
   يدعم الجوال، التابلت، والديسكتوب
   =================================== */

/* أحجام الشاشات الأساسية */
/* Mobile: 320px - 767px */
/* Tablet: 768px - 1024px */
/* Desktop: 1025px+ */

/* تحسينات عامة للأجهزة المحمولة */
@media (max-width: 767px) {
    /* Hero Section */
    .hero-section {
        min-height: 60vh;
        text-align: center;
        padding: 3rem 1rem !important;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .floating-icons {
        display: none;
    }
    
    /* البطاقات */
    .stat-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .game-card {
        margin-bottom: 1.5rem;
    }
    
    .game-card .card-body {
        padding: 1.5rem 1rem;
    }
    
    .game-card .card-header {
        padding: 1.5rem 1rem;
    }
    
    /* الأزرار */
    .btn-lg {
        font-size: 0.95rem;
        padding: 0.65rem 1.25rem;
    }
    
    .btn {
        font-size: 0.875rem;
    }
    
    /* شريط التنقل */
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    /* الجداول */
    .table {
        font-size: 0.875rem;
    }
    
    .table td, .table th {
        padding: 0.5rem;
    }
    
    /* النماذج */
    .form-control-lg {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    /* القائمة المنبثقة للألوان */
    .color-picker-menu {
        max-width: 280px;
    }
    
    .color-option {
        width: 28px;
        height: 28px;
    }
    
    /* Footer */
    footer {
        font-size: 0.875rem;
    }
    
    footer h5, footer h6 {
        font-size: 1rem;
    }
    
    /* الهوامش والمسافات */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    /* صفحات اللعب */
    .tab-pane {
        padding: 1rem;
    }
    
    .card-header-tabs {
        font-size: 0.875rem;
    }
    
    .card-header-tabs .nav-link {
        padding: 0.5rem 0.75rem;
    }
}

/* تحسينات للأجهزة اللوحية (Tablet) */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Hero Section */
    .hero-section {
        min-height: 70vh;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    /* البطاقات */
    .game-card .card-body {
        padding: 1.75rem 1.25rem;
    }
    
    .stat-card {
        padding: 1.75rem 1rem;
    }
    
    /* الجداول */
    .table {
        font-size: 0.9rem;
    }
    
    /* الأزرار */
    .btn-lg {
        font-size: 1.1rem;
        padding: 0.7rem 1.75rem;
    }
    
    /* شريط التنقل */
    .navbar-brand {
        font-size: 1.4rem !important;
    }
}

/* تحسينات للشاشات الصغيرة جداً */
@media (max-width: 576px) {
    /* Hero Section */
    .hero-section .display-4 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
    }
    
    /* شريط التنقل */
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .navbar-brand .bi {
        font-size: 1rem;
    }
    
    /* البطاقات */
    .game-card .card-title {
        font-size: 1.1rem;
    }
    
    .game-card .card-text {
        font-size: 0.85rem;
    }
    
    /* الشارات */
    .badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
    }
    
    /* الأزرار */
    .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .btn-lg {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    /* النماذج */
    .form-control {
        font-size: 0.9rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    /* Modal */
    .modal-body {
        padding: 1.25rem;
    }
    
    .modal-header {
        padding: 1rem 1.25rem;
    }
    
    /* القوائم */
    .list-group-item {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }
}

/* تحسينات للشاشات الكبيرة جداً */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
    
    .display-4 {
        font-size: 3.5rem;
    }
    
    .lead {
        font-size: 1.4rem;
    }
    
    .game-card .card-body {
        padding: 2.5rem 2rem;
    }
}

/* تحسينات الطباعة */
@media print {
    .navbar,
    footer,
    .btn,
    .dropdown {
        display: none !important;
    }
    
    .card {
        border: 1px solid #ddd;
        box-shadow: none;
    }
}

/* تحسينات الاتجاه (Portrait vs Landscape) */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        min-height: 80vh;
    }
    
    .floating-icons {
        display: block;
        opacity: 0.3;
    }
}

/* دعم الشاشات عالية الدقة */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .game-card .card-header i,
    .stat-card i {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* تأثيرات إضافية للتفاعل */
.card {
    overflow: hidden;
}

.card-header {
    position: relative;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.game-card:hover .card-header::before {
    transform: translateX(100%);
}

/* تحسين الخطوط العربية */
h1, h2, h3, h4, h5, h6 {
    color: var(--accent-color);
    font-weight: 700;
}

.lead {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.7;
}

/* تأثيرات التمرير السلس */
html {
    scroll-behavior: smooth;
}

/* ظلال مخصصة */
.shadow-sm {
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2) !important;
}

/* تحسينات إضافية للجدول */
.table th {
    border-top: none;
    font-weight: 600;
}

.table td {
    vertical-align: middle;
    padding: 1rem 0.75rem;
}

/* Loading animation للأزرار */
.btn:active {
    transform: scale(0.98);
}

/* Gradient للخلفيات */
.bg-light {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* الأزرار الإضافية */
.btn-secondary {
    background: var(--secondary-color) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background: var(--dark-color) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.btn-accent {
    background: var(--accent-color) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-accent:hover {
    background: var(--dark-color) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
/* .btn-info و .btn-warning محددة في الأعلى */

/* بادجات ملونة */
.badge-secondary {
    background: var(--secondary-color);
    color: #fff;
}
.badge-accent {
    background: var(--accent-color);
    color: #fff;
}
.badge-info {
    background: var(--info-color);
    color: #fff;
}
