/* ===== PariPulse Egypt - Main Stylesheet ===== */
/* Colors matching original PariPulse: Dark Theme + Coral Red (#FF5252) + White */

:root {
  --primary-red: #FF5252;
  --dark-red: #E53935;
  --light-red: #FF6B6B;
  --accent-red: #D32F2F;
  --deep-red: #B71C1C;
  --bg-dark: #0f0f1a;
  --bg-dark-secondary: #1a1a2e;
  --bg-card: #1e1e32;
  --bg-card-hover: #252540;
  --bg-input: #2a2a42;
  --white: #FFFFFF;
  --text-white: #FFFFFF;
  --text-gray: #B0B0C0;
  --text-muted: #7a7a90;
  --border-dark: #2d2d45;
  --gold: #FFD700;
  --green: #4CAF50;
  --shadow: 0 4px 15px rgba(255, 82, 82, 0.2);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.8;
  direction: rtl;
  overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--white);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--text-gray);
}

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

a:hover {
  color: var(--light-red);
}

/* ===== Header & Navigation ===== */
.header {
  background: var(--bg-dark);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-dark);
}

.header-top {
  background: var(--primary-red);
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--white);
  text-align: center;
}

.header-top a {
  color: var(--gold);
  font-weight: 600;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 30px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 45px;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
}

.logo-text span {
  color: var(--primary-red);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 5px;
}

.nav-links li a {
  color: var(--text-gray);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links li a:hover,
.nav-links li a.active {
  background: rgba(255, 82, 82, 0.15);
  color: var(--primary-red);
}

.nav-buttons {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--dark-red);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 82, 82, 0.4);
  color: var(--white);
}

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

.btn-secondary:hover {
  background: var(--primary-red);
  color: var(--white);
  transform: translateY(-2px);
}

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

.btn-red:hover {
  background: var(--dark-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.btn-outline:hover {
  background: var(--primary-red);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.15rem;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 40%, #1a0a0a 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 82, 82, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 82, 82, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero-text h1 span {
  color: var(--primary-red);
}

.hero-text p {
  color: var(--text-gray);
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-red);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-image {
  text-align: center;
  position: relative;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  color: var(--white);
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ===== Container ===== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--bg-dark-secondary);
}

.section-red {
  background: linear-gradient(135deg, var(--accent-red), var(--primary-red));
  color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 15px;
}

.section-title p {
  color: var(--text-gray);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.section-red .section-title h2,
.section-red .section-title p {
  color: var(--white);
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 35px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-dark);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red), var(--light-red));
  transform: scaleX(0);
  transition: var(--transition);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card-hover);
  border-color: var(--primary-red);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-red), var(--light-red));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--white);
}

.feature-card h3 {
  color: var(--white);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* ===== Download Section ===== */
.download-section {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a0a0a 50%, var(--bg-dark-secondary) 100%);
  padding: 100px 0;
  position: relative;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.download-info h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.download-info p {
  color: var(--text-gray);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.download-steps {
  list-style: none;
  margin-bottom: 30px;
}

.download-steps li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  color: var(--text-gray);
}

.step-number {
  width: 35px;
  height: 35px;
  background: var(--primary-red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.download-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* ===== Table Styles ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin: 30px 0;
}

.info-table thead {
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
}

.info-table th {
  color: var(--white);
  padding: 18px 20px;
  text-align: right;
  font-weight: 600;
}

.info-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-dark);
  color: var(--text-gray);
  background: var(--bg-card);
}

.info-table tr:nth-child(even) td {
  background: var(--bg-dark-secondary);
}

.info-table tr:hover td {
  background: var(--bg-card-hover);
}

/* ===== Bonus Section ===== */
.bonus-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.bonus-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 35px;
  border: 1px solid var(--border-dark);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.bonus-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary-red), transparent);
  opacity: 0.15;
  border-radius: 0 0 0 100%;
}

.bonus-card:hover {
  border-color: var(--primary-red);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.bonus-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-red);
  margin-bottom: 10px;
}

.bonus-card h3 {
  margin-bottom: 15px;
  color: var(--white);
}

.bonus-card ul {
  list-style: none;
  margin-bottom: 20px;
}

.bonus-card ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-dark);
  position: relative;
  padding-right: 25px;
  color: var(--text-gray);
}

.bonus-card ul li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--green);
  font-weight: 700;
}

/* ===== FAQ Section ===== */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 15px;
  border: 1px solid var(--border-dark);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary-red);
}

.faq-question {
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary-red);
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  color: var(--text-gray);
}

.faq-item.active .faq-answer {
  padding: 0 25px 20px;
  max-height: 500px;
}

/* ===== Footer ===== */
.footer {
  background: #0a0a14;
  color: var(--white);
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 15px;
  font-size: 0.95rem;
}

.footer h4 {
  color: var(--primary-red);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-red);
  padding-right: 5px;
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-keywords {
  margin-top: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
  line-height: 2;
}

/* ===== Article Styles ===== */
.article-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 30px;
}

.article-content h1 {
  font-size: 2.2rem;
  color: var(--primary-red);
  margin-bottom: 20px;
}

.article-content h2 {
  color: var(--white);
  margin-top: 40px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-dark);
}

.article-content h3 {
  color: var(--text-white);
  margin-top: 30px;
}

.article-content img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 20px 0;
}

.article-content ul, .article-content ol {
  margin: 15px 0;
  padding-right: 30px;
  color: var(--text-gray);
}

.article-content li {
  margin-bottom: 10px;
}

.article-meta {
  display: flex;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-dark);
}

/* ===== Blog Cards ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-red);
}

.blog-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
}

.blog-card-content {
  padding: 25px;
}

.blog-card-content h3 {
  margin-bottom: 10px;
}

.blog-card-content h3 a {
  color: var(--white);
}

.blog-card-content h3 a:hover {
  color: var(--primary-red);
}

.blog-card-content p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--accent-red), var(--primary-red));
  padding: 60px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: var(--bg-dark-secondary);
  padding: 15px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-dark);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb span {
  color: var(--primary-red);
  font-weight: 600;
}

/* ===== Rating Stars ===== */
.rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 10px 0;
}

.stars {
  color: var(--gold);
  font-size: 1.2rem;
}

.rating-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Mobile Menu ===== */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== App Card (Hero) ===== */
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
}

.app-card:hover {
  border-color: var(--primary-red);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .download-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-buttons {
    display: none;
  }
  
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  
  .hero {
    padding: 50px 0;
    min-height: auto;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .bonus-cards {
    grid-template-columns: 1fr;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.6s ease forwards;
}

/* ===== Floating CTA ===== */
.floating-cta {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-cta .btn {
  box-shadow: 0 5px 20px rgba(255, 82, 82, 0.4);
  animation: pulse 2s infinite;
}

/* ===== Scroll to top ===== */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--primary-red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
  z-index: 999;
  border: none;
  font-size: 1.2rem;
}

.scroll-top.visible {
  opacity: 1;
}

.scroll-top:hover {
  background: var(--dark-red);
  transform: translateY(-3px);
}

/* ===== Selection ===== */
::selection {
  background: var(--primary-red);
  color: var(--white);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-red);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-red);
}
