/* ============================================
   FouRenov Identity — Navy (#1A365D) + Gold (#E28732)
   ============================================ */
:root {
  --navy: #1A365D;
  --navy-dark: #0F2440;
  --navy-light: #2A4A7F;
  --gold: #E28732;
  --gold-light: #F0A85C;
  --gold-dark: #C46E20;
  --bg: #F8F9FC;
  --surface: #FFFFFF;
  --text: #1E293B;
  --text-light: #64748B;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 20px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --radius: 14px;
  --radius-sm: 8px;
  --font: 'Tajawal', 'Cairo', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  direction: rtl;
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--gold); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--gold-dark); }

img { max-width: 100%; height: auto; }

/* ============== HEADER (Navy) ============== */
.site-header {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--gold);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s;
  letter-spacing: -0.5px;
}

.logo a:hover { color: var(--gold-light); }

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0;
  transition: color 0.3s;
  position: relative;
  font-size: 0.95rem;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a:hover { color: var(--gold-light); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--gold);
  margin: 5px 0;
  transition: 0.3s;
}

/* ============== HERO SECTION ============== */
.hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: white;
  text-align: center;
  padding: 5rem 1.5rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(226,135,50,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  background: rgba(226,135,50,0.2);
  color: var(--gold-light);
  padding: 0.3rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border: 1px solid rgba(226,135,50,0.3);
}

.hero h1 {
  font-size: 2.8rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-weight: 900;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.hero-categories {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cat-tag {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  color: var(--gold-light);
  padding: 0.45rem 1.2rem;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid rgba(226,135,50,0.25);
  transition: all 0.3s;
  font-weight: 600;
}

.cat-tag:hover {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ============== CONTAINER ============== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.section-title {
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--gold);
  display: inline-block;
  font-weight: 800;
}

.section-title i {
  color: var(--gold);
  margin-left: 0.5rem;
}

/* ============== ARTICLES GRID ============== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.article-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.article-image { overflow: hidden; max-height: 220px; }
.article-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s;
}

.article-card:hover .article-image img { transform: scale(1.05); }

.article-body { padding: 1.5rem; }

.article-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.article-category {
  background: rgba(226,135,50,0.15);
  color: var(--gold-dark);
  padding: 0.15rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 700;
}

.article-body h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.article-body h2 a { color: var(--navy); text-decoration: none; }
.article-body h2 a:hover { color: var(--gold); }

.article-excerpt {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.read-more:hover {
  background: var(--gold);
  color: var(--navy-dark);
  transform: translateX(-3px);
}

/* ============== SINGLE ARTICLE ============== */
.article-single { max-width: 800px; }

.article-header {
  margin-bottom: 2rem;
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.article-header h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--navy);
}

.article-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }

.tag {
  background: rgba(226,135,50,0.12);
  color: var(--gold-dark);
  padding: 0.2rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 700;
}

.article-hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

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

.article-content {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  line-height: 2;
  font-size: 1.05rem;
  border: 1px solid var(--border);
}

.article-content h2 { color: var(--navy); margin: 2rem 0 0.75rem; border-bottom: 2px solid var(--gold); padding-bottom: 0.3rem; display: inline-block; }
.article-content h3 { color: var(--text); margin: 1.5rem 0 0.5rem; }
.article-content p { margin-bottom: 1rem; }
.article-content ul, .article-content ol { margin: 1rem 0 1rem 1.5rem; }
.article-content blockquote {
  border-right: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(226,135,50,0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-content code {
  background: #f1f5f9;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--navy);
}
.article-content pre code { background: none; }

.article-footer {
  margin-top: 2rem;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy);
  font-weight: 700;
  background: var(--surface);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.back-link:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

/* ============== COMMENTS ============== */
.comments-section {
  margin-top: 3rem;
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.comments-section h2 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--navy); }

.comment {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.comment-author { font-weight: 700; color: var(--navy); }
.comment-date { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.5rem; }

/* ============== ABOUT ============== */
.page-single {
  max-width: 800px;
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 3rem;
  border: 1px solid var(--border);
}

.page-single h1 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--navy); border-bottom: 3px solid var(--gold); padding-bottom: 0.5rem; display: inline-block; }

.about-content p { margin-bottom: 1rem; }
.about-content ul { margin: 1rem 1.5rem; }
.about-content li { margin-bottom: 0.5rem; }

/* ============== EMPTY STATE ============== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  grid-column: 1 / -1;
}

.empty-state i { font-size: 3rem; color: var(--gold); margin-bottom: 1rem; }
.empty-state h3 { margin-bottom: 0.5rem; color: var(--text-light); }

/* ============== FOOTER (Navy) ============== */
.site-footer {
  background: var(--navy-dark);
  color: white;
  margin-top: auto;
  border-top: 3px solid var(--gold);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-col h3 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.footer-col p { opacity: 0.8; font-size: 0.95rem; line-height: 1.7; }

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: #fff; opacity: 0.8; }
.footer-col a:hover { opacity: 1; color: var(--gold-light); }

.social-links { display: flex; gap: 0.75rem; }
.social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s;
  border: 1px solid rgba(255,255,255,0.05);
}

.social-links a:hover { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ============== SORA7A (الصراحة) ============== */

/* Hero */
.sora7a-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.sora7a-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 70% 30%, rgba(226,135,50,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.sora7a-hero .hero-content { position: relative; z-index: 1; }

.sora7a-hero h1 {
  font-size: 2.5em;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-weight: 900;
}

.sora7a-hero .sora7a-subtitle {
  font-size: 1.1em;
  opacity: 0.9;
  max-width: 550px;
  margin: 0.5rem auto 0;
  line-height: 1.7;
  color: #e2e8f0;
}

/* Stats row */
.sora7a-stats {
  max-width: 800px;
  margin: -2rem auto 2rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.sora7a-stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.sora7a-stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: transform 0.3s;
}

.sora7a-stat-card:hover { transform: translateY(-3px); }

.sora7a-stat-card .stat-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
}

.sora7a-stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

/* Form section */
.sora7a-form-section {
  padding: 2rem 0;
}

.sora7a-form-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.sora7a-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--navy));
}

.sora7a-form-card h3 {
  margin-bottom: 1.5rem;
  color: var(--navy);
  font-size: 1.3em;
  font-weight: 800;
}

.sora7a-form-card h3 i { color: var(--gold); }

.sora7a-form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1em;
  resize: vertical;
  transition: border-color 0.3s, box-shadow 0.3s;
  direction: rtl;
  min-height: 120px;
}

.sora7a-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(226,135,50,0.15);
}

.char-counter {
  text-align: left;
  font-size: 0.85em;
  color: var(--text-light);
  margin: 0.5rem 0 1rem;
}

.char-counter.warning { color: var(--gold); }
.char-counter.danger { color: #dc2626; }

.btn-sora7a {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
  border: none;
  padding: 0.85rem 2.5rem;
  border-radius: 30px;
  font-size: 1em;
  font-family: var(--font);
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-sora7a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(226,135,50,0.35);
}

.btn-sora7a:active { transform: translateY(-1px); }

.sora7a-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85em;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.sora7a-note i { color: var(--gold); }

/* Flash messages */
.flash-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.95em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.flash-message.success {
  background: rgba(34,197,94,0.1);
  color: #166534;
  border: 1px solid rgba(34,197,94,0.2);
}
.flash-message.error {
  background: rgba(239,68,68,0.1);
  color: #991b1b;
  border: 1px solid rgba(239,68,68,0.2);
}
.flash-message.info {
  background: rgba(59,130,246,0.1);
  color: #1e40af;
  border: 1px solid rgba(59,130,246,0.2);
}

/* Messages section */
.sora7a-messages-section {
  padding: 2rem 0 5rem;
}

.sora7a-section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.sora7a-section-header h2 {
  color: var(--navy);
  font-size: 1.5em;
  font-weight: 800;
}

.sora7a-section-header h2 i { color: var(--gold); }

.sora7a-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Message cards with avatars */
.sora7a-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.sora7a-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: rgba(226,135,50,0.3);
}

.sora7a-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 900;
  border: 2px solid var(--gold);
}

.sora7a-card-body {
  flex: 1;
  min-width: 0;
}

.sora7a-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.sora7a-card-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sora7a-card-badge {
  font-size: 0.65rem;
  background: rgba(226,135,50,0.12);
  color: var(--gold-dark);
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
  font-weight: 700;
}

.sora7a-card-content p {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}

.sora7a-card-date {
  margin-top: 0.5rem;
  font-size: 0.78em;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.sora7a-card-date i { font-size: 0.75rem; }

.sora7a-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
  background: var(--surface);
  border-radius: var(--radius);
  border: 2px dashed var(--border);
}

.sora7a-empty i {
  font-size: 3em;
  margin-bottom: 1rem;
  color: var(--gold);
  opacity: 0.5;
}

.sora7a-empty p {
  font-size: 1.1em;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .main-nav {
    display: none;
    width: 100%;
    margin-top: 1rem;
    background: var(--bg);
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: 0.75rem;
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  }

  .header-inner {
    position: relative;
  }

  .main-nav.active { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  .main-nav a {
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    font-size: 0.95rem;
    display: block;
  }

  .main-nav a:hover {
    background: var(--gold-light);
    color: var(--navy-dark);
  }

  .hero { padding: 3rem 1.5rem; }
  .hero h1 { font-size: 2rem; }

  .sora7a-hero { padding: 3rem 1.5rem; }
  .sora7a-hero h1 { font-size: 1.8em; }

  .articles-grid { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; }

  .sora7a-stats-inner { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .sora7a-stat-card { padding: 0.75rem; }
  .sora7a-stat-card .stat-number { font-size: 1.3rem; }
  .sora7a-form-card { padding: 1.5rem; margin: 0 1rem; }
  .sora7a-card { padding: 1rem; }

  .page-single { padding: 1.5rem; margin-top: 1.5rem; }
}

@media (max-width: 480px) {
  .hero { padding: 2.5rem 1rem; }
  .hero h1 { font-size: 1.6rem; }
  .container { padding: 0 1rem 2rem; }
  .article-body { padding: 1rem; }
  .sora7a-stats-inner { gap: 0.35rem; }
  .sora7a-stat-card { padding: 0.5rem; }
  .sora7a-stat-card .stat-number { font-size: 1.1rem; }
}
