/*
Theme Name: ExpressEdu LetsAI
Theme URI: https://expressedu.net
Author: ExpressEdu
Author URI: https://expressedu.net
Description: قالب مجلة تقنية + كورسات، داكن وحديث، مستوحى من موقع LetsAI، مع دعم كامل لـ RTL وتكامل مع كورسات ExpressEdu (expressedu-core plugin). نسخة محدثة لعرض اللوجو وصورة الخبر الرئيسي.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: expressedu-letsai
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: rtl-language-support, news, magazine, blog, grid-layout, custom-menu
*/

:root {
  --bg-main: #020617;
  --bg-elevated: #020617;
  --bg-soft: #020617;
  --bg-hero: radial-gradient(circle at top left, #1d2438 0, #020617 40%, #020617 100%);
  --bg-strip: radial-gradient(circle at top, #111827 0, #020617 40%, #020617 100%);
  --border-subtle: rgba(148, 163, 184, 0.28);
  --border-strong: rgba(148, 163, 184, 0.52);
  --accent: #6366f1;
  --accent-2: #0ea5e9;
  --accent-3: #22d3ee;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-lg: 0 28px 80px rgba(15, 23, 42, 0.95);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.85);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Noto Kufi Arabic", "Noto Sans Arabic", sans-serif;
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #020617 100%);
  color: var(--text-main);
  direction: rtl;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container { max-width: 1220px; margin: 0 auto; padding: 0 18px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; padding: 4px 10px;
  border-radius: 999px; border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9); color: var(--text-muted);
}
.pill-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent-3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 14px;
  border-radius: 999px; border: 1px solid rgba(148, 163, 184, 0.42);
  background: rgba(15, 23, 42, 0.92); color: var(--text-main);
  font-size: 14px; cursor: pointer; text-decoration: none;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.9);
  transition: all 0.12s ease-out; white-space: nowrap;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-color: transparent;
}
.btn.ghost { background: transparent; }
.btn:hover { transform: translateY(-1px); opacity: 0.96; text-decoration: none; }

.chip { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-3); }
.badge { font-size: 12px; color: var(--text-muted); }

.section { padding: 18px 0 26px; }
.section-header { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:14px; }
.section-title { display:flex; align-items:baseline; gap:8px; }
.section-title h2 { margin:0; font-size:18px; }

.card {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, #020617 0, #020617 40%, #020617 100%);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg); overflow:hidden;
}
.surface-soft {
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(31, 41, 55, 0.8);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
}

.grid { display:grid; gap:16px; }
@media (min-width:960px) {
  .grid-hero { grid-template-columns:2.1fr 1.1fr; align-items:stretch; }
  .grid-news-main { grid-template-columns:2.1fr 1.1fr; }
  .grid-courses { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .grid-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

.meta { font-size:12px; color:var(--text-muted); }

.post-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 41, 55, 0.86);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95) 0, #020617 55%);
  padding: 10px 11px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
  transition: all 0.12s ease-out;
}
.post-card:hover { border-color: rgba(99, 102, 241, 0.65); transform: translateY(-1px); }
.post-card h3 { margin:6px 0 4px; font-size:15px; }
.post-card .excerpt { font-size:13px; color:var(--text-muted); }

.course-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95) 0, #020617 60%);
  padding: 10px 11px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.96);
  transition: all 0.12s ease-out;
}
.course-card:hover { border-color: rgba(129, 140, 248, 0.9); transform: translateY(-1px); }
.course-card h3 { margin:6px 0 4px; font-size:15px; }

.label-locked {
  display:inline-flex; align-items:center; gap:6px;
  font-size:11px; padding:4px 9px;
  border-radius:999px; border:1px dashed rgba(248, 250, 252, 0.24);
  background:rgba(15, 23, 42, 0.96); color:#fecaca;
}

.site-header {
  position:sticky; top:0; z-index:40;
  border-bottom:1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.97) 0, rgba(2, 6, 23, 0.99) 40%, rgba(2, 6, 23, 1) 100%);
  backdrop-filter: blur(18px);
}
.top-strip {
  background: var(--bg-strip);
  border-bottom: 1px solid rgba(55, 65, 81, 0.9);
  font-size: 12px;
  color: var(--text-muted);
}
.top-strip-inner {
  display:flex; align-items:center; justify-content:space-between; gap:10px; padding:4px 0;
}
.live-pill {
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 8px; border-radius:999px;
  background:rgba(15, 23, 42, 0.9);
  border:1px solid rgba(248, 113, 113, 0.85); color:#fecaca;
}
.live-dot {
  width:7px; height:7px; border-radius:999px;
  background:#f97373; box-shadow:0 0 0 4px rgba(248, 113, 113, 0.34);
}
.top-links { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.top-links a { font-size:12px; color:var(--text-muted); padding:2px 8px; border-radius:999px; }
.top-links a:hover { background:rgba(15, 23, 42, 0.9); color:#e5e7eb; text-decoration:none; }

.header-inner {
  display:flex; align-items:center; justify-content:space-between; gap:14px; padding:10px 0;
}

.brand { display:flex; align-items:center; gap:10px; }
.site-logo img { max-height:46px; width:auto; display:block; }
.brand-text { display:flex; flex-direction:column; gap:2px; }
.brand-title { font-weight:800; letter-spacing:0.02em; font-size:16px; }
.brand-sub { font-size:11px; color:var(--text-muted); }

.main-nav { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.main-nav a { padding:7px 9px; border-radius:999px; font-size:13px; color:var(--text-muted); }
.main-nav a:hover { background:rgba(15, 23, 42, 0.9); color:var(--text-main); text-decoration:none; }

.hero { padding:18px 0 10px; }
.hero-main {
  padding:16px 16px 14px;
  background: var(--bg-hero);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  position:relative; overflow:hidden;
}
.hero-main-inner { position:relative; z-index:1; }

/* Layout hero مع صورة الخبر */
.hero-main-layout {
  display:flex;
  flex-direction:row-reverse; /* الصورة يمين في RTL */
  gap:18px;
  align-items:stretch;
  margin-top:10px;
}
.hero-main-media {
  flex:0 0 42%;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 18px 55px rgba(15,23,42,0.9);
}
.hero-main-content {
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  gap:6px;
  justify-content:center;
}
.hero-main-content h1 { margin:6px 0 4px; font-size:24px; }
.hero-main-content p { margin:0; color:var(--text-muted); font-size:14px; }

@media (max-width:768px) {
  .hero-main-layout { flex-direction:column; }
  .hero-main-media { flex-basis:auto; }
  .hero-main-content h1 { font-size:20px; }
}

.hero-side {
  padding:14px 12px;
  border-radius:var(--radius-lg);
  background:radial-gradient(circle at top, rgba(15,23,42,0.96) 0, #020617 60%);
  border:1px solid rgba(55,65,81,0.86);
  box-shadow:var(--shadow-md);
}
.hero-side h2 { margin:0 0 10px; font-size:15px; }
.hero-news-item { padding:8px 0; border-top:1px solid rgba(30,64,175,0.4); }
.hero-news-item:first-of-type { border-top:0; padding-top:0; }
.hero-news-item-title { font-size:13px; margin:0 0 3px; }

.notice {
  padding:10px 11px; border-radius:var(--radius-md);
  border:1px solid rgba(251, 191, 36, 0.6);
  background:rgba(15, 23, 42, 0.9); color:#facc15;
  font-size:13px; margin:10px 0;
}

.single-wrap { padding:16px; }
.single-wrap h1 { margin:4px 0 8px; font-size:24px; }
.single-wrap .content { font-size:15px; color:#e5e7eb; }
.single-wrap .content p { margin:0 0 12px; }

.footer {
  padding:22px 0 26px;
  border-top:1px solid rgba(55, 65, 81, 0.95);
  background:radial-gradient(circle at top, #020617 0, #020617 40%, #020617 100%);
  color:var(--text-muted); font-size:13px;
}
.footer-inner { display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
textarea,
select {
  width:100%; padding:10px 11px;
  border-radius:14px; border:1px solid rgba(55, 65, 81, 0.95);
  background:rgba(15, 23, 42, 0.96); color:var(--text-main);
  font-family:inherit; font-size:14px;
}
input::placeholder, textarea::placeholder { color:#6b7280; }

.pagination { display:flex; gap:6px; flex-wrap:wrap; margin-top:14px; }
.pagination a, .pagination span {
  padding:6px 10px; border-radius:999px;
  border:1px solid rgba(55, 65, 81, 0.9);
  font-size:13px;
}
.pagination .current {
  background:linear-gradient(135deg, var(--accent-2), var(--accent));
  border-color:transparent;
}
