/**
 * تصميم الكروت الموحد لجميع صفحات الموقع
 * حدود أحمر/برتقالي متدرج + خلفية داكنة
 */

/* ========== كارت أساسي موحد ========== */
.site-card-wrapper {
    position: relative;
    padding: 3px;
    border-radius: 20px;
    background: linear-gradient(135deg, #c41e1e 0%, #e04540 40%, #d14f55 70%, #b84348 100%) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 100%;
}

.site-card-wrapper:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-6px) scale(1.02);
}

.site-card {
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, #3d1a2e 0%, #4a1c2e 50%, #5c2540 100%) !important;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.35s ease;
}

.site-card-body {
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(90deg, #4a1c2e 0%, #5c2540 50%, #6b2d52 100%) !important;
}

.site-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff !important;
    text-align: center;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* تطبيق على كروت الفئات في الصفحة الرئيسية */
.home-theme-new .category-card-wrapper,
.category-card-wrapper {
    position: relative;
    padding: 3px;
    border-radius: 20px;
    background: linear-gradient(135deg, #c41e1e 0%, #e04540 40%, #d14f55 70%, #b84348 100%) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 100%;
}

.home-theme-new .category-card-wrapper:hover,
.category-card-wrapper:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-6px) scale(1.02);
}

.home-theme-new .category-card,
.category-card {
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, #3d1a2e 0%, #4a1c2e 50%, #5c2540 100%) !important;
    border: none !important;
    transition: all 0.35s ease;
}

.home-theme-new .category-card-body,
.category-card-body {
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(90deg, #4a1c2e 0%, #5c2540 50%, #6b2d52 100%) !important;
}

/* تطبيق على كروت الفئات الفرعية (صفحة الفئة) */
.subcategory-item .game-card-wrapper {
    padding: 3px;
    border-radius: 20px;
    background: linear-gradient(135deg, #c41e1e 0%, #e04540 40%, #d14f55 70%, #b84348 100%) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 100%;
}

.subcategory-item .game-card-wrapper:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-6px) scale(1.02);
}

.subcategory-item .card {
    min-height: 210px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #3d1a2e 0%, #4a1c2e 50%, #5c2540 100%) !important;
    border: none !important;
    box-shadow: none !important;
}

.subcategory-item .card-body {
    background: linear-gradient(90deg, #4a1c2e 0%, #5c2540 50%, #6b2d52 100%) !important;
}

/* تطبيق على كارت صورة المنتج */
.product-image-card {
    padding: 6px;
    border-radius: 20px;
    background: linear-gradient(135deg, #c41e1e 0%, #e04540 40%, #d14f55 70%, #b84348 100%) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 0 24px rgba(209, 79, 85, 0.15);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-image-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 32px rgba(255, 140, 0, 0.2);
}

.product-image-card .inner {
    background: linear-gradient(180deg, #3d1a2e 0%, #4a1c2e 100%) !important;
}

/* تطبيق على كروت لوحة التحكم */
.dashboard-page .card,
.frontend-page .theme-shadaty-content .card {
    border-radius: 16px !important;
    overflow: hidden;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.dashboard-page .card-header,
.frontend-page .theme-shadaty-content .card-header {
    background: linear-gradient(135deg, #38184E 0%, #4d2068 100%) !important;
    color: #fff !important;
    border: none !important;
}

.dashboard-page .card-body,
.frontend-page .theme-shadaty-content .card-body {
    background: rgba(26, 61, 46, 0.15) !important;
}

/* كروت لوحة الإدارة — حدود وزوايا فقط (المحتوى يبقى واضحاً) */
body.dashboard-page .main-content .card {
    border-radius: 16px !important;
    overflow: hidden;
    border: 1px solid rgba(209, 79, 85, 0.25) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
}

body.dashboard-page .main-content .card-header {
    background: linear-gradient(135deg, #38184E 0%, #4d2068 100%) !important;
    color: #fff !important;
}

/* لوحة الإدارة: محتوى الكروت أبيض للقراءة */
body.dashboard-page .main-content .card-body {
    background: #fff !important;
    color: #333 !important;
}

/* كروت الميزات (وكلاء، من نحن، أمان) — نفس شكل الصفحة الرئيسية */
.feature-cards-section .category-card-wrapper {
    position: relative;
    padding: 3px;
    border-radius: 20px;
    background: linear-gradient(135deg, #c41e1e 0%, #e04540 40%, #d14f55 70%, #b84348 100%) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 100%;
}
.feature-cards-section .category-card-wrapper:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-6px) scale(1.02);
}
.feature-cards-section .category-card {
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #3d1a2e 0%, #4a1c2e 50%, #5c2540 100%) !important;
    border: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    min-height: 280px;
}
.feature-cards-section .category-card-icon-wrap {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 140, 0, 0.35) 0%, rgba(196, 30, 30, 0.25) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 16px rgba(255, 140, 0, 0.2);
    transition: all 0.35s ease;
}
.feature-cards-section .category-card-wrapper:hover .category-card-icon-wrap {
    box-shadow: 0 6px 24px rgba(255, 140, 0, 0.35);
}
.feature-cards-section .category-card-icon-wrap .bi {
    font-size: 3rem;
    color: #fff;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}
.feature-cards-section .category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff !important;
    text-align: center;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.feature-cards-section .category-card .text-white {
    color: rgba(255, 255, 255, 0.9) !important;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========== Responsive — كروت متجاوبة ========== */
@media (max-width: 768px) {
    .site-card-body,
    .category-card-body {
        padding: 1rem 1.1rem !important;
    }
    .subcategory-item .card {
        min-height: 195px !important;
    }
    .feature-cards-section .category-card {
        min-height: 240px !important;
        padding: 1.25rem !important;
    }
    .feature-cards-section .category-card-icon-wrap {
        width: 80px;
        height: 80px;
    }
    .feature-cards-section .category-card-icon-wrap .bi {
        font-size: 2.25rem;
    }
}

@media (max-width: 576px) {
    .site-card-wrapper,
    .category-card-wrapper,
    .subcategory-item .game-card-wrapper {
        margin-bottom: 0.5rem;
    }
    .site-card-body,
    .category-card-body {
        padding: 0.9rem 1rem !important;
    }
    .site-card-title,
    .category-title,
    .feature-cards-section .category-title {
        font-size: 1.1rem !important;
    }
    .subcategory-item .card {
        min-height: 175px !important;
    }
    .feature-cards-section .category-card {
        min-height: 220px !important;
        padding: 1rem !important;
    }
    .feature-cards-section .category-card-icon-wrap {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    .feature-cards-section .category-card-icon-wrap .bi {
        font-size: 2rem;
    }
}
