/*
=================================================================
  Ride Awareness Brand Theme CSS
  Version: 1.0
  التاريخ: 14 فبراير 2026
  الوصف: ملف CSS كامل للهوية البصرية لمدونة قُد بوعي
=================================================================
*/

/* ==================== متغيرات الألوان ==================== */
:root {
  /* الألوان الأساسية */
  --primary-color: #00E5E5;          /* الفيروزي - اللون الرئيسي */
  --primary-hover: #00B8B8;          /* الفيروزي الداكن - عند التمرير */
  --secondary-color: #2E4057;        /* الأزرق الداكن - اللون الثانوي */
  --secondary-hover: #1F2A3D;        /* الأزرق الداكن جداً */
  
  /* الألوان المحايدة */
  --white: #FFFFFF;
  --black: #000000;
  --gray-light: #F5F5F5;
  --gray-medium: #CCCCCC;
  --gray-dark: #333333;
  
  /* ألوان الخلفيات */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-dark: #2E4057;
  
  /* ألوان النصوص */
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  --text-white: #FFFFFF;
  
  /* الظلال */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.25);
  
  /* الانتقالات */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* الأبعاد */
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --max-width: 1200px;
}

/* ==================== الخطوط ==================== */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

/* ==================== إعدادات عامة ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  direction: rtl;
  text-align: right;
}

/* ==================== العناوين ==================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'IBM Plex Sans Arabic', serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 2.75rem;
}

h3 {
  font-size: 2.25rem;
}

h4 {
  font-size: 1.875rem;
}

h5 {
  font-size: 1.5rem;
}

h6 {
  font-size: 1.25rem;
}

/* ==================== الفقرات والنصوص ==================== */
p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.8;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* ==================== الأزرار ==================== */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--black);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--black);
}

/* ==================== الهيدر (Header) ==================== */
.site-header {
  background-color: var(--white);
  padding: 1.5rem 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-normal);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo img {
  height: 60px;
  width: auto;
  transition: var(--transition-fast);
}

.site-logo:hover img {
  transform: scale(1.05);
}

/* ==================== القائمة (Navigation) ==================== */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-nav a {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 5px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-normal);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* ==================== Hero Section ==================== */
.hero-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,160L48,181.3C96,203,192,245,288,234.7C384,224,480,160,576,154.7C672,149,768,203,864,213.3C960,224,1056,192,1152,165.3C1248,139,1344,117,1392,106.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: bottom;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-section h1 {
  color: var(--white);
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section p {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

/* ==================== البطاقات (Cards) ==================== */
.card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-normal);
}

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

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-content {
  padding: 2rem;
}

.card-title {
  font-size: 1.75rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.card-link {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.card-link:hover {
  color: var(--primary-hover);
  transform: translateX(-5px);
}

/* ==================== الشبكة (Grid) ==================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ==================== الأقسام (Sections) ==================== */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ==================== الفوتر (Footer) ==================== */
.site-footer {
  background-color: var(--secondary-color);
  color: var(--text-white);
  padding: 4rem 0 2rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: var(--text-white);
  opacity: 0.8;
  transition: var(--transition-fast);
}

.footer-section a:hover {
  opacity: 1;
  color: var(--primary-color);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  opacity: 0.7;
}

/* ==================== أيقونات السوشال ميديا ==================== */
.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-link {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition-normal);
}

.social-link:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

/* ==================== Responsive Design ==================== */
@media (max-width: 992px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.875rem; }
  
  .hero-section h1 { font-size: 3rem; }
  
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }
  
  .hero-section {
    padding: 5rem 0;
  }
  
  .hero-section h1 { font-size: 2.5rem; }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  
  .header-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* ==================== نهاية الملف ==================== */
