/* الوضع الليلي - أسود وأبيض فقط (بسيط) */
.dark-theme {
    --primary-color: #ffffff; /* أبيض */
    --secondary-color: #ffffff; /* أبيض */
    --accent-color: #ffffff; /* أبيض */
    --success-color: #ffffff; /* أبيض */
    --warning-color: #ffffff; /* أبيض */
    --error-color: #ffffff; /* أبيض */
    --text-color: #ffffff; /* أبيض */
    --text-light: #ffffff; /* أبيض */
    --text-muted: #ffffff; /* أبيض */
    --bg-color: #000000; /* أسود */
    --bg-secondary: #000000; /* أسود */
    --bg-tertiary: #000000; /* أسود */
    --border-color: #ffffff; /* أبيض */
    --border-light: #ffffff; /* أبيض */
    --shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
    --shadow-hover: 0 4px 12px rgba(255, 255, 255, 0.15);
    --shadow-lg: 0 4px 16px rgba(255, 255, 255, 0.12);
    --shadow-xl: 0 8px 24px rgba(255, 255, 255, 0.15);
    --primary-gradient: linear-gradient(135deg, #ffffff 0%, #ffffff 100%); /* أبيض */
    --secondary-gradient: linear-gradient(135deg, #ffffff 0%, #ffffff 100%); /* أبيض */
    --success-gradient: linear-gradient(135deg, #ffffff 0%, #ffffff 100%); /* أبيض */
    --warning-gradient: linear-gradient(135deg, #ffffff 0%, #ffffff 100%); /* أبيض */
    --gradient-primary: linear-gradient(135deg, #ffffff 0%, #ffffff 100%); /* أبيض */
    --gradient-secondary: linear-gradient(135deg, #000000 0%, #000000 100%); /* أسود */
    --gradient-accent: linear-gradient(135deg, #ffffff 0%, #ffffff 100%); /* أبيض */
    --gradient-hero: linear-gradient(135deg, #000000 0%, #000000 100%); /* أسود */
}

.dark-theme body {
    background: #000000 !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    color: #ffffff !important;
    position: relative !important;
    /* إصلاح iOS Safari - منع الشاشة البيضاء */
    min-height: calc(var(--vh, 1vh) * 100) !important;
    min-height: -webkit-fill-available !important;
}

.dark-theme body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: calc(var(--vh, 1vh) * 100);
    height: -webkit-fill-available;
    background: transparent;
    pointer-events: none;
    z-index: -1;
}

.dark-theme .header {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.98) 0%, 
        rgba(255, 255, 255, 0.05) 50%,
        rgba(0, 0, 0, 0.98) 100%
    ) !important;
    border-bottom: 2px solid #ffffff !important;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1) !important;
    position: relative !important;
    min-height: 70px !important;
    height: 70px !important;
    padding: 0.875rem 0 !important;
}

@media (max-width: 768px) {
    .dark-theme .header {
        min-height: 65px !important;
        height: 65px !important;
        padding: 0.75rem 0 !important;
    }
}

.dark-theme .header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
}

.dark-theme .main-banner {
    background: #000000 !important;
    position: relative !important;
    overflow: hidden !important;
}

.dark-theme .main-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}

.dark-theme .main-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
}

.dark-theme .game-card,
.dark-theme .service-card,
.dark-theme .card {
    background: #000000 !important;
    border: 2px solid #ffffff !important;
    box-shadow: var(--shadow) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.dark-theme .game-card::before,
.dark-theme .service-card::before,
.dark-theme .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.dark-theme .game-card:hover::before,
.dark-theme .service-card:hover::before,
.dark-theme .card:hover::before {
    opacity: 0;
}

.dark-theme .game-card:hover,
.dark-theme .service-card:hover {
    transform: translateY(-4px) scale(1.01) !important;
    box-shadow: var(--shadow-hover) !important;
    border-color: #ffffff !important;
    background: #000000 !important;
}

.dark-theme .footer {
    background: #000000 !important;
    border-top: 2px solid #ffffff !important;
    box-shadow: 0 -2px 8px rgba(255, 255, 255, 0.1) !important;
    position: relative !important;
}

.dark-theme .footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
}

.dark-theme .form-input,
.dark-theme .form-select,
.dark-theme .form-textarea {
    background: var(--bg-secondary) !important;
    border: 2px solid var(--border-color) !important;
    color: var(--text-color) !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(10px) !important;
}

.dark-theme .form-input:focus,
.dark-theme .form-select:focus,
.dark-theme .form-textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1) !important;
    background: var(--bg-tertiary) !important;
    transform: translateY(-2px) !important;
}


.dark-theme .table th {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.dark-theme .table tbody tr:hover {
    background: #000000 !important;
    border-color: #ffffff !important;
}

.dark-theme .alert-info,
.dark-theme .alert-success,
.dark-theme .alert-warning,
.dark-theme .alert-error {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.dark-theme .search-container {
    background: #000000 !important;
    border: 2px solid #ffffff !important;
}

.dark-theme .search-input {
    color: #ffffff !important;
}

.dark-theme .search-input::placeholder {
    color: #ffffff !important;
    opacity: 0.7;
}

.dark-theme .currency-selector select,
.dark-theme .language-selector button,
.dark-theme .theme-toggle button,
.dark-theme .user-profile a,
.dark-theme .cart a {
    background: rgba(255,255,255,0.1) !important;
    color: #ffffff !important;
}

.dark-theme .currency-selector select:hover,
.dark-theme .language-selector button:hover,
.dark-theme .theme-toggle button:hover,
.dark-theme .user-profile a:hover,
.dark-theme .cart a:hover {
    background: rgba(255,255,255,0.2) !important;
}

.dark-theme .nav-link {
    color: #ffffff !important;
}

.dark-theme .nav-link:hover {
    background-color: rgba(255,255,255,0.1) !important;
}

.dark-theme .section-title {
    color: #ffffff !important;
}

.dark-theme .game-title,
.dark-theme .service-title {
    color: #ffffff !important;
}

.dark-theme .service-description {
    color: #ffffff !important;
}

.dark-theme .footer-links a {
    color: #ffffff !important;
}

.dark-theme .footer-links a:hover {
    color: #ffffff !important;
}

.dark-theme .footer-bottom {
    color: #ffffff !important;
    border-top-color: #ffffff !important;
}

/* لوغو الثيم الليلي */
.dark-theme .logo-text {
    color: #ffffff !important;
    text-shadow: none !important;
    font-weight: 800;
}

/* تطبيق الوضع الليلي على جميع العناصر */
.dark-theme * {
    border-color: #ffffff !important;
}

/* تطبيق الوضع الليلي على جميع النصوص */
.dark-theme h1,
.dark-theme h2,
.dark-theme h3,
.dark-theme h4,
.dark-theme h5,
.dark-theme h6 {
    color: #ffffff !important;
}

/* تطبيق الوضع الليلي على جميع الروابط */
.dark-theme a {
    color: #ffffff !important;
}

/* تطبيق الوضع الليلي على جميع الأزرار */
.dark-theme button {
    color: #ffffff !important;
}

/* تطبيق الوضع الليلي على جميع القوائم */
.dark-theme ul,
.dark-theme ol {
    color: #ffffff !important;
}

/* تطبيق الوضع الليلي على جميع الفقرات */
.dark-theme p {
    color: #ffffff !important;
}

/* تطبيق الوضع الليلي على جميع النصوص الأخرى */
.dark-theme span,
.dark-theme div,
.dark-theme label,
.dark-theme small,
.dark-theme strong,
.dark-theme em,
.dark-theme b,
.dark-theme i {
    color: #ffffff !important;
}

/* تطبيق الوضع الليلي على عناصر الخدمات */
.dark-theme .service-title,
.dark-theme .service-description,
.dark-theme .service-price,
.dark-theme .game-title,
.dark-theme .game-price,
.dark-theme .card-title,
.dark-theme .card-price {
    color: #ffffff !important;
}

/* تطبيق الوضع الليلي على عناصر الفوتر */
.dark-theme .footer h3,
.dark-theme .footer p,
.dark-theme .footer a,
.dark-theme .footer li,
.dark-theme .footer span {
    color: #ffffff !important;
}

/* تطبيق الوضع الليلي على عناصر الخدمات */
.dark-theme .services-grid .service-card h3,
.dark-theme .services-grid .service-card p,
.dark-theme .services-grid .service-card a {
    color: #ffffff !important;
}

/* تطبيق الوضع الليلي على جميع العناصر بشكل شامل */
.dark-theme * {
    color: #ffffff !important;
}

/* استثناءات للألوان المحددة */
.dark-theme .price,
.dark-theme .game-price,
.dark-theme .service-price,
.dark-theme .card-price {
    color: #ffffff !important;
}

.dark-theme .btn-primary {
    color: #ffffff !important;
}

.dark-theme .btn-outline {
    color: #ffffff !important;
}

.dark-theme .btn-outline:hover {
    color: #ffffff !important;
}

/* تطبيق الوضع الليلي على عناصر محددة */
.dark-theme .banner-content h1,
.dark-theme .banner-content p,
.dark-theme .page-title,
.dark-theme .page-description,
.dark-theme .section-title,
.dark-theme .service-card .service-title,
.dark-theme .service-card .service-description,
.dark-theme .game-card .game-title,
.dark-theme .footer-content h3,
.dark-theme .footer-content p,
.dark-theme .footer-links a {
    color: #ffffff !important;
}

/* تطبيق الوضع الليلي على جميع العناصر الأخرى */
.dark-theme .btn {
    color: var(--text-color) !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 600 !important;
    position: relative !important;
    overflow: hidden !important;
}

.dark-theme .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.dark-theme .btn:hover::before {
    left: 100%;
}

.dark-theme .btn-primary {
    background: #ffffff !important;
    border: 2px solid #ffffff !important;
    color: #000000 !important;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.dark-theme .btn-primary:hover {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2) !important;
}

.dark-theme .btn-secondary {
    background: var(--gradient-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-color) !important;
}

.dark-theme .btn-secondary:hover {
    background: var(--bg-tertiary) !important;
    transform: translateY(-2px) !important;
}

.dark-theme .btn-outline {
    background: transparent !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.dark-theme .btn-outline:hover {
    background: var(--primary-color) !important;
    color: #000000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2) !important;
}

/* تطبيق الوضع الليلي على جميع العناصر الأخرى */
.dark-theme .container {
    background: transparent !important;
}

.dark-theme .row {
    background: transparent !important;
}

.dark-theme .col {
    background: transparent !important;
}

.dark-theme .card {
    background: #000000 !important;
    border: 2px solid #ffffff !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow) !important;
}

.dark-theme .card-header {
    background: #000000 !important;
    border-bottom: 2px solid #ffffff !important;
    border-radius: 12px 12px 0 0 !important;
}

.dark-theme .card-body {
    background: #000000 !important;
}

.dark-theme .card-footer {
    background: #000000 !important;
    border-top: 2px solid #ffffff !important;
    border-radius: 0 0 12px 12px !important;
}

/* تطبيق الوضع الليلي على جميع العناصر الأخرى */
.dark-theme .table {
    background: var(--bg-secondary) !important;
    color: var(--text-color) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: var(--shadow) !important;
}

.dark-theme .table th {
    background: var(--bg-tertiary) !important;
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
    font-weight: 600 !important;
}

.dark-theme .table td {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.dark-theme .table tbody tr:hover {
    background: #000000 !important;
    transform: scale(1.01) !important;
    transition: all 0.2s ease !important;
    border-color: #ffffff !important;
}

.dark-theme .table tbody tr:nth-child(even),
.dark-theme .table tbody tr:nth-child(odd) {
    background: #000000 !important;
}

/* تطبيق الوضع الليلي على جميع العناصر الأخرى */
.dark-theme .modal {
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(10px) !important;
}

.dark-theme .modal-content {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-xl) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
}

.dark-theme .modal-header {
    background: var(--bg-tertiary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    border-radius: 16px 16px 0 0 !important;
}

.dark-theme .modal-body {
    background: var(--bg-secondary) !important;
}

.dark-theme .modal-footer {
    background: var(--bg-tertiary) !important;
    border-top: 1px solid var(--border-color) !important;
    border-radius: 0 0 16px 16px !important;
}

.dark-theme .modal-title {
    color: var(--text-color) !important;
    font-weight: 600 !important;
}

.dark-theme .modal-close {
    color: var(--text-light) !important;
    transition: all 0.3s ease !important;
}

.dark-theme .modal-close:hover {
    color: var(--primary-color) !important;
    transform: scale(1.1) !important;
}

/* تطبيق الوضع الليلي على جميع العناصر الأخرى */
.dark-theme .dropdown {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
}

.dark-theme .dropdown-item {
    background: var(--bg-secondary) !important;
    color: var(--text-color) !important;
    transition: all 0.3s ease !important;
}

.dark-theme .dropdown-item:hover {
    background: var(--bg-tertiary) !important;
    color: var(--primary-color) !important;
    transform: translateX(4px) !important;
}

.dark-theme .dropdown-menu {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-lg) !important;
    backdrop-filter: blur(10px) !important;
}

.dark-theme .dropdown-toggle {
    background: var(--bg-secondary) !important;
    color: var(--text-color) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.dark-theme .dropdown-toggle:hover {
    background: var(--bg-tertiary) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.dark-theme .dropdown-toggle:focus {
    background: var(--bg-tertiary) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1) !important;
}

/* تأثيرات إضافية للوضع الليلي */
.dark-theme .logo-img {
    filter: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.dark-theme .logo-img:hover {
    filter: none !important;
    transform: scale(1.05) !important;
}

.dark-theme .nav-link {
    position: relative !important;
    transition: all 0.3s ease !important;
}

.dark-theme .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.dark-theme .nav-link:hover::after {
    width: 100%;
}

.dark-theme .section-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700 !important;
}

.dark-theme .game-title,
.dark-theme .service-title {
    transition: all 0.3s ease !important;
}

.dark-theme .game-title:hover,
.dark-theme .service-title:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px) !important;
}

.dark-theme .price,
.dark-theme .game-price,
.dark-theme .card-price,
.dark-theme .service-price {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* تطبيق شامل على جميع العناصر */
.dark-theme * {
    color: var(--text-color) !important;
}

.dark-theme a,
.dark-theme button,
.dark-theme input,
.dark-theme select,
.dark-theme textarea,
.dark-theme label,
.dark-theme span,
.dark-theme div,
.dark-theme p,
.dark-theme h1,
.dark-theme h2,
.dark-theme h3,
.dark-theme h4,
.dark-theme h5,
.dark-theme h6 {
    color: var(--text-color) !important;
}

.dark-theme .btn,
.dark-theme button {
    color: var(--text-color) !important;
}

.dark-theme .btn-secondary {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

/* تأثيرات الحركة */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.dark-theme .game-card:hover,
.dark-theme .service-card:hover {
    animation: float 2s ease-in-out infinite !important;
}

/* تأثيرات الإضاءة */
.dark-theme .btn-primary {
    position: relative !important;
    overflow: hidden !important;
}

.dark-theme .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.dark-theme .btn-primary:hover::after {
    left: 100%;
}
