/**
 * الهلال سبورت - Alhlal News Theme
 * تصميم عربي ملكي متجاوب فائق السرعة
 */

:root {
    --hl-blue-dark:  #001a4d;
    --hl-blue:       #003893;
    --hl-blue-light: #0056b3;
    --hl-blue-bg:    #f0f5ff;
    --hl-gold:       #d4af37;
    --hl-gray-900:   #0f172a;
    --hl-gray-800:   #1e293b;
    --hl-gray-700:   #334155;
    --hl-gray-600:   #475569;
    --hl-gray-500:   #64748b;
    --hl-gray-200:   #e2e8f0;
    --hl-gray-100:   #f1f5f9;
    --hl-gray-50:    #f8fafc;
    --hl-white:      #ffffff;
    --hl-radius:     10px;
    --hl-font:       'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    direction: rtl;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--hl-font);
    background-color: var(--hl-gray-50);
    color: var(--hl-gray-800);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--hl-blue);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: var(--hl-blue-light);
}

.hl-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */
.hl-header {
    background-color: var(--hl-white);
    border-bottom: 2px solid var(--hl-blue-bg);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 10px rgba(0, 40, 120, 0.05);
}
.hl-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}
.hl-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--hl-blue-dark);
}
.hl-brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--hl-blue), #0066ff);
    color: var(--hl-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.hl-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}
.hl-nav-link {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--hl-gray-700);
    padding: 0.5rem 0.25rem;
    position: relative;
}
.hl-nav-link:hover, .hl-nav-link.active {
    color: var(--hl-blue);
}
.hl-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    left: 0;
    height: 3px;
    background-color: var(--hl-blue);
    border-radius: 2px;
}

.hl-btn-calc {
    background: linear-gradient(135deg, var(--hl-blue), #0056b3);
    color: var(--hl-white) !important;
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0, 56, 147, 0.2);
}

/* Hero */
.hl-hero {
    background: linear-gradient(135deg, var(--hl-blue-dark) 0%, var(--hl-blue) 100%);
    color: var(--hl-white);
    padding: 3.5rem 0 3rem;
    text-align: center;
    position: relative;
}
.hl-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--hl-white);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.25rem;
}
.hl-hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.hl-hero-desc {
    font-size: 1.15rem;
    color: #e0eaff;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

/* Category Pills Bar */
.hl-category-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.hl-pill {
    background: var(--hl-white);
    color: var(--hl-gray-700);
    border: 1px solid var(--hl-gray-200);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s ease;
}
.hl-pill:hover, .hl-pill.active {
    background: var(--hl-blue);
    color: var(--hl-white);
    border-color: var(--hl-blue);
}

/* Main Content Grid */
.hl-main {
    flex: 1;
    padding: 3rem 0;
}
.hl-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
}

/* Cards */
.hl-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}
.hl-card {
    background-color: var(--hl-white);
    border: 1px solid var(--hl-gray-200);
    border-radius: var(--hl-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hl-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 56, 147, 0.08);
}
.hl-card-header-gradient {
    height: 120px;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    background: linear-gradient(135deg, var(--hl-blue-dark), var(--hl-blue-light));
}
.hl-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.hl-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--hl-gray-500);
    margin-bottom: 0.75rem;
}
.hl-card-cat {
    color: var(--hl-blue);
    font-weight: 800;
}
.hl-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--hl-gray-900);
    margin-bottom: 0.75rem;
}
.hl-card-title a {
    color: inherit;
}
.hl-card-title a:hover {
    color: var(--hl-blue);
}
.hl-card-excerpt {
    font-size: 0.925rem;
    color: var(--hl-gray-600);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}
.hl-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--hl-gray-100);
    font-size: 0.8rem;
    color: var(--hl-gray-500);
}
.hl-read-link {
    font-weight: 800;
    color: var(--hl-blue);
}

/* Sidebar */
.hl-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.hl-widget {
    background-color: var(--hl-white);
    border: 1px solid var(--hl-gray-200);
    border-radius: var(--hl-radius);
    padding: 1.5rem;
}
.hl-widget-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--hl-blue-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--hl-blue-bg);
    position: relative;
}
.hl-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--hl-blue);
}
.hl-widget-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.hl-widget-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--hl-gray-700);
    font-size: 0.925rem;
    font-weight: 600;
}
.hl-widget-item a:hover {
    color: var(--hl-blue);
}
.hl-badge-count {
    background-color: var(--hl-blue-bg);
    color: var(--hl-blue);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
}

/* Article Page Typography */
.hl-article-box {
    background-color: var(--hl-white);
    border: 1px solid var(--hl-gray-200);
    border-radius: var(--hl-radius);
    padding: 2.5rem;
}
.hl-breadcrumbs {
    font-size: 0.85rem;
    color: var(--hl-gray-500);
    margin-bottom: 1.25rem;
}
.hl-breadcrumbs span {
    margin: 0 0.4rem;
}
.hl-single-title {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.35;
    color: var(--hl-blue-dark);
    margin-bottom: 1rem;
}
.hl-single-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--hl-gray-500);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--hl-gray-200);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.hl-article-body {
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--hl-gray-800);
}
.hl-article-body p {
    margin-bottom: 1.5rem;
}
.hl-article-body .lead {
    font-size: 1.25rem;
    color: var(--hl-blue-dark);
    font-weight: 600;
}
.hl-article-body h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--hl-blue-dark);
    margin: 2rem 0 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--hl-blue-bg);
}
.hl-article-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--hl-blue);
    margin: 1.5rem 0 0.6rem;
}
.hl-article-body ul, .hl-article-body ol {
    margin-bottom: 1.5rem;
    padding-right: 1.75rem;
}
.hl-article-body li {
    margin-bottom: 0.5rem;
}
.hl-article-body blockquote {
    background-color: var(--hl-blue-bg);
    border-right: 4px solid var(--hl-blue);
    padding: 1.25rem;
    border-radius: 6px;
    margin: 1.75rem 0;
    font-weight: 600;
    color: var(--hl-blue-dark);
}

/* Author Box */
.hl-author-card {
    background-color: var(--hl-blue-bg);
    border: 1px solid #dbeafe;
    border-radius: var(--hl-radius);
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin: 2.5rem 0;
}
.hl-author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--hl-blue);
    color: var(--hl-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* Interactive Calculator Panel */
.hl-calc-box {
    background-color: var(--hl-white);
    border: 2px solid var(--hl-blue-bg);
    border-radius: var(--hl-radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 56, 147, 0.05);
}
.hl-sim-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
}
.hl-sim-table th, .hl-sim-table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--hl-gray-200);
    text-align: center;
}
.hl-sim-table th {
    background-color: var(--hl-blue-dark);
    color: var(--hl-white);
    font-weight: 800;
}
.hl-sim-table tr:nth-child(even) {
    background-color: var(--hl-gray-50);
}
.hl-sim-table input {
    width: 60px;
    text-align: center;
    padding: 0.3rem;
    border: 1px solid var(--hl-gray-300);
    border-radius: 4px;
    font-weight: 700;
}

/* Ad Placement */
.hl-ad-placeholder {
    background-color: var(--hl-blue-bg);
    border: 1px dashed var(--hl-blue-light);
    border-radius: var(--hl-radius);
    padding: 1.25rem;
    text-align: center;
    color: var(--hl-blue);
    font-size: 0.85rem;
    font-weight: 700;
    margin: 1.75rem 0;
}

/* Footer */
.hl-footer {
    background-color: var(--hl-blue-dark);
    color: #cbd5e1;
    padding: 4rem 0 2rem;
    margin-top: auto;
    font-size: 0.925rem;
}
.hl-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.hl-footer-brand h4 {
    color: var(--hl-white);
    font-size: 1.35rem;
    font-weight: 900;
    margin-bottom: 1rem;
}
.hl-footer-col h5 {
    color: var(--hl-white);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}
.hl-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.hl-footer-links a {
    color: #cbd5e1;
}
.hl-footer-links a:hover {
    color: var(--hl-white);
}
.hl-footer-bottom {
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Cookie Banner */
.hl-cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    left: 1.5rem;
    max-width: 500px;
    background-color: var(--hl-blue-dark);
    color: var(--hl-white);
    border: 1px solid var(--hl-blue);
    border-radius: var(--hl-radius);
    padding: 1.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    font-size: 0.875rem;
}
.hl-cookie-banner.show {
    display: block;
}
.hl-cookie-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}
.btn-hl-accept {
    background-color: var(--hl-blue);
    color: var(--hl-white);
    border: none;
    padding: 0.45rem 1rem;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
}
.btn-hl-decline {
    background: transparent;
    border: 1px solid var(--hl-gray-500);
    color: #cbd5e1;
    padding: 0.45rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

@media (max-width: 868px) {
    .hl-content-grid {
        grid-template-columns: 1fr;
    }
    .hl-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hl-hero-title {
        font-size: 1.85rem;
    }
    .hl-single-title {
        font-size: 1.75rem;
    }
}
@media (max-width: 600px) {
    .hl-footer-grid {
        grid-template-columns: 1fr;
    }
    .hl-cards-grid {
        grid-template-columns: 1fr;
    }
    .hl-article-box {
        padding: 1.25rem;
    }
}
