/* Daily Darshan Page - Enterprise Level Styling */

/* Main Content Area */
main {
  padding-top: 120px;
  min-height: calc(100vh - 75px - 400px);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Page Header */
.container h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 8px;
  text-align: center;
  background: linear-gradient(135deg, #6C4AB6, #8D72E1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.container h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #6C4AB6, #8D72E1);
  border-radius: 2px;
}

.container h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #4a5568;
  margin: 32px 0 24px 0;
  text-align: center;
  position: relative;
  padding-bottom: 12px;
}

.container h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #6C4AB6, #8D72E1);
  border-radius: 2px;
}

/* Alert Messages */
.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  border-left: 4px solid;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert.success {
  background: linear-gradient(135deg, #f0fff4, #e6fffa);
  color: #065f46;
  border-left-color: #10b981;
}

.alert.error {
  background: linear-gradient(135deg, #fef2f2, #fdf2f8);
  color: #991b1b;
  border-left-color: #ef4444;
}

/* Image Grid */
.img-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  margin-top: 32px;
}

/* Image Cards */
.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(108, 74, 182, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #6C4AB6, #8D72E1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(108, 74, 182, 0.15);
  border-color: rgba(108, 74, 182, 0.2);
}

/* Images */
.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card:hover img {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Image Captions */
figcaption {
  margin-top: 16px !important;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 8px;
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500;
  border-left: 3px solid #6C4AB6;
  position: relative;
}

figcaption::before {
  content: '🖼️';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  padding: 4px;
  border-radius: 50%;
  font-size: 0.8rem;
}

/* Empty State */
.img-grid p:only-child {
  text-align: center;
  color: #718096;
  font-size: 1.1rem;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 16px;
  border: 2px dashed rgba(108, 74, 182, 0.2);
  grid-column: 1 / -1;
  position: relative;
}

.img-grid p:only-child::before {
  content: '📷';
  font-size: 3rem;
  display: block;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* Loading State for Images */
.card img {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  main {
    padding-top: 100px;
  }
  
  .container h2 {
    font-size: 2rem;
  }
  
  .container h3 {
    font-size: 1.5rem;
  }
  
  .img-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .card img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .container h2 {
    font-size: 1.8rem;
  }
  
  .img-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .card {
    padding: 12px;
  }
  
  .card img {
    height: 180px;
  }
}

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

.card {
  animation: fadeInUp 0.6s ease-out;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; } 