/* Unique Hero for Prayer */
.hero-prayer {
  height: 70vh;
  min-height: 600px;
  background: linear-gradient(
      135deg,
      rgba(108, 74, 182, 0.85),
      rgba(90, 58, 158, 0.85)
    ),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80")
      center/cover no-repeat fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 80px;
  overflow: hidden;
}

/* Prayer Section Container */
.prayer-section {
  padding: 80px 0;
  background-color: var(--light-color);
}

.dark-mode .prayer-section {
  background-color: var(--light-color);
}

/* Prayer Grid Layout */
.prayer-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (max-width: 991.98px) {
  .prayer-container {
    grid-template-columns: 1fr;
  }
}

/* Prayer Form Styles */
.prayer-form-container {
  background-color: var(--white-color);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(108, 74, 182, 0.1);
}

.dark-mode .prayer-form-container {
  background-color: var(--light-color);
  border-color: rgba(255, 255, 255, 0.1);
}

.prayer-form h3 {
  font-size: 1.75rem;
  margin-bottom: 25px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 15px;
}

.prayer-form h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.dark-mode .prayer-form h3 {
  color: var(--primary-light);
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
  color: var(--black-color);
}

.dark-mode .form-label {
  color: var(--dark-color);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid rgba(108, 74, 182, 0.2);
  transition: var(--transition);
  background-color: var(--white-color);
  color: var(--black-color);
}

.dark-mode .form-control {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--dark-color);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(108, 74, 182, 0.1);
  outline: none;
}

textarea.form-control {
  min-height: 180px;
  resize: vertical;
}

.privacy-note {
  font-size: 0.875rem;
  color: var(--gray-color);
  margin-top: 25px;
  line-height: 1.6;
}

.dark-mode .privacy-note {
  color: rgba(255, 255, 255, 0.6);
}

/* Prayer Options */
.prayer-options {
  margin: 25px 0;
}

.prayer-option {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 12px 15px;
  border-radius: 8px;
  transition: var(--transition);
  background-color: rgba(108, 74, 182, 0.03);
}

.dark-mode .prayer-option {
  background-color: rgba(108, 74, 182, 0.1);
}

.prayer-option:hover {
  background-color: rgba(108, 74, 182, 0.08);
}

.prayer-option input {
  margin-right: 12px;
  accent-color: var(--primary-color);
}

.prayer-option label {
  cursor: pointer;
  color: var(--black-color);
}

.dark-mode .prayer-option label {
  color: var(--dark-color);
}

/* Prayer Wall Styles */
.prayer-wall-container {
  background-color: var(--white-color);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(108, 74, 182, 0.1);
}

.dark-mode .prayer-wall-container {
  background-color: var(--light-color);
  border-color: rgba(255, 255, 255, 0.1);
}

.prayer-wall h3 {
  font-size: 1.75rem;
  margin-bottom: 25px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 15px;
}

.prayer-wall h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.dark-mode .prayer-wall h3 {
  color: var(--primary-light);
}

.prayer-card {
  background-color: rgba(108, 74, 182, 0.05);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  transition: var(--transition);
  border-left: 4px solid var(--primary-color);
  position: relative;
}

.dark-mode .prayer-card {
  background-color: rgba(108, 74, 182, 0.1);
}

.prayer-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.prayer-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--gray-color);
  align-items: center;
}

.dark-mode .prayer-meta {
  color: rgba(255, 255, 255, 0.6);
}

.prayer-name {
  font-weight: 600;
  color: var(--primary-color);
}

.dark-mode .prayer-name {
  color: var(--primary-light);
}

.prayer-date {
  opacity: 0.8;
}

.prayer-content {
  margin-bottom: 20px;
  line-height: 1.7;
  color: var(--black-color);
}

.dark-mode .prayer-content {
  color: var(--dark-color);
}

.prayer-actions {
  display: flex;
  gap: 20px;
  border-top: 1px solid rgba(108, 74, 182, 0.1);
  padding-top: 15px;
}

.dark-mode .prayer-actions {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.prayer-action-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  padding: 6px 12px;
  border-radius: 6px;
}

.dark-mode .prayer-action-btn {
  color: var(--primary-light);
}

.prayer-action-btn:hover {
  color: var(--primary-dark);
  background-color: rgba(108, 74, 182, 0.1);
}

/* Live Prayer Section */
.live-prayer {
  background: linear-gradient(
    135deg,
    rgba(108, 74, 182, 0.03),
    rgba(248, 180, 0, 0.03)
  );
  padding: 80px 50px;
  margin-bottom: 60px;
  border-radius: 12px;
  border-top: 1px solid rgba(108, 74, 182, 0.1);
  border-bottom: 1px solid rgba(108, 74, 182, 0.1);
}

.dark-mode .live-prayer {
  background: linear-gradient(
    135deg,
    rgba(108, 74, 182, 0.05),
    rgba(248, 180, 0, 0.05)
  );
  border-color: rgba(255, 255, 255, 0.1);
}

.prayer-times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.prayer-time-card {
  background-color: var(--white-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(108, 74, 182, 0.1);
}

.dark-mode .prayer-time-card {
  background-color: var(--light-color);
  border-color: rgba(255, 255, 255, 0.1);
}

.prayer-time-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.prayer-time-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.prayer-time-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--black-color);
}

.dark-mode .prayer-time-title {
  color: var(--dark-color);
}

.prayer-time-schedule {
  color: var(--gray-color);
  margin-bottom: 20px;
  line-height: 1.7;
}

.dark-mode .prayer-time-schedule {
  color: rgba(255, 255, 255, 0.7);
}

.current-prayer {
  background-color: var(--primary-light);
  color: var(--white-color);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 500;
  display: inline-block;
  margin-top: 15px;
}

/* Ad Space */
.ad-space {
  background-color: rgba(248, 180, 0, 0.1);
  border: 1px dashed var(--secondary-color);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin: 60px 0;
  color: var(--gray-color);
}

.dark-mode .ad-space {
  background-color: rgba(248, 180, 0, 0.05);
  border-color: var(--secondary-dark);
  color: rgba(255, 255, 255, 0.6);
}

.ad-space-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--black-color);
}

.dark-mode .ad-space-title {
  color: var(--dark-color);
}

.ad-space-text {
  max-width: 700px;
  margin: 0 auto 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-prayer {
    height: 50vh;
    min-height: 400px;
    margin-bottom: 50px;
  }

  .prayer-form-container,
  .prayer-wall-container {
    padding: 30px;
  }

  .prayer-times-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .hero-prayer {
    height: 40vh;
    min-height: 300px;
  }

  .prayer-form-container,
  .prayer-wall-container {
    padding: 25px;
  }

  .prayer-times-grid {
    grid-template-columns: 1fr;
  }

  .prayer-card {
    padding: 20px;
  }

  .prayer-actions {
    gap: 15px;
    flex-wrap: wrap;
  }
}

/* ============================================= */
/* MOBILE RESPONSIVE STYLES (0-767.98px) */
/* ============================================= */
@media (max-width: 767.98px) {
  /* Prayer Hero Section */
  .hero-prayer {
    height: 50vh !important;
    min-height: 400px !important;
    margin-bottom: 40px;
    background-attachment: scroll !important;
  }

  /* Prayer Section Container */
  .prayer-section {
    padding: 50px 0;
  }

  /* Prayer Grid Layout */
  .prayer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
  }

  /* Prayer Form Styles */
  .prayer-form-container {
    padding: 25px;
  }

  .prayer-form h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-control {
    padding: 12px 15px;
  }

  textarea.form-control {
    min-height: 150px;
  }

  /* Prayer Options */
  .prayer-options {
    margin: 20px 0;
  }

  .prayer-option {
    padding: 10px 12px;
    margin-bottom: 12px;
  }

  /* Prayer Wall Styles */
  .prayer-wall-container {
    padding: 25px;
  }

  .prayer-wall h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
  }

  .prayer-card {
    padding: 20px;
    margin-bottom: 20px;
  }

  .prayer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
  }

  .prayer-actions {
    gap: 12px;
    flex-wrap: wrap;
  }

  .prayer-action-btn {
    font-size: 0.85rem;
    padding: 5px 10px;
  }

  /* Live Prayer Section */
  .live-prayer {
    padding: 50px 25px;
    margin-bottom: 40px;
  }

  .prayer-times-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .prayer-time-card {
    padding: 25px;
  }

  .prayer-time-icon {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .prayer-time-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  /* Ad Space */
  .ad-space {
    padding: 30px 20px;
    margin: 40px 0;
  }

  .ad-space-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }
}

/* ============================================= */
/* SMALL MOBILE DEVICES (0-575.98px) */
/* ============================================= */
@media (max-width: 575.98px) {
  /* Prayer Hero Section */
  .hero-prayer {
    height: 40vh !important;
    min-height: 350px !important;
  }

  /* Prayer Form Styles */
  .prayer-form h3,
  .prayer-wall h3 {
    font-size: 1.4rem;
  }

  /* Prayer Card */
  .prayer-card {
    padding: 18px;
  }

  /* Prayer Times */
  .prayer-time-card {
    padding: 20px;
  }
}

/* ============================================= */
/* ORIENTATION SPECIFIC STYLES */
/* ============================================= */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-prayer {
    height: 60vh !important;
    min-height: 350px !important;
  }
}

/* ============================================= */
/* TOUCH DEVICE SPECIFIC STYLES */
/* ============================================= */
@media (hover: none) and (pointer: coarse) {
  /* Enhance touch targets */
  .prayer-action-btn,
  .prayer-option {
    min-height: 44px;
  }

  /* Disable hover effects on touch devices */
  .prayer-card:hover,
  .prayer-time-card:hover,
  .prayer-option:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}

/* ============================================= */
/* UTILITY CLASSES FOR MOBILE */
/* ============================================= */
@media (max-width: 767.98px) {
  .mobile-stack {
    flex-direction: column !important;
  }

  .mobile-full-width {
    width: 100% !important;
  }

  .mobile-text-center {
    text-align: center !important;
  }

  .mobile-mt-20 {
    margin-top: 20px !important;
  }

  .mobile-px-15 {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}
