/* Ramadan 2026 - Global Styles - الإصدار الخيالي الاحترافي */
:root {
    --primary: #8B0000;
    --secondary: #B22222;
    --dark: #050505;
    --card-bg: #0f0f0f;
    --text-main: #ffffff;
    --text-dim: #aaaaaa;
    --glow: rgba(139, 0, 0, 0.5);
    --border: rgba(139, 0, 0, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--dark);
    color: var(--text-main);
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden;
}

/* إزالة الخطوط الزرقاء من الروابط بشكل نهائي */
a, a:hover, a:focus, a:active {
    text-decoration: none !important;
    color: inherit;
    outline: none !important;
}

/* Hero Section - تصميم خيالي */
.hero-section {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(5,5,5,0.4), var(--dark));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 0 30px var(--glow);
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Marquee Background for Hero Section */
.hero-marquee {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    opacity: 0.25;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marquee 40s linear infinite;
    padding: 0 10px;
}

.marquee-item {
    width: 220px;
    flex-shrink: 0;
}

.marquee-item img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); } /* اتجاه الحركة لليمين بما أن الموقع RTL */
}

/* Series Cards - تصميم عصري واحترافي */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.series-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.series-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 20px var(--glow);
}

.series-poster {
    aspect-ratio: 2/3;
    position: relative;
    overflow: hidden;
}

.series-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s;
}

.series-card:hover .series-poster img {
    transform: scale(1.15);
}

.series-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: 0.3s;
}

.series-card:hover .series-overlay { opacity: 1; }

.play-icon {
    width: 60px; height: 60px; background: var(--primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 24px; box-shadow: 0 0 20px var(--glow);
}

.series-info {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.series-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.series-meta {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-dim);
}

.series-meta span i {
    color: var(--primary);
    margin-left: 4px;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 60px 0 30px;
    padding-right: 15px;
    border-right: 5px solid var(--primary);
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    color: #fff;
}

.view-all {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all:hover {
    transform: translateX(-5px);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: #fff !important;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 20px rgba(139,0,0,0.3);
    transition: 0.3s;
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(139,0,0,0.5);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: #fff !important;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

/* Container */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section { height: 70vh; }
    .series-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
    .marquee-item { width: 160px; }
}

@media (max-width: 576px) {
    .hero-section { height: 60vh; }
    .series-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hero-actions { display: flex; flex-direction: column; gap: 15px; }
    .section-header { margin: 40px 0 20px; }
    .marquee-item { width: 130px; }
}

/* Footer */
.footer {
    background: #0a0a0a;
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-dim); font-size: 14px; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-dim);
    font-size: 13px;
}
