/*
Theme Name: Mosul Center for Strategic Studies
Theme URI: https://mosulcenter.org
Description: قالب WordPress احترافي لمركز الموصل للدراسات الاستراتيجية والمستقبلية - Modern Heritage Design
Version: 1.0.0
Author: Mosul Center
Author URI: https://mosulcenter.org
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mosul-center
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

/* ========================================
   Mosul Center WordPress Theme
   Modern Heritage Design with Al-Hadba Minaret
   ======================================== */

:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --secondary: #60a5fa;
  --background: #ffffff;
  --foreground: #1f2937;
  --muted: #e5e7eb;
  --muted-foreground: #6b7280;
  --border: #e5e7eb;
  --card-bg: #ffffff;
  --dark-bg: #0f172a;
  --dark-secondary: #1e293b;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.125rem;
}

.site-logo-text h1 {
  margin: 0;
  font-size: 1.125rem;
  color: var(--primary);
}

.site-logo-text p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Navigation */
.main-navigation {
  display: none;
}

@media (min-width: 1024px) {
  .main-navigation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .main-navigation a {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    border-radius: 0.375rem;
    transition: all 0.3s ease;
  }

  .main-navigation a:hover {
    color: var(--primary);
    background-color: var(--muted);
  }
}

/* Mobile Menu */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 100%);
}

.hero-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, var(--dark-bg) 50%, var(--dark-bg));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-content h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  color: rgba(241, 245, 249, 0.9);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  text-decoration: none;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 10px 15px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Sections */
section {
  padding: 5rem 0;
}

section.light {
  background-color: var(--background);
}

section.dark {
  background-color: var(--muted);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header::before {
  content: '';
  display: inline-block;
  width: 96px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

/* Cards */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Footer */
.site-footer {
  background-color: #1e293b;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--secondary);
  margin-bottom: 1rem;
}

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

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

.footer-section a {
  color: rgba(241, 245, 249, 0.7);
}

.footer-section a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(241, 245, 249, 0.5);
  font-size: 0.875rem;
}

/* Posts */
.post {
  margin-bottom: 2rem;
}

.post-title {
  font-size: 1.875rem;
  margin-bottom: 0.5rem;
}

.post-meta {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.post-content {
  line-height: 1.8;
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  section {
    padding: 3rem 0;
  }
}
