/* ========================================
   SALAH SLIDESHOW SECTION STYLES
   ======================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

:root {
  --salah-primary: #10b981;
  --salah-primary-dark: #059669;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --accent-emerald: #10b981;
  --accent-teal: #14b8a6;
  --white: #ffffff;
  --border-color: #e5e7eb;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.rev-salah-section-title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.rev-salah-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 2px;
}

.rev-salah-section {
  padding: 3rem 0 5rem;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  min-height: 100vh;
}

.rev-salah-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.rev-salah-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

.rev-salah-slideshow {
  max-width: 900px;
  margin: 2rem auto;
  position: relative;
  padding-bottom: 10px;
}

/* ========================================
   SLIDE STYLES
   ======================================== */
.rev-salah-slide {
  display: none;
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  min-height: 500px;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.rev-salah-slide.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
  animation: slideInSalah 0.4s ease;
}

.rev-salah-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #10b981, #059669);
}

@keyframes slideInSalah {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.rev-salah-step-number {
  display: inline-flex;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-lg);
}

.rev-salah-step-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #059669;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

/* ========================================
   ILLUSTRATION/DEMONSTRATION STYLES
   ======================================== */
.rev-salah-illustration {
  width: 100%;
  max-width: 400px;
  height: 300px;
  margin: 1.5rem auto;
  background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(5rem, 10vw, 8rem);
  border: 3px solid #14b8a6;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.rev-salah-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-xl);
}

.rev-salah-illustration video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.rev-salah-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.rev-salah-arabic {
  background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  direction: rtl;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin: 1.5rem 0;
  border: 2px solid #14b8a6;
  font-weight: 600;
  line-height: 2;
}

.rev-salah-transliteration {
  background: #f8fafc;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  font-style: italic;
  color: var(--text-secondary);
  margin: 1rem 0;
  border-left: 4px solid #10b981;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
}

.rev-salah-translation {
  background: #f1f5f9;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  margin: 1rem 0;
  border-left: 4px solid #059669;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
}

/* ========================================
   NOTIFICATION BOXES
   ======================================== */
.rev-salah-tip {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border: 2px solid #3b82f6;
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.rev-salah-tip-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.rev-salah-tip-text {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: #1e40af;
  font-weight: 500;
  line-height: 1.6;
}

.rev-salah-note {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid #f59e0b;
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.rev-salah-note-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.rev-salah-note-text {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: #92400e;
  font-weight: 500;
  line-height: 1.6;
}

.rev-salah-warning {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 2px solid #ef4444;
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.rev-salah-warning-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.1rem; /* Align with text baseline */
}

.rev-salah-warning-text {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: #991b1b;
  font-weight: 500;
  line-height: 1.6;
  flex: 1;
}

.rev-salah-list {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  list-style-type: disc;
}

.rev-salah-list li {
  margin-bottom: 0.5rem;
}

.rev-salah-list li:last-child {
  margin-bottom: 0;
}

.rev-salah-info-box {
  background: #f8fafc;
  border-left: 4px solid #10b981;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
}

.rev-salah-info-box h4 {
  color: #059669;
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  margin-bottom: 1rem;
  font-weight: 700;
}

.rev-salah-info-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rev-salah-info-box li {
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
  font-size: clamp(0.95rem, 2vw, 1.075rem);
  color: var(--text-primary);
  line-height: 1.6;
}

.rev-salah-info-box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
  font-size: 1.125rem;
}

/* ========================================
   NAVIGATION CONTROLS
   ======================================== */
.rev-salah-controls {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-top: 2px solid var(--border-color);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.rev-salah-nav-btn {
  background: var(--salah-primary);
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
  min-width: 100px;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.rev-salah-nav-btn:hover:not(:disabled) {
  background: var(--salah-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.rev-salah-nav-btn:active:not(:disabled) {
  transform: translateY(0);
}

.rev-salah-nav-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

/* ========================================
   PROGRESS SECTION
   ======================================== */
.rev-salah-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.rev-salah-counter {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--salah-primary-dark);
  white-space: nowrap;
}

.rev-salah-progress-bar {
  width: 100%;
  max-width: 300px;
  height: 8px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.rev-salah-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 10px;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* ========================================
   INDICATOR DOTS
   ======================================== */
.rev-salah-indicator-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.rev-salah-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.rev-salah-dot:hover {
  background: #9ca3af;
  transform: scale(1.1);
}

.rev-salah-dot.active {
  background: var(--salah-primary);
  transform: scale(1.4);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  border-color: var(--salah-primary);
}

/* ========================================
   SWIPE INDICATOR
   ======================================== */
.rev-salah-swipe-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 3rem;
  z-index: 10;
}

.rev-salah-swipe-hint.show {
  opacity: 0.3;
  animation: swipeHintSalah 0.5s ease;
}

@keyframes swipeHintSalah {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-30%, -50%); }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets */
@media (max-width: 768px) {
  .rev-salah-section {
    padding: 2rem 0 3rem;
  }

  .rev-salah-slideshow {
    padding-bottom: 10px;
  }

  .rev-salah-slide {
    min-height: 450px;
  }

  .rev-salah-illustration {
    height: 250px;
    max-width: 100%;
  }

  .rev-salah-controls {
    padding: 0.75rem;
  }

  .rev-salah-nav-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    min-width: 80px;
  }

  .rev-salah-indicator-dots {
    display: none;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  .rev-salah-section {
    padding: 1.5rem 0 2rem;
  }

  .rev-salah-slideshow {
    padding-bottom: 10px;
  }

  .rev-salah-slide {
    padding: 1.5rem 1rem;
    min-height: 400px;
    border-radius: var(--radius-xl);
  }

  .rev-salah-step-number {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .rev-salah-illustration {
    height: 200px;
    margin: 1rem auto;
  }

  .rev-salah-arabic {
    padding: 1rem;
    font-size: 1.25rem;
  }

  .rev-salah-tip,
  .rev-salah-note,
  .rev-salah-warning {
    padding: 0.875rem 1rem;
  }

  .rev-salah-info-box {
    padding: 1rem;
  }

  .rev-salah-controls {
    padding: 0.625rem 0.5rem;
    gap: 0.5rem;
  }

  .rev-salah-nav-btn {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    min-width: 70px;
  }

  .rev-salah-nav-btn .btn-text {
    display: none;
  }

  .rev-salah-nav-btn .btn-icon {
    font-size: 1.25rem;
  }

  .rev-salah-progress-bar {
    max-width: 120px;
  }

  .rev-salah-counter {
    font-size: 0.75rem;
  }
}

/* Very Small Screens */
@media (max-width: 360px) {
  .rev-salah-slide {
    padding: 1rem 0.75rem;
  }

  .rev-salah-nav-btn {
    min-width: 50px;
    padding: 0.5rem;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .rev-salah-controls,
  .rev-salah-indicator-dots {
    display: none;
  }

  .rev-salah-slide {
    display: block !important;
    page-break-after: always;
    box-shadow: none;
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.rev-salah-nav-btn:focus-visible,
.rev-salah-dot:focus-visible {
  outline: 3px solid var(--salah-primary);
  outline-offset: 3px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .rev-salah-slide,
  .rev-salah-nav-btn,
  .rev-salah-dot,
  .rev-salah-progress-fill {
    animation: none !important;
    transition: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .rev-salah-slide {
    border: 2px solid var(--text-primary);
  }
  
  .rev-salah-nav-btn {
    border: 2px solid var(--text-primary);
  }
}
