/* Custom CSS overrides for Voice Academy */

/* Dark mode specific styles - override all light gradients */
.theme-dark .courses-section,
.theme-dark .about-section,
.theme-dark .instructor-section {
  background: linear-gradient(180deg, #131c20, #0e161b) !important;
}

.theme-dark .cta-section {
  background: linear-gradient(135deg, #0a1e24, #14262d) !important;
}

.theme-dark .hero-bg-overlay {
  opacity: 0.3 !important;
}

.theme-dark .hero-gradient {
  background: linear-gradient(to bottom, transparent, transparent, hsla(200, 30%, 8%, 0.7)) !important;
}

.theme-dark .hero-title,
.theme-dark .hero-subtitle,
.theme-dark .hero-btn-secondary {
  color: #fff !important;
}

.theme-dark .hero-btn-secondary {
  border-color: hsla(0, 0%, 100%, 0.4) !important;
}

@media (min-width: 640px) {
  .nav-logo-img {
    height: 10rem;
  }
}

/* RTL/LTR fixes */
[dir=rtl] .instructor-text {
  text-align: right;
}

[dir=rtl] .mobile-nav-link {
  text-align: right;
}

[dir=rtl] .footer-links a {
  text-align: right;
}

/* Course footer gap fix */
.course-footer {
  justify-content: space-between;
  gap: 1rem;
}

/* Course card hover animations */
.course-card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    hsla(var(--secondary), 0.1),
    transparent
  );
  transition: left 0.5s ease;
  z-index: 0;
}

.course-card:hover {
  transform: translateY(-0.75rem) scale(1.04);
  box-shadow: 0 20px 60px hsla(var(--glow-secondary), 0.4);
  border-color: hsl(var(--secondary));
  background-color: hsla(var(--card), 0.95);
}

.course-card:hover::before {
  left: 100%;
}

.course-card > * {
  position: relative;
  z-index: 2;
}

.course-title {
  transition: all 0.3s ease;
}

.course-card:hover .course-title {
  color: hsl(var(--secondary));
  transform: translateX(0.25rem);
}

[dir=rtl] .course-card:hover .course-title {
  transform: translateX(-0.25rem);
}

.course-desc {
  transition: all 0.3s ease;
}

.course-card:hover .course-desc {
  color: hsl(var(--foreground));
}

.course-buy-btn {
  transition: all 0.3s ease;
}

.course-card:hover .course-buy-btn {
  transform: scale(1.05);
  box-shadow: 0 8px 30px hsla(var(--glow-secondary), 0.5);
}

.price-value {
  transition: all 0.3s ease;
}

.course-card:hover .price-value {
  transform: scale(1.1);
  color: hsl(var(--secondary));
}

.offer-badge-img {
  transition: all 0.3s ease;
}

.course-card:hover .offer-badge-img {
  transform: scale(1.2) rotate(5deg);
}

.course-type-badge {
  transition: all 0.3s ease;
}

.course-card:hover .course-type-badge {
  transform: scale(1.05);
  border-color: hsla(var(--secondary), 0.5);
}

/* Ripple effect on card hover */
.course-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, hsl(var(--secondary)), hsl(var(--primary)));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 2;
}

.course-card:hover::after {
  transform: scaleX(1);
}

/* Special glow for recitation courses */
.recitation-courses-section .course-card:hover {
  box-shadow: 0 20px 60px hsla(192, 70%, 30%, 0.5);
}

.recitation-courses-section .course-card:hover .course-title {
  color: #4ade80;
}

.recitation-courses-section .course-card:hover .course-desc {
  color: #fff !important;
}

.recitation-courses-section .course-card:hover .price-value {
  color: #4ade80;
}

/* Special glow for main courses section */
.courses-section .course-card:hover {
  box-shadow: 0 20px 60px hsla(192, 70%, 30%, 0.5);
}

.courses-section .course-card:hover .course-title {
  color: #4ade80;
}

.courses-section .course-card:hover .price-value {
  color: #4ade80;
}

/* Course type badge */

.course-type-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  background-color: transparent;
  border: 1px solid hsl(var(--secondary));
  color: hsl(var(--secondary));
  box-shadow: 0 4px 20px hsla(var(--glow-secondary), 0.3);
  z-index: 1;
}

[dir=rtl] .course-type-badge {
  right: auto;
  left: 0.5rem;
}

.badge-icon {
  width: 0.3125rem;
  height: 0.3125rem;
  border-radius: 50%;
  background-color: hsl(var(--secondary));
}

.badge-icon.live {
  background-color: #22c55e;
  animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}

/* Course price display */
.course-price {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.price-current {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-value {
  font-size: 1.875rem;
  font-weight: 900;
  color: hsl(var(--foreground));
}

.offer-badge-img {
  width: 1.75rem;
  height: auto;
  animation: pulse 2s infinite;
}

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

.price-unit {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-inline-start: 0.25rem;
}

.price-old {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.price-old-value {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-decoration: line-through;
  opacity: 0.7;
}

.price-offer {
  font-size: 0.75rem;
  color: hsl(var(--secondary));
  font-weight: 600;
  background-color: hsla(var(--secondary), 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
}

/* Recitation courses section price styling */
.recitation-courses-section .price-value {
  color: #fff;
}

.recitation-courses-section .price-unit {
  color: hsla(0, 0%, 100%, 0.7);
}

.recitation-courses-section .price-old-value {
  color: hsla(0, 0%, 100%, 0.6);
}

/* Recitation courses grid - 4 columns on larger screens */
@media (min-width: 1024px) {
  .recitation-courses-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.recitation-courses-section .price-value {
  color: #fff;
}

.recitation-courses-section .price-unit {
  color: hsla(0, 0%, 100%, 0.7);
}

.recitation-courses-section .price-old-value {
  color: hsla(0, 0%, 100%, 0.6);
}

/* Feature card as clickable link */
.feature-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  width: 100%;
  height: 100%;
}

.feature-link:hover {
  color: inherit;
}

.feature-link .feature-arrow-btn {
  margin-top: auto;
}
