/* ✅ الأساسيات - تعتمد الآن على modern-design-system.css */
body {
    font-family: 'Outfit', 'Tajawal', sans-serif;
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
    padding-bottom: 80px;
    background-color: var(--bg) !important;
    color: var(--tx-primary);
    pointer-events: auto;
}

/* الشريط العلوي */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 12px 24px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
    border-bottom: 1px solid var(--border);
    pointer-events: auto;
}

.logo {
    height: 40px;
}

.top-profile-pic {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.top-profile-pic:hover {
    transform: scale(1.05);
    border-color: var(--accent);
}

/* الإشعارات */
.notification-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: var(--tx-secondary);
    position: relative;
    transition: color 0.2s;
}

.notification-btn:hover {
    color: var(--accent);
}

.notification-list {
    position: absolute;
    top: 50px;
    right: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    width: 280px;
    max-height: 400px;
    overflow-y: auto;
    border-radius: 16px;
    padding: 16px;
    display: none;
    z-index: 1002;
}

.notification-list.show {
    display: block;
}

/* شريط التنقل السفلي - تم نقله إلى modern-design-system.css */

/* الخلفيات */
.video-background, .page-background-iframe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
    pointer-events: none;
}

/* الحاوية الرئيسية */
.container {
    padding: 24px;
    max-width: 800px;
    margin: 100px auto 40px;
}

/* الأزرار العامة */
.btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
}

/* Responsive layout for home cards across laptop and phone */
@media (min-width: 1024px) {
    .home-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1023px) and (min-width: 600px) {
    .home-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 599px) {
    .home-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Home Card Styling - Modernized */
.home-card {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.home-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.home-card .thumb {
    position: absolute;
    inset: 0;
}

.home-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-card .content-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.home-card .content-title {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
}

/* Utilities */
.social-icon-custom {
    color: var(--tx-primary);
    font-size: 1.5rem;
    transition: transform 0.2s, color 0.2s;
}

.social-icon-custom:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* تعديل خاص لأيقونة X لضمان ظهورها بشكل جيد (دعم fa-x و fa-x-twitter) */
.social-icon-custom .fa-x,
.social-icon-custom .fa-x-twitter {
    font-size: 1.25rem;
}