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

:root {
    --navy: #0B1426;
    --navy-mid: #162035;
    --navy-light: #1E3A5F;
    --red: #B91C1C;
    --red-hover: #991B1B;
    --blue-light: #93C5FD;
    --blue: #60A5FA;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9CA3AF;
    --gray-600: #4B5563;
    --gray-900: #111827;
    --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { direction: rtl; scroll-behavior: smooth; }

body {
    font-family: 'Heebo', sans-serif;
    direction: rtl;
    text-align: right;
    background: var(--gray-100);
    color: var(--gray-900);
    line-height: 1.7;
    font-size: 16px;
}

a { text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; height: auto; }

/* ===== BREAKING NEWS TICKER ===== */
.breaking-bar {
    background: var(--red);
    color: white;
    padding: 6px 0;
    font-size: 13px;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
}

.breaking-label {
    display: inline-block;
    background: var(--red-hover);
    padding: 2px 12px;
    margin-left: 15px;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.breaking-text {
    display: inline-block;
    animation: ticker 20s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

/* ===== HEADER ===== */
.site-header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-top-line {
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--red-hover), var(--red));
}

.header-main {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-bar { width: 4px; height: 32px; background: var(--red); border-radius: 2px; }

.logo-text {
    font-size: 26px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 1px;
}

.logo-accent { color: var(--red); }

.logo-sub {
    font-size: 10px;
    color: var(--gray-400);
    letter-spacing: 3px;
    display: block;
    margin-top: -2px;
}

/* Nav */
.main-nav { display: flex; align-items: center; gap: 5px; list-style: none; }

.main-nav li a {
    color: var(--gray-400);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 4px;
    transition: all 0.2s;
}

.main-nav li a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.05);
}

.nav-live {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--red) !important;
    font-weight: 700 !important;
}

.live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--red);
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 6px var(--red);
}

/* Date bar */
.date-bar {
    background: var(--navy-mid);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 5px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.date-text {
    font-size: 12px;
    color: var(--gray-400);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
    padding: 0;
}

.hero-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    min-height: 400px;
}

.hero-main {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-badge {
    display: inline-block;
    background: var(--red);
    color: white;
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
    align-self: flex-start;
}

.hero-title {
    font-size: 34px;
    font-weight: 900;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 12px;
}

.hero-title a { color: var(--white); }
.hero-title a:hover { color: var(--blue); }

.hero-excerpt {
    font-size: 16px;
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 12px;
}

.hero-meta { font-size: 13px; color: var(--blue); }

.hero-image {
    position: relative;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 80px;
    background: linear-gradient(270deg, transparent, var(--navy));
}

/* ===== CONTENT AREA ===== */
.content-area {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 24px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
}

/* Section headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
}

.section-header h2 {
    font-size: 20px;
    font-weight: 900;
    color: var(--navy);
}

.section-header .line {
    flex: 1;
    height: 2px;
    background: var(--red);
}

/* Article cards */
.articles-list { display: flex; flex-direction: column; gap: 20px; }

.article-card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 280px 1fr;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.2s;
    border: 1px solid var(--gray-200);
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--blue);
}

.article-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card-body { padding: 20px; }

.article-tag {
    display: inline-block;
    background: var(--navy);
    color: var(--blue-light);
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 2px;
    margin-bottom: 8px;
}

.article-card-title {
    font-size: 19px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 8px;
}

.article-card-title a { color: var(--navy); }
.article-card-title a:hover { color: var(--red); }

.article-card-excerpt {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta { font-size: 12px; color: var(--gray-400); }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 25px; }

.sidebar-widget {
    background: white;
    border-radius: 6px;
    padding: 20px;
    border: 1px solid var(--gray-200);
}

.widget-title {
    font-size: 16px;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--red);
}

/* Stats widget */
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
}

.stat-label { font-size: 14px; color: var(--gray-600); }

.stat-value {
    font-size: 20px;
    font-weight: 900;
    color: var(--red);
}

.stat-value.green { color: #059669; }

/* About widget */
.about-widget p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

.about-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--red);
    font-weight: 700;
    font-size: 14px;
}

/* ===== POST PAGE ===== */
.post-hero {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
    padding: 50px 24px;
}

.post-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.post-hero .hero-badge { margin-bottom: 15px; }

.post-title {
    font-size: 36px;
    font-weight: 900;
    color: white;
    line-height: 1.3;
    margin-bottom: 15px;
}

.post-hero .hero-meta { margin-bottom: 0; }

.post-feature-wrap {
    max-width: 900px;
    margin: -30px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.post-feature-wrap img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.post-body {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 24px 60px;
    font-size: 18px;
    line-height: 1.9;
}

.post-body h2 {
    font-size: 28px;
    color: var(--navy);
    margin: 35px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--red);
}

.post-body h3 {
    font-size: 22px;
    color: var(--navy);
    margin: 25px 0 10px;
}

.post-body p { margin-bottom: 18px; }

.post-body blockquote {
    border-right: 4px solid var(--red);
    padding: 15px 25px;
    margin: 25px 0;
    background: var(--gray-100);
    font-size: 20px;
    font-weight: 500;
    color: var(--navy);
}

.post-body ul, .post-body ol {
    margin: 15px 25px 15px 0;
}

.post-body li { margin-bottom: 8px; }

.post-body strong { color: var(--navy); }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--navy);
    border-top: 3px solid var(--red);
    padding: 40px 24px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.footer-col h3 {
    font-size: 16px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-col p, .footer-col a {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.8;
}

.footer-col a:hover { color: var(--blue); }

.footer-bottom {
    max-width: 1280px;
    margin: 20px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 12px;
    color: var(--gray-400);
}

.footer-brand {
    font-size: 22px;
    font-weight: 900;
    color: var(--white);
}

.footer-brand .accent { color: var(--red); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .content-area { grid-template-columns: 1fr; }
    .sidebar { display: none; }
}

@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-image { height: 250px; }
    .hero-title { font-size: 26px; }
    .article-card { grid-template-columns: 1fr; }
    .article-card-img { height: 180px; }
    .main-nav { display: none; }
    .logo-text { font-size: 22px; }
    .footer-inner { grid-template-columns: 1fr; }
    .post-title { font-size: 28px; }
}

/* ===== FEATURED STRIP ===== */
.featured-strip {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0;
}

.featured-strip-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.featured-mini {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-left: 1px solid var(--gray-200);
    text-decoration: none;
    transition: background 0.2s;
}

.featured-mini:last-child { border-left: none; }
.featured-mini:hover { background: var(--gray-100); }

.featured-mini img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.featured-mini-content h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 4px;
}

.mini-tag {
    font-size: 10px;
    color: var(--red);
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 3px;
}

.mini-date {
    font-size: 11px;
    color: var(--gray-400);
}

/* ===== IMPROVED ARTICLE CARDS ===== */
.article-card-img-wrap {
    position: relative;
    overflow: hidden;
}

.img-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
}

.img-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--red);
    color: white;
    padding: 2px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 2px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-400);
}

.meta-author { color: var(--red); font-weight: 700; }
.meta-sep { color: var(--gray-200); }

/* ===== SECTION HEADER ===== */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.section-icon { font-size: 20px; }

.section-header h2 {
    font-size: 20px;
    font-weight: 900;
    color: var(--navy);
    white-space: nowrap;
}

.section-header .line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--red), transparent);
}

/* ===== SIDEBAR IMPROVEMENTS ===== */
.weather-widget iframe { border-radius: 6px; }

.widget-text {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
}

.widget-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--red);
    font-weight: 700;
    font-size: 14px;
}

.widget-link:hover { color: var(--red-hover); }

.contact-btn {
    display: block;
    background: var(--navy);
    color: var(--blue-light) !important;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    margin: 10px 0;
    transition: background 0.2s;
}

.contact-btn:hover { background: var(--navy-light); }

.widget-small {
    font-size: 12px;
    color: var(--gray-400);
    text-align: center;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    display: inline-block;
    background: var(--gray-100);
    color: var(--navy);
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.tag-pill:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* ===== IMPROVED POST PAGE ===== */
.post-body img {
    border-radius: 6px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-body a { color: var(--red); font-weight: 500; }
.post-body a:hover { text-decoration: underline; }

.post-share {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.pagination a {
    background: var(--navy);
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
}

.pagination a:hover { background: var(--navy-light); }

/* ===== ANIMATIONS ===== */
.article-card { animation: fadeInUp 0.4s ease; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--navy-mid); border-radius: 4px; }

/* ===== RESPONSIVE IMPROVEMENTS ===== */
@media (max-width: 768px) {
    .featured-strip-inner { grid-template-columns: 1fr; }
    .featured-mini { border-left: none; border-bottom: 1px solid var(--gray-200); }
    .breaking-bar { font-size: 12px; }
    .breaking-label { padding: 2px 8px; }
}

/* ===== CATEGORY SECTIONS ===== */
.category-section {
    margin-bottom: 35px;
}

.section-more {
    color: var(--red);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.section-more:hover { text-decoration: underline; }

/* ===== VERTICAL CARDS GRID ===== */
.articles-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card-vertical {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.card-vertical:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.card-img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    height: 160px;
}

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

.card-vertical:hover .card-img-wrap img { transform: scale(1.05); }

.card-body {
    padding: 15px;
}

.card-body h3 {
    font-size: 16px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 6px;
}

.card-body h3 a { color: var(--navy); }
.card-body h3 a:hover { color: var(--red); }

.card-date {
    font-size: 12px;
    color: var(--gray-400);
}

/* ===== STAT ROW ===== */
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
}

.stat-row:last-child { border-bottom: none; }

.stat-label { font-size: 13px; color: var(--gray-600); }
.stat-value { font-size: 18px; font-weight: 900; color: var(--red); }
.stat-value.green { color: #059669; }

@media (max-width: 768px) {
    .articles-grid-3 { grid-template-columns: 1fr; }
}
