/* =============================================
   darkmode.css — ملف جديد منفصل
   يُضاف كـ link في header.php فقط
   لا يؤثر على أي CSS موجود
   ============================================= */

/* ─── Dark Mode Variables ─────────────────── */
[data-theme="dark"] {
  --body-bg:  #0f172a;
  --card-bg:  #1e293b;
  --white:    #1e293b;
  --border:   #334155;
  --gray-50:  #1e293b;
  --gray-100: #273044;
  --gray-200: #334155;
  --gray-300: #475569;
  --gray-400: #64748b;
  --gray-500: #94a3b8;
  --gray-600: #cbd5e1;
  --gray-700: #e2e8f0;
  --gray-800: #f1f5f9;
  --gray-900: #f8fafc;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --shadow:    0 4px 16px rgba(0,0,0,.5);
}

[data-theme="dark"] body             { background: var(--body-bg); color: var(--gray-700); }
[data-theme="dark"] .site-header     { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .job-card        { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .form-card       { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .table-wrap      { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .data-table th   { background: #273044; border-color: #334155; }
[data-theme="dark"] .data-table td   { border-color: #273044; }
[data-theme="dark"] .data-table tr:hover td { background: #273044; }
[data-theme="dark"] .form-control    { background: #273044; border-color: #334155; color: var(--gray-700); }
[data-theme="dark"] .country-tabs    { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .sidebar-card    { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .job-detail-main { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .search-bar-main { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .search-bar-main input,
[data-theme="dark"] .search-bar-main select { background: #273044; color: var(--gray-700); border-color: #334155; }
[data-theme="dark"] .empty-state     { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .stats-bar       { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .hero            { filter: brightness(0.9); }
[data-theme="dark"] .featured-card   { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .login-card      { background: #1e293b; }
[data-theme="dark"] .info-row        { border-color: #273044; }
[data-theme="dark"] .pagination li a { background: #1e293b; border-color: #334155; color: var(--gray-600); }

/* ─── Dark Mode Toggle Button ─────────────── */
.dark-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  color: var(--gray-600);
  transition: all .2s;
  flex-shrink: 0;
}
.dark-toggle:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
[data-theme="dark"] .dark-toggle {
  border-color: #475569;
  color: #fbbf24;
}
[data-theme="dark"] .dark-toggle:hover {
  background: #273044;
  border-color: #fbbf24;
}

/* ─── Logo Slogan (under site name) ──────── */
.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary);
  white-space: nowrap;
}
.logo-slogan {
  font-size: .65rem;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: .2px;
  white-space: nowrap;
}
[data-theme="dark"] .logo-name   { color: #60a5fa; }
[data-theme="dark"] .logo-slogan { color: #475569; }

/* ─── Footer v2 (redesigned) ──────────────── */
.site-footer-new {
  background: #0f172a;
  color: #64748b;
  padding: 52px 0 0;
  direction: rtl;
}
[data-theme="dark"] .site-footer-new { background: #020617; }

.footer-new-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1e293b;
}

.footer-brand-new {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-logo-new {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 900;
  color: #f1f5f9;
  text-decoration: none;
  margin-bottom: 12px;
}
.footer-logo-new:hover { color: #60a5fa; }

.footer-brand-desc {
  font-size: .83rem;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 20px;
  max-width: 280px;
}

.footer-social-new {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.footer-social-new a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: .88rem;
  text-decoration: none;
  transition: all .2s;
}
.footer-social-new a:hover { transform: translateY(-2px); color: #fff; }
.footer-social-new .fsn-wa:hover { background: #25d366; border-color: #25d366; }
.footer-social-new .fsn-tw:hover { background: #1da1f2; border-color: #1da1f2; }
.footer-social-new .fsn-li:hover { background: #0a66c2; border-color: #0a66c2; }
.footer-social-new .fsn-tg:hover { background: #0088cc; border-color: #0088cc; }

.footer-contact-new { display: flex; flex-direction: column; gap: 8px; }
.footer-contact-new a {
  font-size: .8rem;
  color: #475569;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .2s;
}
.footer-contact-new a:hover { color: #94a3b8; }
.footer-contact-new a i { color: #1a56db; width: 14px; text-align: center; }

.footer-col-new h4 {
  font-size: .78rem;
  font-weight: 800;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 18px;
  margin-top: 0;
}
.footer-col-new ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-new ul li a {
  font-size: .83rem;
  color: #475569;
  text-decoration: none;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col-new ul li a:hover { color: #94a3b8; }

.footer-bottom-new {
  padding: 20px 0;
  text-align: center;
  font-size: .8rem;
  color: #1e293b;
  border-top: 0;
}
.footer-bottom-new span { color: #334155; }

/* ─── Newsletter in Footer ───────────────── */
.footer-newsletter-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #1a56db 100%);
  padding: 48px 20px;
  text-align: center;
}
.footer-newsletter-section h2 {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  margin: 0 0 8px;
}
.footer-newsletter-section p {
  color: rgba(255,255,255,.8);
  font-size: .92rem;
  margin: 0 0 24px;
}
.nl-form {
  display: flex;
  gap: 8px;
  max-width: 540px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.nl-form input {
  flex: 1;
  min-width: 170px;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius-sm, 8px);
  font-family: var(--font, 'Cairo', sans-serif);
  font-size: .9rem;
  outline: none;
  color: #1f2937;
}
.nl-form button {
  padding: 12px 24px;
  background: #f59e0b;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm, 8px);
  font-family: var(--font, 'Cairo', sans-serif);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.nl-form button:hover { background: #d97706; }
.nl-msg { margin-top: 12px; font-size: .85rem; min-height: 20px; }

/* ─── Responsive ─────────────────────────── */
@media (max-width: 900px) {
  .footer-new-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand-new { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-new-grid { grid-template-columns: 1fr; }
  .footer-brand-new { grid-column: 1; }
  .logo-slogan { display: none; }
}
