/*
Theme Name: Rotana News Control
Theme URI: https://rotana-news.net/
Author: Rotana News
Description: قالب عربي مستقل لإدارة موقع روتانا نيوز، مع لوحة تحكم تحريرية للأخبار، الموافقات، التقارير، وجدولة النشر.
Version: 1.0.6
Text Domain: rotana-news-control
*/

:root {
  --ink: #17211c;
  --muted: #68736d;
  --line: #dde7e2;
  --soft: #f5f8f6;
  --white: #ffffff;
  --green: #123525;
  --green-2: #1f6b4a;
  --gold: #c9a84c;
  --red: #b42318;
  --shadow: 0 18px 45px rgba(18, 53, 37, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  direction: rtl;
  font-family: Tajawal, Arial, sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav-inner { min-height: 72px; display: flex; align-items: center; gap: 18px; }
.nav-logo { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: var(--gold);
  font-weight: 800;
  letter-spacing: .04em;
}
.nav-logo-name { color: var(--green); font-weight: 800; font-size: 18px; }
.nav-logo-sub { color: var(--muted); font-size: 12px; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0; }
.nav-links a, .nav-lang, .nav-cta a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
}
.nav-links a:hover, .nav-lang:hover { background: #edf5f0; }
.nav-cta a { background: var(--green); color: var(--white); }
.nav-hamburger { display: none; background: transparent; border: 0; width: 40px; height: 40px; padding: 8px; }
.nav-hamburger span { display: block; height: 2px; background: var(--green); margin: 5px 0; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--white); padding: 10px 16px 16px; }
.mobile-menu a { display: block; padding: 11px 0; color: var(--green); font-weight: 700; border-bottom: 1px solid #eef2ef; }

.live-status { background: #0f271c; color: #eaf4ee; font-size: 13px; }
.live-wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.live-main, .live-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.live-dot { width: 8px; height: 8px; background: #35d07f; border-radius: 99px; box-shadow: 0 0 0 5px rgba(53,208,127,.15); }
.live-pill { color: #dce8e1; }

.hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(18,53,37,.96), rgba(31,107,74,.82)),
    radial-gradient(circle at 18% 18%, rgba(201,168,76,.28), transparent 28%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(0deg, var(--soft), transparent);
}
.hero-inner { position: relative; z-index: 2; max-width: 780px; padding: 78px 0 110px; }
.section-label { color: var(--gold); font-weight: 800; margin-bottom: 10px; }
.hero h1, .section-title { margin: 0; color: inherit; font-size: clamp(32px, 5vw, 64px); line-height: 1.12; font-weight: 800; }
.hero p, .section-sub { color: rgba(255,255,255,.84); max-width: 720px; font-size: 18px; margin: 18px 0 0; }
.section-sub { color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-primary, .btn-outline-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}
.btn-primary { background: var(--gold); color: var(--green); }
.btn-outline-green { border: 1px solid rgba(255,255,255,.45); color: var(--white); }

.section { padding: 72px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section .section-title { color: var(--green); font-size: clamp(26px, 4vw, 42px); }
.news-grid, .articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.news-card, .article-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(18,53,37,.05);
}
.news-card h3, .article-card h2 { margin: 0 0 8px; color: var(--green); font-size: 21px; }
.news-card p, .article-card p { margin: 0; color: var(--muted); }
.news-card a, .article-card a { display: block; height: 100%; }
.news-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf5f0;
  color: var(--green-2);
  font-weight: 800;
  margin-bottom: 12px;
}
.article-card span { display: block; color: var(--gold); font-weight: 800; margin-top: 12px; font-size: 13px; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
  color: var(--muted);
  font-size: 14px;
}
.article-meta a, .archive-chip, .pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8fbf9;
  color: var(--green);
  font-weight: 700;
}
.article-featured { margin: 20px 0; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); }
.article-featured img { display: block; width: 100%; }
.archive-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.archive-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.search-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.search-field {
  min-height: 42px;
  width: min(280px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font-family: inherit;
}
.search-submit {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  font-family: inherit;
  font-weight: 800;
  color: var(--white);
  background: var(--green);
  cursor: pointer;
}
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.pagination .current { background: var(--green); color: var(--white); }
.wp-content-area {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 38px);
  box-shadow: var(--shadow);
}
.wp-content-area h1, .wp-content-area h2, .wp-content-area h3 { color: var(--green); }
.wp-content-area p { color: #334039; }

footer {
  background: #10251b;
  color: #dce8e1;
  padding: 52px 0 22px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-about, .footer-contact { color: #bdcbc4; margin: 0; }
.footer-title { color: var(--gold); font-weight: 800; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { color: #dce8e1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 34px; padding-top: 18px; color: #aebdb5; font-size: 13px; }

@media (max-width: 920px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: block; }
  .mobile-menu.open { display: block; }
  .live-wrap { display: block; padding: 9px 0; }
  .live-meta { margin-top: 5px; }
  .news-grid, .articles-grid, .footer-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .archive-tools, .search-form { display: block; }
  .search-field, .search-submit { width: 100%; margin-top: 8px; }
  .hero { min-height: auto; }
  .hero-inner { padding: 58px 0 90px; }
}
