/* style.css - قناة السادسة الفضائية */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&display=swap');

:root {
    --bg-dark: #070B19;
    --bg-card: #101935;
    --bg-card-hover: #172449;
    --navy-light: #1E2D5A;
    --accent-gold: #FFC857;
    --gold-hover: #E0A96D;
    --accent-red: #E63946;
    --accent-blue: #00B4D8;
    --text-primary: #F8F9FA;
    --text-secondary: #ADB5BD;
    --text-muted: #6C757D;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(16, 25, 53, 0.75);
    --glass-border: rgba(255, 255, 255, 0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-glow: 0 0 25px rgba(255, 200, 87, 0.15);
    --shadow-red: 0 0 20px rgba(230, 57, 70, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navigation */
.top-bar {
    background: rgba(7, 11, 25, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.top-bar-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.frequency-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 200, 87, 0.1);
    border: 1px solid rgba(255, 200, 87, 0.2);
    color: var(--accent-gold);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.admin-link-btn {
    background: linear-gradient(135deg, var(--navy-light), var(--bg-card));
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-link-btn:hover {
    background: var(--accent-gold);
    color: #000;
    box-shadow: var(--shadow-glow);
}

/* Main Navbar */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #fff;
}

.logo-img {
    height: 58px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(255, 200, 87, 0.35));
    transition: transform 0.3s ease;
}

.logo-brand:hover .logo-img {
    transform: scale(1.06);
}

.logo-text-box h1 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.logo-text-box h1 span {
    color: var(--accent-gold);
}

.logo-text-box p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-gold);
    background: rgba(255, 200, 87, 0.08);
}

.live-btn {
    background: linear-gradient(135deg, var(--accent-red), #B71C1C);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-red);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

/* Breaking Ticker */
.breaking-ticker {
    background: #000;
    border-bottom: 2px solid var(--accent-red);
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 44px;
}

.ticker-label {
    background: var(--accent-red);
    color: #fff;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 4px 0 10px rgba(0,0,0,0.5);
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content {
    display: inline-block;
    padding-right: 100%;
    animation: ticker 25s linear infinite;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

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

/* Hero Section */
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

.main-featured-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 450px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
}

.main-featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-featured-card:hover img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(7, 11, 25, 0.95) 0%, rgba(7, 11, 25, 0.4) 60%, rgba(0,0,0,0) 100%);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.category-badge {
    align-self: flex-start;
    background: var(--accent-gold);
    color: #000;
    padding: 4px 14px;
    border-radius: 15px;
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.category-badge.red {
    background: var(--accent-red);
    color: #fff;
}

.main-featured-card h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.main-featured-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-info {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Sidebar Current Airing & Highlights */
.sidebar-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.section-title span {
    color: var(--accent-gold);
}

.current-airing-card {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.15), rgba(30, 45, 90, 0.4));
    border: 1px solid var(--accent-red);
    border-radius: var(--radius-md);
    padding: 16px;
    position: relative;
}

.badge-live-now {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 10px;
}

.current-airing-card h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-top: 10px;
    margin-bottom: 6px;
}

.current-airing-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.side-news-item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
}

.side-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.side-news-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.side-news-item h4 {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.side-news-item:hover h4 {
    color: var(--accent-gold);
}

/* News Section Grid */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    position: relative;
    padding-right: 15px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 5px;
    background: var(--accent-gold);
    border-radius: 3px;
}

.view-all-btn {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.view-all-btn:hover {
    gap: 10px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    border-color: var(--glass-border);
}

.card-img-wrap {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .card-img-wrap img {
    transform: scale(1.08);
}

.card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

/* Video Library Player Section */
.video-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
}

.video-thumb {
    position: relative;
    height: 190px;
    cursor: pointer;
}

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

.play-icon-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.video-card:hover .play-icon-overlay {
    background: rgba(230, 57, 70, 0.6);
}

.play-btn-circle {
    width: 54px;
    height: 54px;
    background: #fff;
    color: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.video-card:hover .play-btn-circle {
    transform: scale(1.15);
}

.duration-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Programs Schedule Table */
.program-schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.program-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    transition: all 0.3s ease;
}

.program-card:hover {
    border-color: var(--accent-gold);
    background: var(--bg-card-hover);
}

.program-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
}

.program-info h3 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 4px;
}

.program-info .time {
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 700;
}

.program-info .days {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Modal Video Player */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal.active {
    display: flex;
}

.modal-content-box {
    width: 100%;
    max-width: 900px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    position: relative;
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
}

.video-wrapper video {
    width: 100%;
    max-height: 500px;
    display: block;
    background: #000;
}

.modal-details {
    padding: 20px;
}

.modal-details h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 8px;
}

/* Footer */
footer {
    background: #040711;
    border-top: 1px solid var(--border-color);
    padding: 50px 0 20px;
    margin-top: 60px;
    color: var(--text-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .nav-menu {
        display: none; /* Add responsive toggle if needed */
    }
}

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 30px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}
