/* ============================================================
   TRADEWAY ARABIC — COMPLETE STYLESHEET
   © 2026 TradeWay Arabic — مسار التداول
   https://tradewayarabic.com
   Version: 2.0.0
   ============================================================ */

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

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --primary:        #0503A3;
  --primary-hover:  #0301B0;
  --primary-light:  #E8E7F7;
  --accent:         #3B82F6;
  --accent-light:   #DBEAFE;
  --success:        #059669;
  --success-light:  #D1FAE5;
  --warning:        #D97706;
  --warning-light:  #FED7AA;
  --danger:         #DC2626;
  --danger-light:   #FEE2E2;
  --bg:             #FFFFFF;
  --bg-soft:        #F8FAFC;
  --bg-section:     #F1F5F9;
  --text-heading:   #0F172A;
  --text-body:      #334155;
  --text-muted:     #64748B;
  --text-faint:     #94A3B8;
  --border:         #E2E8F0;
  --border-soft:    #F1F5F9;
  --shadow-sm:      0 1px 2px rgba(15,23,42,0.04);
  --shadow-md:      0 4px 12px rgba(15,23,42,0.06);
  --shadow-lg:      0 12px 32px rgba(15,23,42,0.08);
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --transition:     all 0.2s cubic-bezier(0.4,0,0.2,1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
  font-family: "Tahoma","Segoe UI","Arial",sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
  background: var(--bg-soft);
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration:none; color:inherit; }
img { max-width:100%; display:block; }

h1,h2,h3,h4,h5,h6 {
  font-family: "Tajawal","Tahoma",sans-serif;
  color: var(--text-heading);
  line-height: 1.25;
  font-weight: 800;
}

h1 { font-size: clamp(32px,4.5vw,52px); font-weight:900; }
h2 { font-size: clamp(26px,3vw,38px); }
h3 { font-size: clamp(20px,2.5vw,26px); }
h4 { font-size: 17px; }

p { color:var(--text-body); line-height:1.8; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: var(--text-heading);
  color: #CBD5E1;
  font-size: 13px;
  padding: 10px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar-info {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--success);
  border-radius: 50%;
  margin-left: 6px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Tajawal",sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--text-heading);
  flex-shrink: 0;
}
.logo img {
  height: 36px;
  width: auto;
  border-radius: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-sub {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--text-body);
  font-size: 14px;
  font-weight: 500;
  font-family: "Tajawal",sans-serif;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); font-weight: 700; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-heading);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: "Tajawal",sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #FFF;
  box-shadow: 0 4px 14px rgba(5,3,163,0.25);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5,3,163,0.35);
  color: #FFF;
}
.btn-secondary {
  background: var(--bg);
  color: var(--text-heading);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(160deg, #EEF2FF 0%, #F8FAFC 60%, #E8F4F8 100%);
  padding: 72px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(5,3,163,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero-cut {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--bg-soft);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 40px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.badge-tag {
  background: var(--success);
  color: #FFF;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 11px;
  font-family: "Tajawal",sans-serif;
}

.hero h1 { margin-bottom: 20px; }
.hero h1 .accent {
  color: var(--primary);
  position: relative;
  display: inline-block;
}
.hero h1 .accent::after {
  content: '';
  position: absolute;
  bottom: 4px; right: 0; left: 0;
  height: 12px;
  background: rgba(59,130,246,0.15);
  z-index: -1;
}

.hero-lede {
  font-size: 17px;
  color: var(--text-body);
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero Article Card */
.hero-article-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.hero-article-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-family: "Tajawal",sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.hero-article-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  line-height: 1.4;
}
.hero-article-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.hero-article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-faint);
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
}
.hero-article-read {
  color: var(--primary);
  font-weight: 700;
  font-family: "Tajawal",sans-serif;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.hero-article-read:hover { gap: 10px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-section); }

.section-head { margin-bottom: 48px; }
.section-eyebrow {
  font-family: "Tajawal",sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 14px; }
.section-title .accent { color: var(--primary); }
.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================================
   FEATURED ARTICLES — 3 CARDS
   ============================================================ */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}

.featured-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.featured-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(5,3,163,0.1);
  transform: translateY(-3px);
}
.featured-card-cat {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-family: "Tajawal",sans-serif;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
}
.featured-card h4 {
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-heading);
}
.featured-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.featured-card-link {
  color: var(--primary);
  font-weight: 700;
  font-family: "Tajawal",sans-serif;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.featured-card-link:hover { gap: 8px; }

/* ============================================================
   ALL ARTICLES GRID
   ============================================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
}

.article-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.article-card-cat {
  font-family: "Tajawal",sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
}
.article-card h4 {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-heading);
  flex: 1;
}
.article-card-link {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  font-family: "Tajawal",sans-serif;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.article-card-link:hover { gap: 8px; }

/* ============================================================
   FEATURES SECTION (dark)
   ============================================================ */
.features-section {
  background: var(--text-heading);
  padding: 80px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.features-headline {
  color: #FFFFFF;
  font-size: clamp(32px,4vw,48px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}
.features-headline .accent { color: #60A5FA; }
.features-desc {
  color: #94A3B8;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 28px;
}
.features-cta {
  background: var(--primary);
  color: #FFF;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: "Tajawal",sans-serif;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(5,3,163,0.4);
  transition: var(--transition);
}
.features-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5,3,163,0.5);
  color: #FFF;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
}
.feature-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}
.feature-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-title {
  font-family: "Tajawal",sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #FFFFFF;
  margin-bottom: 4px;
}
.feature-desc {
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--text-heading);
  color: #CBD5E1;
  padding: 72px 0 28px;
}
.footer-disclaimer {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 48px;
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.8;
}
.footer-disclaimer strong { color: #FFF; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Tajawal",sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: #FFFFFF;
  margin-bottom: 16px;
}
.footer-logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-about p {
  color: #94A3B8;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 24px;
}
.footer-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CBD5E1;
  transition: var(--transition);
}
.social-btn:hover {
  background: var(--primary);
  color: #FFF;
  border-color: var(--primary);
  transform: translateY(-2px);
}
.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.footer-col h5 {
  color: #FFF;
  font-family: "Tajawal",sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: #94A3B8;
  font-size: 14px;
  transition: var(--transition);
}
.footer-col a:hover { color: #FFF; }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #64748B;
}

/* ============================================================
   UTILITY
   ============================================================ */
.tw-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: "Tajawal",sans-serif;
  font-size: 11px;
  font-weight: 700;
}
.tw-pill-success { background: var(--success-light); color: var(--success); }
.tw-pill-warning { background: var(--warning-light); color: var(--warning); }
.tw-pill-danger  { background: var(--danger-light);  color: var(--danger); }
.tw-pill-primary { background: var(--primary-light); color: var(--primary); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-article-card { display: none; }
  .featured-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .articles-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { padding: 48px 0 72px; }
  .section { padding: 48px 0; }
  .articles-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .featured-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .top-bar .container { flex-direction: column; gap: 4px; }
  .features-section { padding: 48px 0; }
}

@media (max-width: 400px) {
  .articles-grid { grid-template-columns: 1fr; }
}

.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 0; left: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  gap: 16px;
  box-shadow: var(--shadow-md);
  z-index: 99;
}

@media print {
  .top-bar, .nav, footer { display: none; }
  body { background: white; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   END — © 2026 TradeWay Arabic — مسار التداول
   ============================================================ */
