/* ============================================================
   RoozBook - Main Stylesheet
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #f1592a;
    --primary-dark: #d1481e;
    --primary-light: #f37a4d;
    --accent: #f1592a;
    --text: #1a1a1a;
    --text-light: #444;
    --text-muted: #777;
    --bg: #ffffff;
    --bg-light: #f9f9f9;
    --bg-lighter: #f3f3f3;
    --border: #e5e5e5;
    --border-light: #eee;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.2s ease;
    --font: 'SF Arabic Rounded', 'SF Arabic', Tahoma, sans-serif;
    --max-width: 1200px;
}

html { font-size: 15px; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg-light);
    line-height: 1.8;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

a { color: var(--text); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ---------- HEADER - ONE LINE ---------- */
#main-header {
    background: #2c3e50;
    border-bottom: 3px solid #f1592a;
    position: sticky;
    top: 0;
    z-index: 1000;
}
#main-header .container { padding: 0 20px; }
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 16px;
}
.header-logo { 
    font-size: 1.6rem; 
    font-weight: 800; 
    color: #fff; 
    white-space: nowrap; 
    display: flex; 
    align-items: center; 
    gap: 8px;
}
.header-logo img {
    height: 36px;
    width: auto;
}
.header-logo span { color: #f1592a; }
.main-nav { overflow: hidden; }
.nav-list { display: flex; white-space: nowrap; }
.nav-link {
    display: block;
    padding: 8px 14px;
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}
.nav-link:hover, .nav-link.active { color: #f1592a; background: rgba(255,255,255,0.05); }
.header-left { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.header-date { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.btn-search-toggle {
    background: none; border: none; font-size: 1.1rem;
    color: rgba(255,255,255,0.8); cursor: pointer; padding: 8px; border-radius: 6px;
     display: flex; align-items: center; justify-content: center;
}
.btn-search-toggle:hover { background: rgba(255,255,255,0.1); color: #fff; }
.header-search { display: none; padding: 0 0 12px; }
.header-search.active { display: block; }
.header-search form { display: flex; border-radius: 20px; overflow: hidden; }
.search-input {
    flex: 1; padding: 8px 16px; border: none;
    font-family: var(--font); font-size: 0.85rem; outline: none;
    border-radius: 0 20px 20px 0;
}
.search-submit {
    padding: 8px 16px; background: #f1592a; color: #fff;
    border: none; cursor: pointer; font-size: 0.9rem; border-radius: 20px 0 0 20px;
}

/* ---------- MAIN ---------- */
#main-content { min-height: 50vh; padding: 24px 0; }
.section-title {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; padding-bottom: 8px;
    border-bottom: 2px solid var(--text); font-size: 1.1rem; font-weight: bold;
}
.section-title span { display: flex; align-items: center; gap: 8px; }
.section-title span::before {
    content: ''; display: inline-block; width: 4px; height: 18px;
    background: var(--primary); border-radius: 2px;
}
.section-more { font-size: 0.78rem; color: var(--text-muted); font-weight: normal; }
.section-more:hover { color: var(--primary); }
.divider { height: 1px; background: var(--border-light); margin: 20px 0; }

/* ---------- FOOTER ---------- */
#main-footer {
    background: #2c3e50; color: #cbd5e1; padding: 40px 0 0;
    margin-top: 40px; border-top: 3px solid #f1592a;
}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col p { font-size: 0.85rem; line-height: 1.8; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #cbd5e1; font-size: 0.85rem; }
.footer-col ul li a:hover { color: #f1592a; }
.footer-social { display: flex; gap: 10px; margin-top: 12px; }
.social-link {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.1); display: flex; align-items: center;
    justify-content: center; color: #fff; font-size: 0.9rem; transition: var(--transition);
}
.social-link:hover { background: #f1592a; }
.newsletter-form { display: flex; margin-top: 10px; border-radius: var(--radius-sm); overflow: hidden; }
.newsletter-form input {
    flex: 1; padding: 10px 14px; border: none;
    font-family: var(--font); font-size: 0.8rem; background: rgba(255,255,255,0.1); color: #fff;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form button {
    padding: 10px 16px; background: #f1592a; color: #fff;
    border: none; cursor: pointer; font-family: var(--font); font-size: 0.8rem; font-weight: bold;
}
.footer-bottom {
    text-align: center; padding: 20px 0; margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.8rem; color: #94a3b8;
}
.footer-bottom strong { color: #f1592a; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .header-top { flex-wrap: wrap; }
    .header-date { width: 100%; text-align: center; }
    .nav-list { flex-wrap: wrap; }
    .nav-link { padding: 6px 10px; font-size: 0.78rem; }
    .footer-grid { grid-template-columns: 1fr; }
}
/* Hamburger */
.hamburger-toggle {
    display: none;
    background: none; border: none;
    color: #fff; font-size: 1.4rem;
    cursor: pointer; padding: 8px; border-radius: 6px;
}
.hamburger-toggle:hover { background: rgba(255,255,255,0.1); }

@media (max-width: 768px) {
    .hamburger-toggle { display: flex; }
    .main-nav { display: none; }
    .main-nav.open {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; right: 0; left: 0;
        background: #2c3e50; padding: 16px 0;
        z-index: 100;
    }
    .main-nav.open .nav-list { flex-direction: column; }
    .main-nav.open .nav-link { padding: 12px 20px; font-size: 0.9rem; }
}