/* ===================================
   Be4stream Landing Page Styles
   With Dark Mode Support
   ===================================
*/

/* المتغيرات الأساسية */
:root {
    --brand-purple: #7c3aed;
    --brand-pink: #db2777;
    --primary-grad: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-pink) 100%);

    /* ألوان الوضع الفاتح */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #f1f5f9;
    --nav-bg: rgba(255, 255, 255, 0.8);
}

/* الوضع الداكن */
.dark {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: #334155;
    --nav-bg: rgba(15, 23, 42, 0.9);
}

/* الإعدادات الأساسية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* ===================================
   الخلفية الفنية - صورة ملعب احترافية
   =================================== */
.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url('https://populous.com/uploads/2018/01/Populous_Tottenham-Hotspur-Stadium_Credit-Edward-Hill_3-2160x1215-c-center.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: all 0.5s ease;
}

.bg-mesh::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 10%, transparent 35%),
        linear-gradient(0deg, rgba(248, 250, 252, 0.98) 0%, rgba(248, 250, 252, 0.9) 15%, transparent 40%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 250, 252, 0.85) 50%, rgba(255, 255, 255, 0.88) 100%),
        radial-gradient(ellipse at 30% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(219, 39, 119, 0.06) 0%, transparent 50%);
    z-index: 1;
}

.bg-mesh::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg,
            rgba(124, 58, 237, 0.03) 0%,
            transparent 30%,
            rgba(16, 185, 129, 0.02) 70%,
            transparent 100%);
    animation: shimmer-bg 20s ease-in-out infinite;
    z-index: 2;
}

@keyframes shimmer-bg {

    0%,
    100% {
        opacity: 0.5;
        transform: translateX(-5%);
    }

    50% {
        opacity: 1;
        transform: translateX(5%);
    }
}

.dark .bg-mesh::before {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.92) 10%, transparent 35%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.92) 15%, transparent 40%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.88) 50%, rgba(15, 23, 42, 0.92) 100%),
        radial-gradient(ellipse at 30% 20%, rgba(124, 58, 237, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(219, 39, 119, 0.15) 0%, transparent 50%);
}

.dark .bg-mesh::after {
    background: linear-gradient(45deg,
            rgba(124, 58, 237, 0.1) 0%,
            transparent 30%,
            rgba(16, 185, 129, 0.08) 70%,
            transparent 100%);
}

/* ===================================
   شريط التنقل
   =================================== */
.nav-glass {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

/* قائمة الموبايل */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.dark .mobile-menu {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-link {
    padding: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 1rem;
}

.mobile-menu-link:hover {
    background: var(--bg-secondary);
    color: var(--brand-purple);
}

/* ===================================
   النصوص المتدرجة
   =================================== */
.text-gradient {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   الأزرار
   =================================== */
.btn-playstore {
    background: #000000;
    color: white;
    padding: 12px 28px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.dark .btn-playstore {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-playstore:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.btn-tg {
    background: linear-gradient(135deg, #229ED9 0%, #24A1DE 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px -5px rgba(34, 158, 217, 0.3);
    text-decoration: none;
}

.btn-tg:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(34, 158, 217, 0.4);
}

.btn-apk {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    color: white;
    padding: 12px 28px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.4);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-apk::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 ease;
}

.btn-apk:hover::before {
    left: 100%;
}

.btn-apk:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.5);
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* زر الموقع - أحمر احترافي */
.btn-website {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    color: white;
    padding: 12px 28px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px -5px rgba(220, 38, 38, 0.4);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-website::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.btn-website:hover::before {
    left: 100%;
}

.btn-website:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(220, 38, 38, 0.5);
}

/* ===================================
   الشعار والحركات
   =================================== */
.logo-aura {
    animation: float-logo 6s ease-in-out infinite;
    filter: drop-shadow(0 30px 50px rgba(124, 58, 237, 0.15));
}

.dark .logo-aura {
    filter: drop-shadow(0 30px 50px rgba(124, 58, 237, 0.4));
}

@keyframes float-logo {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

/* ===================================
   معاينة الهواتف
   =================================== */
.pro-mockup {
    border: 10px solid #1a1a1a;
    border-radius: 3.5rem;
    background: #000;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    width: 280px;
    flex-shrink: 0;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .pro-mockup {
    border-color: #334155;
    box-shadow: 0 40px 100px -20px rgba(124, 58, 237, 0.2);
}

.pro-mockup:hover {
    transform: scale(1.05) translateY(-10px);
    z-index: 50;
}

.white-aura {
    position: absolute;
    inset: -20%;
    z-index: -1;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0) 70%);
    filter: blur(40px);
    border-radius: 50%;
}

.dark .white-aura {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, rgba(15, 23, 42, 0) 70%);
}

/* ===================================
   إخفاء شريط التمرير
   =================================== */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ===================================
   تأثير الظهور
   =================================== */
.reveal-up {
    animation: revealUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   بطاقات المميزات
   =================================== */
.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.bento-card:hover {
    border-color: var(--brand-purple);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.dark .bento-card:hover {
    box-shadow: 0 20px 40px -10px rgba(124, 58, 237, 0.2);
}

/* ===================================
   روابط الهيدر الاحترافية
   =================================== */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-grad);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

/* زر التحميل في الهيدر */
.btn-download {
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ===================================
   تأثيرات التذييل
   =================================== */
.footer-brand-text {
    background: linear-gradient(135deg, #94a3b8 0%, #cbd5e1 50%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.5s ease;
}

.dark .footer-brand-text {
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 50%, #64748b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand-text:hover {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   التذييل - الوضع الداكن
   =================================== */
footer {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    transition: background-color 0.5s ease, border-color 0.5s ease;
}

footer .bg-white {
    background: var(--bg-card) !important;
}

.dark footer .bg-white {
    background: var(--bg-card) !important;
}

/* ===================================
   تعديلات Tailwind للوضع الداكن
   =================================== */
.dark .bg-slate-50 {
    background-color: var(--bg-secondary) !important;
}

.dark .bg-slate-100 {
    background-color: #334155 !important;
}

.dark .text-slate-900 {
    color: var(--text-primary) !important;
}

.dark .text-slate-500 {
    color: var(--text-secondary) !important;
}

.dark .text-slate-400 {
    color: var(--text-muted) !important;
}

.dark .text-slate-300 {
    color: #94a3b8 !important;
}

.dark .border-slate-100 {
    border-color: var(--border-color) !important;
}

.dark .bg-white {
    background-color: var(--bg-card) !important;
}

.dark .shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3) !important;
}

.dark .from-purple-50 {
    --tw-gradient-from: #1e1b4b !important;
}

.dark .to-pink-50 {
    --tw-gradient-to: #831843 !important;
}

.dark .from-white {
    --tw-gradient-from: #1e293b !important;
}

.dark .to-slate-50 {
    --tw-gradient-to: #334155 !important;
}

/* ===================================
   التجاوب مع الشاشات الصغيرة
   =================================== */
@media (max-width: 768px) {
    .pro-mockup {
        width: 240px;
        border-radius: 2.5rem;
        border-width: 8px;
    }

    .bento-card {
        padding: 2rem;
        border-radius: 2rem;
    }
}

@media (max-width: 480px) {

    .btn-playstore,
    .btn-tg,
    .btn-apk,
    .btn-website {
        padding: 10px 20px;
        min-width: auto !important;
        width: 100%;
        justify-content: center;
    }

    .pro-mockup {
        width: 200px;
    }
}

/* ===================================
   تحسينات الأداء
   =================================== */
img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
}

/* ===================================
   زر التبديل للوضع الداكن
   =================================== */
#theme-toggle {
    position: relative;
    overflow: hidden;
}

#theme-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-grad);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#theme-toggle:hover::before {
    opacity: 0.1;
}

/* ===================================
   بطاقات المباريات
   =================================== */
.match-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.match-card:hover {
    border-color: var(--brand-purple);
    box-shadow: 0 20px 50px -10px rgba(124, 58, 237, 0.15);
    transform: translateY(-5px);
}

.dark .match-card:hover {
    box-shadow: 0 20px 50px -10px rgba(124, 58, 237, 0.3);
}

.match-live-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

.live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.match-league {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-top: 0.5rem;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.team-logo {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.match-card:hover .team-logo {
    transform: scale(1.1);
}

.team-name {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-primary);
    text-align: center;
}

.match-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
}

.score {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
}

.score-divider {
    color: var(--text-muted);
    font-size: 1.5rem;
}

.match-score.upcoming {
    background: var(--bg-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
}

.time-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-purple);
}

.match-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.watch-btn {
    width: 100%;
    background: var(--primary-grad);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.watch-btn:hover {
    box-shadow: 0 10px 30px -5px rgba(124, 58, 237, 0.4);
}

.upcoming-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.upcoming-btn:hover {
    background: var(--primary-grad);
    color: white;
}

/* ===================================
   بطاقات الأخبار
   =================================== */
.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    overflow: hidden;
    transition: all 0.4s ease;
}

.news-card:hover {
    border-color: var(--brand-purple);
    box-shadow: 0 20px 50px -10px rgba(124, 58, 237, 0.15);
    transform: translateY(-8px);
}

.dark .news-card:hover {
    box-shadow: 0 20px 50px -10px rgba(124, 58, 237, 0.3);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-grad);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 800;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.news-card:hover .news-title {
    color: var(--brand-purple);
}

.news-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-purple);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.news-link:hover {
    gap: 1rem;
}

/* ===================================
   تحسينات إضافية للموبايل
   =================================== */
@media (max-width: 768px) {
    .match-card {
        padding: 1.25rem;
    }

    .team-logo {
        width: 3.5rem;
        height: 3.5rem;
    }

    .score {
        font-size: 2rem;
    }

    .news-image {
        height: 160px;
    }
}

/* ===================================
   بطاقات الدوريات
   =================================== */
.league-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
}

.league-card:hover {
    border-color: var(--brand-purple);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(124, 58, 237, 0.2);
}

.dark .league-card:hover {
    box-shadow: 0 20px 40px -10px rgba(124, 58, 237, 0.4);
}

.league-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: transform 0.3s ease;
}

.league-logo {
    width: 5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: transform 0.3s ease;
}

.league-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.league-card:hover .league-icon,
.league-card:hover .league-logo {
    transform: scale(1.15);
}

.league-name {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.league-badge {
    display: inline-block;
    background: var(--bg-secondary);
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===================================
   بطاقات الدوريات البيضاء
   =================================== */
.league-card-white {
    position: relative;
    background: var(--bg-card);
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.league-card-white:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.dark .league-card-white:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

/* حواف ملونة */
.league-card-white[data-color="blue"]:hover {
    border-color: #2563eb;
}

.league-card-white[data-color="purple"]:hover {
    border-color: #9333ea;
}

.league-card-white[data-color="orange"]:hover {
    border-color: #f97316;
}

.league-card-white[data-color="green"]:hover {
    border-color: #059669;
}

.league-card-white[data-color="red"]:hover {
    border-color: #dc2626;
}

.league-card-white[data-color="sky"]:hover {
    border-color: #0ea5e9;
}

.league-card-white[data-color="amber"]:hover {
    border-color: #f59e0b;
}

/* شريط ملون علوي */
.league-card-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-grad);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.league-card-white[data-color="blue"] .league-card-border {
    background: linear-gradient(90deg, #1d4ed8, #3b82f6);
}

.league-card-white[data-color="purple"] .league-card-border {
    background: linear-gradient(90deg, #7c3aed, #a855f7);
}

.league-card-white[data-color="orange"] .league-card-border {
    background: linear-gradient(90deg, #ea580c, #f97316);
}

.league-card-white[data-color="green"] .league-card-border {
    background: linear-gradient(90deg, #059669, #10b981);
}

.league-card-white[data-color="red"] .league-card-border {
    background: linear-gradient(90deg, #b91c1c, #ef4444);
}

.league-card-white[data-color="sky"] .league-card-border {
    background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.league-card-white[data-color="amber"] .league-card-border {
    background: linear-gradient(90deg, #d97706, #fbbf24);
}

.league-card-white:hover .league-card-border {
    transform: scaleX(1);
}

.league-logo-white {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.league-card-white:hover .league-logo-white {
    transform: scale(1.1);
}

.league-logo-white img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.league-title-dark {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.league-tag-colored {
    display: inline-block;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .league-card-white {
        padding: 1rem;
    }

    .league-logo-white {
        width: 4rem;
        height: 4rem;
    }

    .league-title-dark {
        font-size: 0.85rem;
    }
}

/* ===================================
   بطاقات الدوريات الاحترافية
   =================================== */
.league-card-pro {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 200px;
}

.league-card-pro:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
}

.league-card-bg {
    position: absolute;
    inset: 0;
    transition: transform 0.5s ease;
}

.league-card-pro:hover .league-card-bg {
    transform: scale(1.1);
}

.league-card-content {
    position: relative;
    z-index: 10;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    min-height: 200px;
}

.league-logo-pro {
    width: 5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1.25rem;
    padding: 0.75rem;
    transition: transform 0.4s ease;
}

.league-card-pro:hover .league-logo-pro {
    transform: scale(1.1) rotate(3deg);
}

.league-logo-pro img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.league-title {
    font-size: 1rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.league-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.2rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.league-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.league-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .league-card-pro {
        min-height: 180px;
    }

    .league-logo-pro {
        width: 4rem;
        height: 4rem;
    }

    .league-title {
        font-size: 0.9rem;
    }
}

/* ===================================
   بطاقات الخدمات
   =================================== */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    overflow: hidden;
    transition: all 0.4s ease;
}

.service-card:hover {
    border-color: var(--brand-purple);
    box-shadow: 0 20px 50px -10px rgba(124, 58, 237, 0.15);
    transform: translateY(-8px);
}

.dark .service-card:hover {
    box-shadow: 0 20px 50px -10px rgba(124, 58, 237, 0.3);
}

.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.8) 0%, rgba(219, 39, 119, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.service-content {
    padding: 1.5rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.service-features span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--brand-purple);
    font-size: 0.85rem;
    font-weight: 700;
}

/* ===================================
   تحسينات الموبايل للأقسام الجديدة
   =================================== */
@media (max-width: 768px) {
    .league-card {
        padding: 1rem 0.75rem;
    }

    .league-icon {
        width: 4rem;
        height: 4rem;
    }

    .league-icon i {
        width: 2rem;
        height: 2rem;
    }

    .league-name {
        font-size: 0.75rem;
    }

    .service-image {
        height: 160px;
    }
}