/* ============================================================
   🌐 FouRenov Empire — Master Theme CSS v2.0
   الألوان: Navy #1A365D + Gold #E28732
   الخطوط: Tajawal + Cairo (Google Fonts)
   الهدف: جميع مواقع WordPress بنفس الـ Premium Look
   ============================================================ */

/* ─── CSS Variables ─────────────────────────── */
:root {
  --navy: #1A365D;
  --navy-dark: #0F2340;
  --navy-light: #2D4A7A;
  --gold: #E28732;
  --gold-light: #F0A050;
  --gold-dark: #C47020;
  --white: #FFFFFF;
  --off-white: #F8F7F4;
  --gray-50: #F9F9F9;
  --gray-100: #F1F0ED;
  --gray-200: #E2E0DB;
  --gray-300: #C9C6C0;
  --gray-500: #8A8883;
  --gray-700: #5A5855;
  --gray-800: #2D2B28;
  --gray-900: #1A1A18;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(26,54,93,0.06);
  --shadow-md: 0 4px 20px rgba(26,54,93,0.08);
  --shadow-lg: 0 8px 32px rgba(26,54,93,0.12);
  --shadow-gold: 0 4px 20px rgba(226,135,50,0.15);
  --font-heading: 'Tajawal', sans-serif;
  --font-body: 'Cairo', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Google Fonts ──────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&family=Cairo:wght@400;500;600;700&display=swap');

/* ─── Base Reset ────────────────────────────── */
* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--gray-800);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
}

/* ─── HEADER ────────────────────────────────── */
.site-header, .main-header, header#masthead {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy)) !important;
  border-bottom: 3px solid var(--gold) !important;
  padding: 0 !important;
}

.site-header .header-inner, 
.main-header .inner-wrap,
#masthead .inside-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title a, .logo a, #masthead a {
  color: var(--white) !important;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
}

.main-navigation a, .nav-links a, .menu-item a {
  color: rgba(255,255,255,0.9) !important;
  font-family: var(--font-body);
  font-weight: 600;
  transition: var(--transition);
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
}

.main-navigation a:hover, .menu-item a:hover {
  color: var(--gold) !important;
  background: rgba(255,255,255,0.05);
}

/* Search icon in header */
.header-search {
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}
.header-search:hover { color: var(--gold); }

/* ─── HERO SECTION ──────────────────────────── */
.hero-section, .page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy), var(--navy-light));
  padding: 64px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(226,135,50,0.08) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-section h1, .page-hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.hero-section p, .page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ─── BUTTONS ───────────────────────────────── */
button, .btn, .button, a.button, input[type="submit"], .wp-block-button__link {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
  color: var(--white) !important;
  font-family: var(--font-body);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  text-decoration: none;
  box-shadow: var(--shadow-gold);
}

button:hover, .btn:hover, .button:hover, a.button:hover, .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(226,135,50,0.25);
  color: var(--white) !important;
}

/* Gold outline variant */
.btn-outline {
  background: transparent !important;
  border: 2px solid var(--gold) !important;
  color: var(--gold) !important;
  box-shadow: none !important;
}
.btn-outline:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
  color: var(--white) !important;
}

/* ─── CARDS ──────────────────────────────────── */
.card, .post-card, article, .entry {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover, .post-card:hover, article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card img, .post-card img, .entry img {
  width: 100%;
  height: auto;
  transition: var(--transition);
}

.card:hover img, .post-card:hover img, .entry:hover img {
  transform: scale(1.03);
}

/* ─── GRID ───────────────────────────────────── */
.posts-grid, .wp-block-query, .site-main {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ─── FOOTER ────────────────────────────────── */
.site-footer, footer, .footer-widgets {
  background: var(--navy-dark) !important;
  border-top: 3px solid var(--gold);
  padding: 48px 24px 24px !important;
}

.site-footer * {
  color: rgba(255,255,255,0.85);
}

.site-footer a {
  color: var(--gold) !important;
  transition: var(--transition);
}
.site-footer a:hover {
  color: var(--gold-light) !important;
}

/* ─── WOOCOMMERCE ───────────────────────────── */
.woocommerce .products li {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.woocommerce .products li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.woocommerce .price {
  color: var(--gold) !important;
  font-family: var(--font-heading);
  font-weight: 800;
}

.woocommerce .onsale {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
  color: var(--white) !important;
}

/* ─── SIDEBAR ───────────────────────────────── */
.widget-area, .sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

/* ─── FORM ELEMENTS ─────────────────────────── */
input, textarea, select {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-body);
  transition: var(--transition);
  background: var(--white);
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(226,135,50,0.1);
  outline: none;
}

/* ─── BREADCRUMBS ───────────────────────────── */
.breadcrumbs {
  padding: 12px 24px;
  background: var(--off-white);
  font-size: 0.9rem;
  color: var(--gray-500);
}

.breadcrumbs a {
  color: var(--navy);
  text-decoration: none;
}
.breadcrumbs a:hover { color: var(--gold); }

/* ─── SINGLE POST / ARTICLE ────────────────── */
.single-post .entry-header h1 {
  font-size: 2.2rem;
}

.single-post .entry-meta {
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* ─── PAGINATION ────────────────────────────── */
.pagination a, .page-numbers a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  transition: var(--transition);
}

.pagination a:hover, .page-numbers.current {
  background: var(--navy);
  color: var(--white);
}

/* ─── ANIMATIONS ────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}

/* ─── TAGS & BADGES ─────────────────────────── */
.tag, .badge, .cat-links a {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(226,135,50,0.1);
  color: var(--gold-dark);
  transition: var(--transition);
}

.tag:hover, .badge:hover, .cat-links a:hover {
  background: var(--gold);
  color: var(--white);
}

/* ─── MISC ──────────────────────────────────── */
.gold-text { color: var(--gold); }
.navy-text { color: var(--navy); }
.text-center { text-align: center; }

.highlight {
  background: linear-gradient(120deg, rgba(226,135,50,0.15) 0%, rgba(226,135,50,0.15) 100%);
  padding: 0 8px;
}

/* ─── RESPONSIVE ────────────────────────────── */
@media (max-width: 768px) {
  .hero-section h1 { font-size: 1.8rem; }
  .posts-grid { grid-template-columns: 1fr; padding: 24px 16px; }
}
