/*
Theme Name: أزهريون أكاديمية
Theme URI: https://azhariyyon.com
Description: ثيم احترافي لمنصة تحفيظ القرآن للأطفال - Azhariyyon Academy
Version: 1.0.0
Author: Azhariyyon Team
Author URI: https://azhariyyon.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: azhariyyon
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

:root {
  /* Primary Colors - Deep Teal */
  --primary: #1B7A5E;
  --primary-foreground: #ffffff;
  
  /* Secondary Colors - Vibrant Green */
  --secondary: #8BC34A;
  --secondary-foreground: #ffffff;
  
  /* Accent Colors - Gold */
  --accent: #D4AF37;
  --accent-foreground: #1B7A5E;
  
  /* Background Colors */
  --background: #f8f9f7;
  --foreground: #1B3A2E;
  --card-bg: #ffffff;
  --border-color: #E8E8E8;
  --muted: #5A7A6E;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  direction: rtl;
  font-family: 'Cairo', 'Tajawal', sans-serif;
}

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

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

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

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

/* Buttons */
.btn, button, input[type="button"], input[type="submit"] {
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 0.65rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 10px 30px rgba(27, 122, 94, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(27, 122, 94, 0.25);
}

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

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

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

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

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

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 30px rgba(27, 122, 94, 0.15);
  transform: translateY(-4px);
}

/* Typography */
p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.8;
}

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

@media (min-width: 768px) {
  section {
    padding: 4rem 0;
  }
}

/* Gradient utilities */
.gradient-primary {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
}

.gradient-accent {
  background: linear-gradient(to right, var(--primary), var(--accent), var(--secondary));
  color: white;
}

/* Shadow utilities */
.shadow-elegant {
  box-shadow: 0 10px 30px rgba(27, 122, 94, 0.15);
}

.shadow-gold {
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}

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

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  section {
    padding: 2rem 0;
  }
}

/* WordPress specific */
.wp-block-image {
  margin: 1.5rem 0;
}

.wp-block-image img {
  border-radius: 1rem;
}

/* Elementor overrides */
.elementor-container {
  direction: rtl;
}

.elementor-heading-title {
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
}

/* Menu */
.navbar {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: bold;
  color: var(--primary);
}

.navbar-logo img {
  width: 3rem;
  height: 3rem;
}

.navbar-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar-menu a {
  color: var(--foreground);
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-menu a:hover {
  color: var(--primary);
}

/* Footer */
.footer {
  background: linear-gradient(to bottom, var(--primary), #0D4A3A);
  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 h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

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

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

/* Print styles */
@media print {
  .navbar,
  .footer {
    display: none;
  }
}
