@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary: #032c63;
    --primary-hover: #054499;
    --accent: #ff3b30;
    --bodycolor: #f8fafc;
    --white: #ffffff;
    --black: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 10px 30px rgba(3, 44, 99, 0.08);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bodycolor);
    font-family: 'Poppins', 'Cairo', sans-serif;
    color: var(--black);
    margin: 0;
    min-height: 100vh;
    line-height: 1.7;
}

/* ⚡ 1. PRO TRENDING BAR (شريط التريند المتحرك الذكي) */
.trending-bar-pro {
    width: 90%;
    margin: 14px auto;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    height: 46px;
}

.trending-badge {
    background: linear-gradient(135deg, #ff3b30, #ff9500);
    color: var(--white);
    font-weight: 700;
    font-size: 12px;
    padding: 0 18px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.8px;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 4px 0 10px rgba(0,0,0,0.05);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.trending-ticker-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
}

.ticker-track {
    display: inline-block;
    padding-left: 20px;
    animation: tickerAnim 30s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-link {
    display: inline-block;
    margin-right: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
    transition: color 0.2s;
}

.ticker-link:hover {
    color: var(--accent);
}

@keyframes tickerAnim {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 2. SMS Banner */
.sms-banner {
    background: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    margin: 14px auto;
}
.sms-banner kbd {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px 6px;
    font-weight: 600;
}
.domain-tag {
    font-weight: 700;
    color: var(--primary);
}

/* 3. Containers Layout */
.pro-card-box {
    width: 90%;
    background-color: var(--white);
    margin: 16px auto;
    padding: 24px;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

/* 4. Section Header Pro */
.section-header-pro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}
.title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}
.header-accent {
    width: 5px;
    height: 22px;
    background-color: var(--accent);
    border-radius: 4px;
}
.section-header-pro h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--primary);
}
.view-all-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
}
.view-all-link:hover {
    color: var(--accent);
}

/* ⚡ 5. تصميم قسم الأخبار (مقال رئيسي مع Overlay + قائمة جانبية مملوءة) */
.news-split-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.main-featured-post {
    height: 100%;
}

.featured-card-pro {
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    background: #000;
}

.main-featured-post .card-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 440px;
    display: block;
}

.main-featured-post .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.featured-card-pro:hover .card-img-wrap img {
    transform: scale(1.05);
}

.featured-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 25px 25px 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.category-tag-overlay {
    display: inline-block;
    background: #dc2626;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    margin-bottom: 10px;
    width: fit-content;
}

.featured-overlay-content h2 a {
    font-size: 20px;
    line-height: 1.35;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
    display: block;
    margin-bottom: 8px;
}

.featured-overlay-content h2 a:hover {
    color: #38bdf8;
}

.featured-overlay-content .card-footer-meta {
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
}

/* القائمة الجانبية للأخبار */
.sidebar-news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 440px;
    overflow-y: auto;
    padding-right: 4px;
}

.sidebar-news-list::-webkit-scrollbar {
    width: 4px;
}
.sidebar-news-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.sidebar-news-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.sidebar-news-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.sidebar-thumb {
    width: 75px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-thumb img {
    width: 75px;
    height: 52px;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.sidebar-news-item:hover .sidebar-thumb img {
    transform: scale(1.08);
}

.sidebar-item-content {
    flex-grow: 1;
}

.sidebar-item-content h3 {
    margin: 0 0 4px 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--black);
    transition: color 0.2s;
}

.sidebar-news-item:hover .sidebar-item-content h3 {
    color: var(--primary);
}

.sidebar-date {
    font-size: 10px;
    color: var(--text-muted);
}

.no-data {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
    font-size: 14px;
}

/*######### HEADER & NAVIGATION ########*/
h1 {
    display: none;
}

.pro-site-header {
    background-color: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.pro-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 92%;
    max-width: 1300px;
    height: 72px;
    margin: 0 auto;
}

#logo img {
    width: 175px;
    cursor: pointer;
    display: block;
    transition: transform 0.3s ease;
}
#logo img:hover {
    transform: scale(1.03);
}

a i {
    color: white;
}

#menuicon {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
#menuicon:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
#menuicon i {
    color: var(--white);
    font-size: 20px;
}

.mobile-icon {
    display: none;
}

.pc-menu ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.pc-menu ul a {
    position: relative;
    text-decoration: none;
    color: var(--white);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.pc-menu ul a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.pc-menu ul a::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 4px;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
    margin: 0 auto;
}

.pc-menu ul a:hover::after {
    width: calc(100% - 32px);
}

.social-icons-bar ul {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
}

.social-icons-bar ul a li i {
    color: var(--white);
    font-size: 22px;
    transition: color 0.2s, transform 0.2s;
}

.social-icons-bar ul a li i:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* 📱 قائمة الجوال الاحترافية (Mobile Drawer Menu) */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1050;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--primary);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.mobile-drawer.active {
    left: 0;
}
.menu-overlay.active {
    visibility: visible;
    opacity: 1;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
}

.close-drawer-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.2s;
}
.close-drawer-btn:hover {
    background: var(--accent);
}

.mobile-drawer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-drawer ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.mobile-drawer ul li a:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.mobile-drawer .mobile-icon {
    display: inline-block;
    color: var(--accent);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* ⚡ 6. صفحات المحتوى والثابتة (Pages Styles - متناسقة مع الهوية الجديدة) */
.pagescontainer {
    width: 99%; 
    margin: 30px auto;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 35px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.titlepageh1 {
    display: block;
    background-color: var(--primary);
    padding: 16px 24px;
    color: var(--white);
    border-radius: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(3, 44, 99, 0.15);
}

.container #allmatch {
    width: 100%;
    margin-bottom: 25px;
}

.page-content-body {
    font-size: 1.05rem;
    color: var(--black);
    line-height: 1.8;
    margin: 25px 0;
}

.page-content-body p {
    margin-bottom: 16px;
}

/* تاريخ التحديث داخل الصفحات */
#date {
    color: var(--primary);
    background: #f1f5f9;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
}

/* أزرار مشاركة الصفحات والمقالات (Social Share Buttons بالإنجليزية وبشكل عصري) */
#sharebutton {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px dashed var(--border-color);
}

.share-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-align: center;
}

.social-share {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    flex: 1;
    min-width: 120px;
}

.social-button:hover {
    transform: translateY(-2px);
    opacity: 0.92;
    box-shadow: var(--shadow-hover);
}

.social-button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.facebook { background-color: #1877f2; }
.twitter { background-color: #0f1419; }
.whatsapp { background-color: #25d366; }
.telegram { background-color: #0088cc; }

/* أزرار وتنسيقات السيرفرات إن وجدت داخل الصفحات */
.server-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 5px;
    margin: 15px 0;
}
.server-buttons button {
    padding: 10px 16px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}
.server-buttons button:hover {
    background-color: var(--primary-hover);
}

/* ####### FOOTER ########*/
.pro-site-footer {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    padding: 24px 0;
    margin-top: 40px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.footer-container {
    width: 92%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright-text {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-nav-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.3s ease;
}

.footer-btn:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 📱 Responsive Queries المدمجة */
@media only screen and (max-width: 960px) {
    #menuicon {
        display: flex;
    }
    .pc-menu {
        display: none;
    }
}

@media (max-width: 992px) {
    .news-split-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .main-featured-post .card-img-wrap {
        min-height: 300px;
    }
    .sidebar-news-list {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .trending-bar-pro, .pro-card-box, .sms-banner {
        width: 95%;
    }
    .sms-banner {
        display: none;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .footer-nav-buttons {
        justify-content: center;
    }
    .container {
        width: 95%;
        padding: 20px 15px;
    }
    .container h1 {
        font-size: 1.2rem;
        padding: 12px 15px;
    }
    .social-share {
        flex-direction: column;
    }
    .social-button {
        width: 100%;
        box-sizing: border-box;
    }
}

@media only screen and (max-width: 480px) {
    .pro-nav-container {
        width: 95%;
        height: 65px;
    }
    #logo img {
        width: 140px;
    }
    .social-icons-bar {
        display: none;
    }
    .pro-card-box {
        width: 100%;
        border-radius: 0;
        padding: 15px;
        border-left: none;
        border-right: none;
    }
}