/*
Theme Name: DramaLand
Theme URI: https://www.linkedin.com/in/omniabdm/
Author: OmNia AhMed
Author URI: https://www.linkedin.com/in/omniabdm/
Description: قالب ووردبريس احترافي لمواقع المسلسلات والأفلام والأنمي مع نظام اشتراكات متكامل
Version: 2.1.2
License: Proprietary License
License URI: https://www.linkedin.com/in/omniabdm/
Text Domain: dramaland
Tags: streaming, movies, series, anime, entertainment, rtl-language-support
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
*/

/* 
==================================================
DESIGN SYSTEM - DramaLand Unified Variables
Dark Mode Primary / Light Mode Secondary
==================================================
*/

:root {
  /* ========== Dark Mode Colors (Default) ========== */
  --bg-primary: #0a0a0f;
  --bg-secondary: #121218;
  --bg-tertiary: #1a1a23;
  --bg-card: #1c1c26;
  --bg-card-hover: #252532;

  --text-primary: #ffffff;
  --text-secondary: #b0b0c0;
  --text-muted: #707080;

  /* Accent Colors */
  --accent: #e50914;
  --accent-hover: #ff2a2a;
  --accent-glow: rgba(229, 9, 20, 0.4);
  --accent-secondary: #667eea;
  --accent-gold: #ffd700;

  /* Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-hover: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(255, 255, 255, 0.2);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #e50914 0%, #ff4757 100%);
  --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  --gradient-dark: linear-gradient(135deg,
      var(--bg-primary) 0%,
      var(--bg-tertiary) 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--accent-glow);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-card-hover: 0 10px 40px rgba(229, 9, 20, 0.3);

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 15px;
  --radius-xl: 20px;
  --radius-full: 50px;

  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Layout */
  --header-height: 70px;
  --bottom-nav-height: 60px;
  --container-max: 1400px;
  --sidebar-width: 300px;

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 500;
  --z-modal-backdrop: 900;
  --z-modal: 1000;
  --z-popover: 1100;
  --z-tooltip: 1200;
}

/* 
==================================================
COLOR THEME SYSTEM - Multiple Color Options
==================================================
*/

/* Theme: Red (Default - Current) */
body[data-theme="red"],
:root {
  --accent: #e50914;
  --accent-hover: #ff2a2a;
  --accent-glow: rgba(229, 9, 20, 0.4);
  --gradient-accent: linear-gradient(135deg, #e50914 0%, #ff4757 100%);
  --shadow-card-hover: 0 10px 40px rgba(229, 9, 20, 0.3);
}

/* Theme: Blue */
body[data-theme="blue"] {
  --accent: #1e90ff;
  --accent-hover: #4169e1;
  --accent-glow: rgba(30, 144, 255, 0.4);
  --gradient-accent: linear-gradient(135deg, #1e90ff 0%, #00bfff 100%);
  --shadow-card-hover: 0 10px 40px rgba(30, 144, 255, 0.3);
}

/* Theme: Green */
body[data-theme="green"] {
  --accent: #10b981;
  --accent-hover: #34d399;
  --accent-glow: rgba(16, 185, 129, 0.4);
  --gradient-accent: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --shadow-card-hover: 0 10px 40px rgba(16, 185, 129, 0.3);
}

/* Theme: Purple */
body[data-theme="purple"] {
  --accent: #8b5cf6;
  --accent-hover: #a78bfa;
  --accent-glow: rgba(139, 92, 246, 0.4);
  --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  --shadow-card-hover: 0 10px 40px rgba(139, 92, 246, 0.3);
}

/* Theme: Orange */
body[data-theme="orange"] {
  --accent: #f97316;
  --accent-hover: #fb923c;
  --accent-glow: rgba(249, 115, 22, 0.4);
  --gradient-accent: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  --shadow-card-hover: 0 10px 40px rgba(249, 115, 22, 0.3);
}

/* ========== Light Mode Override ========== */
body.light-mode {
  --bg-primary: #f5f5f7;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f0f0f2;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f8fa;

  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #888888;

  --glass-bg: rgba(0, 0, 0, 0.03);
  --glass-bg-hover: rgba(0, 0, 0, 0.06);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-border-hover: rgba(0, 0, 0, 0.12);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --shadow-card: 0 2px 15px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* 
==================================================
BASIC RESET & GLOBAL STYLES
==================================================
*/

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body, "Tajawal"), Tahoma, sans-serif;
  direction: rtl;
  text-align: right;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
  /* Add padding for fixed bottom nav on mobile */
  padding-bottom: 0;
}

@media (max-width: 768px) {
  body {
    padding-bottom: var(--bottom-nav-height);
  }
}

/* 
==================================================
TYPOGRAPHY
==================================================
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

/* 
==================================================
IMAGES & MEDIA
==================================================
*/

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

/* 
==================================================
LAYOUT - Container Classes
==================================================
*/

.container {
  max-width: 1200px;
  margin: 0 auto !important;
  padding: 0 20px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-full {
  max-width: 100%;
  padding: 0 20px;
}

@media (max-width: 576px) {

  .container,
  .container-wide,
  .container-full {
    padding: 0 15px;
  }
}

/* 
==================================================
LISTS
==================================================
*/

ul,
ol {
  list-style-position: inside;
  margin-bottom: 1rem;
}

ul {
  list-style-type: disc;
}

/* 
==================================================
BUTTONS
==================================================
*/

button,
.button,
input[type="submit"],
input[type="button"] {
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.3s ease;
}

button:hover,
.button:hover {
  transform: translateY(-2px);
}

/* 
==================================================
FORMS
==================================================
*/

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #667eea;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* 
==================================================
WORDPRESS CORE CLASSES
==================================================
*/

.alignleft {
  float: right;
  margin: 0 0 1rem 1.5rem;
}

.alignright {
  float: left;
  margin: 0 1.5rem 1rem 0;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.sticky {
  /* Styles for sticky posts */
}

.gallery-caption {
  font-size: 0.9rem;
  color: #666;
}

.bypostauthor {
  /* Styles for post author comments */
}

/* 
==================================================
UTILITY CLASSES
==================================================
*/

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

/* 
==================================================
RESPONSIVE BREAKPOINTS
==================================================
*/

@media (max-width: 1200px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.2rem;
  }
}

/* 
==================================================
ACCESSIBILITY
==================================================
*/

:focus {
  outline: 2px dashed #667eea;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 
==================================================
PRINT STYLES
==================================================
*/

@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* 404 Error Page Styles */
.error-404-container {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.error-404-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* رقم الخطأ */
.error-number {
  margin-bottom: 2rem;
}

.error-code {
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 900;
  line-height: 1;
  color: var(--primary-color, #2c3e50);
  margin: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* رسالة الخطأ */
.error-message {
  margin-bottom: 3rem;
}

.error-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  color: #2c3e50;
}

.error-description {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* أزرار التنقل */
.error-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* نموذج البحث */
.error-search {
  width: 100%;
  max-width: 500px;
}

.error-search .search-form {
  display: flex;
  gap: 0.5rem;
}

.error-search input[type="search"] {
  flex: 1;
  padding: 0.75rem 1.25rem;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 1rem;
}

.error-search button[type="submit"] {
  padding: 0.75rem 1.5rem;
  background: #2c3e50;
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s ease;
}

/* الروابط المفيدة */
.helpful-links {
  margin: 3rem 0;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 15px;
}

.helpful-links h3 {
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

.error-navigation ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.error-navigation a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.error-navigation a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* آخر المقالات */
.recent-posts-section {
  margin-top: 4rem;
}

.recent-posts-section h3 {
  margin-bottom: 2rem;
  color: #2c3e50;
}

.recent-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: left;
}

.recent-post-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.recent-post-item:hover {
  transform: translateY(-5px);
}

.post-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.recent-post-item .post-title {
  padding: 1rem 1rem 0.5rem;
  margin: 0;
  font-size: 1.1rem;
}

.recent-post-item .post-title a {
  color: #2c3e50;
  text-decoration: none;
}

.post-excerpt {
  padding: 0 1rem 1rem;
  color: #666;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .error-actions {
    width: 100%;
  }

  .error-navigation ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .recent-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* Page Template Styles */
.page-wrapper {
  padding: 3rem 0;
}

.content-area-wrapper {
  display: block;
  width: 100%;
}

.entry-header {
  margin-bottom: 2rem;
}

.entry-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
  text-align: center;
}

.featured-image {
  margin: 2rem auto;
  border-radius: 10px;
  overflow: hidden;
  max-width: 800px;
}

.entry-content {
  line-height: 1.8;
  color: #333;
  max-width: 800px;
  margin: 0 auto;
}

.entry-content p {
  margin-bottom: 1.5rem;
}

.page-links {
  margin-top: 2rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 5px;
}

/* Search Results Styles */
.search-results-wrapper {
  padding: 3rem 0;
}

.search-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 15px;
}

.page-title .search-query {
  font-weight: 700;
  font-style: italic;
}

.search-form-container {
  max-width: 600px;
  margin: 2rem auto 0;
}

.search-results-count {
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f8f9fa;
  border-left: 4px solid #667eea;
  border-radius: 5px;
}

.search-results-list {
  margin-bottom: 3rem;
}

.no-results-found {
  text-align: center;
  padding: 3rem 2rem;
}

.no-results-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.search-suggestions {
  margin: 2rem auto;
  max-width: 500px;
  text-align: left;
  padding: 2rem;
  background: #fff3cd;
  border-radius: 10px;
}

.search-suggestions ul {
  list-style: disc;
  padding-left: 2rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Sidebar Styles */
.sidebar {
  position: sticky;
  top: 2rem;
  align-self: start;
}

.sidebar-inner {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 15px;
}

.widget {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.widget:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.widget-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5rem;
}

.widget-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.widget li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

.widget a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
}

.widget a:hover {
  color: #667eea;
}

.post-date,
.post-count {
  display: block;
  font-size: 0.85rem;
  color: #999;
  margin-top: 0.25rem;
}

/* Tag Cloud */
.tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-cloud-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: white;
  border-radius: 20px;
  font-size: 0.9rem !important;
  transition: all 0.3s ease;
}

.tag-cloud-link:hover {
  background: #667eea;
  color: white !important;
  transform: translateY(-2px);
}

/* Author Bio Widget */
.author-bio-content {
  text-align: center;
}

.author-avatar {
  margin-bottom: 1rem;
}

.author-avatar img {
  border-radius: 50%;
  border: 3px solid #667eea;
}

.author-name {
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.author-description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  color: #667eea;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
  background: #667eea;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
  .content-area-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .entry-title {
    font-size: 2rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }
}

/**
 * ═══════════════════════════════════════════════════════════
 * SUBSCRIPTION PAGE STYLES - تنسيقات صفحة الاشتراك
 * ═══════════════════════════════════════════════════════════
 */

/* رأس صفحة الاشتراك */
.subscribe-header {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  margin-bottom: 60px;
  border-radius: 15px;
}

.subscribe-header .header-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

.subscribe-header h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  font-weight: 900;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.subscribe-header .subtitle {
  font-size: 1.3rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* شبكة بطاقات الأسعار */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
  padding: 20px;
}

/* بطاقة السعر */
.pricing-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 3px solid transparent;
}

.pricing-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  border-color: #667eea;
}

/* البطاقة المميزة */
.pricing-card.highlighted {
  border-color: #667eea;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  transform: scale(1.05);
}

.pricing-card.highlighted:hover {
  transform: scale(1.08) translateY(-15px);
}

/* شارة "الأكثر شعبية" */
.pricing-card .badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* شارة الخصم */
.pricing-card .discount-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #ff0050;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/* اسم الخطة */
.pricing-card .plan-name {
  font-size: 1.8rem;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 20px;
  text-align: center;
}

.pricing-card.highlighted .plan-name {
  color: #667eea;
}

/* السعر */
.pricing-card .price-container {
  text-align: center;
  margin: 30px 0;
  padding: 20px 0;
  border-top: 2px solid #f0f0f0;
  border-bottom: 2px solid #f0f0f0;
}

.pricing-card .currency {
  font-size: 1.5rem;
  color: #667eea;
  font-weight: 700;
  vertical-align: super;
}

.pricing-card .price {
  font-size: 4rem;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1;
}

.pricing-card.highlighted .price {
  color: #667eea;
}

.pricing-card .period {
  font-size: 1.2rem;
  color: #666;
  font-weight: 500;
}

/* قائمة المميزات */
.pricing-card .features-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.pricing-card .features-list li {
  padding: 12px 0;
  font-size: 1.05rem;
  color: #333;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}

.pricing-card .features-list li:last-child {
  border-bottom: none;
}

.pricing-card .features-list li:before {
  content: "✓";
  color: #667eea;
  font-weight: 900;
  font-size: 1.3rem;
  margin-left: 12px;
  flex-shrink: 0;
}

/* زر الاشتراك */
.pricing-card .subscribe-btn {
  display: block;
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  margin-top: 20px;
}

.pricing-card .subscribe-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.pricing-card.highlighted .subscribe-btn {
  background: linear-gradient(135deg, #ff0050 0%, #ff4081 100%);
  box-shadow: 0 8px 25px rgba(255, 0, 80, 0.4);
}

.pricing-card.highlighted .subscribe-btn:hover {
  box-shadow: 0 12px 35px rgba(255, 0, 80, 0.6);
  background: linear-gradient(135deg, #ff4081 0%, #ff0050 100%);
}

/* قسم الضمان */
.guarantee-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
  border-radius: 20px;
  margin: 60px 0;
  box-shadow: 0 10px 40px rgba(76, 175, 80, 0.3);
}

.guarantee-section .guarantee-icon {
  font-size: 70px;
  margin-bottom: 20px;
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.guarantee-section h3 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 15px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.guarantee-section p {
  font-size: 1.3rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* قسم المميزات الإضافية */
.feature-widget {
  background: #f9f9f9;
  padding: 40px;
  border-radius: 15px;
  margin: 30px 0;
  text-align: center;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
}

.feature-widget:hover {
  border-color: #667eea;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

/* Responsive - الموبايل */
@media (max-width: 768px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 10px;
  }

  .pricing-card {
    padding: 30px 20px;
  }

  .pricing-card.highlighted {
    transform: scale(1);
  }

  .subscribe-header h1 {
    font-size: 2rem;
  }

  .subscribe-header .subtitle {
    font-size: 1.1rem;
  }

  .pricing-card .price {
    font-size: 3rem;
  }

  .guarantee-section h3 {
    font-size: 1.8rem;
  }

  .guarantee-section p {
    font-size: 1.1rem;
  }
}

/* تحسينات إضافية */
.pricing-widget {
  margin-bottom: 30px;
}

.subscribe-widget {
  margin-bottom: 40px;
}

/* Container لصفحة الاشتراك */
.page-template-page-subscribe .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Dark Mode Support */
body.dark-mode .pricing-card {
  background: #1a1a1a;
  color: #e0e0e0;
  border-color: #333;
}

body.dark-mode .pricing-card .plan-name,
body.dark-mode .pricing-card .price {
  color: #e0e0e0;
}

body.dark-mode .pricing-card.highlighted .plan-name,
body.dark-mode .pricing-card.highlighted .price {
  color: #667eea;
}

body.dark-mode .pricing-card .features-list li {
  color: #ccc;
  border-bottom-color: #333;
}

body.dark-mode .feature-widget {
  background: #1a1a1a;
  border-color: #333;
}

/* تأثيرات خاصة */
.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
  background-size: 200% 100%;
  animation: gradient 3s ease infinite;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.pricing-card.highlighted::before {
  height: 8px;
  background: linear-gradient(90deg, #ff0050, #ff4081, #ff0050);
}

/* End of Responsive Design */

/* ═══════════════════════════════════════════════════════════
   HIDE HORIZONTAL SCROLLBAR - Global Fix
   ═══════════════════════════════════════════════════════════ */
.episodes-grid,
.poster-layout,
.wide-layout {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

.episodes-grid::-webkit-scrollbar,
.poster-layout::-webkit-scrollbar,
.wide-layout::-webkit-scrollbar,
.episodes-grid::-webkit-scrollbar-track,
.poster-layout::-webkit-scrollbar-track,
.wide-layout::-webkit-scrollbar-track,
.episodes-grid::-webkit-scrollbar-thumb,
.poster-layout::-webkit-scrollbar-thumb,
.wide-layout::-webkit-scrollbar-thumb {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}