/* Custom Church Theme Styles */

:root {
  --bs-primary: #155350;
  --bs-primary-rgb: 21, 83, 80;
  --bs-secondary: #d6a013;
  --bs-success: #198754;
  --bs-info: #0dcaf0;
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
  --bs-light: #f8f9fa;
  --bs-dark: #212529;
}

/* Override Bootstrap primary color */
.btn-primary {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #123d3b;
  border-color: #123d3b;
}

.bg-primary {
  background-color: var(--bs-primary) !important;
}

.text-primary {
  color: var(--bs-primary) !important;
}

.border-primary {
  border-color: var(--bs-primary) !important;
}

/* Featured Event Hero Section */
.featured-event-hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.featured-event-background {
  background-image: url("https://cdn.builder.io/api/v1/assets/92821239fd1b4b118c99c1503dde1d8f/image-078a2a?format=webp&width=1200");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(1px);
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.featured-event-overlay {
  background: linear-gradient(
    135deg,
    rgba(21, 83, 80, 0.85) 0%,
    rgba(33, 37, 41, 0.75) 50%,
    rgba(21, 83, 80, 0.9) 100%
  );
  backdrop-filter: blur(2px);
}

.featured-event-content {
  animation: fadeInUp 1s ease-out;
}

.featured-event-card {
  animation: fadeInRight 1s ease-out 0.3s both;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.featured-stat {
  padding: 0.75rem 0;
  border-left: 3px solid rgba(255, 255, 255, 0.3);
  padding-left: 1rem;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.85) !important;
}

.tracking-wide {
  letter-spacing: 0.05em;
}

.min-vh-75 {
  min-height: 75vh;
}

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

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

/* Featured event hover effects */
.featured-event-hero:hover .featured-event-background {
  transform: scale(1.02);
}

.featured-event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Button enhancements */
.btn-warning {
  background: linear-gradient(45deg, #d6a013 0%, #e8b225 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(214, 160, 19, 0.3);
  transition: all 0.3s ease;
  color: #fff;
}

.btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(214, 160, 19, 0.4);
  background: linear-gradient(45deg, #e8b225 0%, #d6a013 100%);
  color: #fff;
}

.btn-outline-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Responsive design */
@media (max-width: 991px) {
  .featured-event-hero {
    min-height: 80vh;
  }

  .featured-event-content .display-4 {
    font-size: 2.5rem;
  }

  .featured-event-content .lead {
    font-size: 1.1rem;
  }
}

@media (max-width: 767px) {
  .featured-event-hero {
    min-height: 70vh;
  }

  .featured-event-content .display-4 {
    font-size: 2rem;
  }

  .featured-event-content {
    text-align: center;
  }

  .featured-stat {
    text-align: center;
    border-left: none;
    border-top: 3px solid rgba(255, 255, 255, 0.3);
    padding-left: 0;
    padding-top: 1rem;
  }
}

/* Event Cards */
.event-card {
  transition: all 0.3s ease;
  border: none !important;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.15),
    0 10px 10px -5px rgba(0, 0, 0, 0.1) !important;
}

.event-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

/* Hover effects */
.hover-primary:hover {
  color: var(--bs-primary) !important;
}

/* Custom button styles */
.btn-ghost {
  background: transparent;
  border: none;
  color: #6c757d;
  padding: 0.375rem 0.75rem;
}

.btn-ghost:hover {
  color: var(--bs-primary);
  background-color: rgba(8, 127, 219, 0.1);
}

/* Line clamp utilities */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Price styling */
.price-free {
  color: #198754 !important;
  font-weight: 700;
}

.price-paid {
  color: var(--bs-primary) !important;
  font-weight: 700;
}

/* Badge positioning */
.badge-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
}

/* Form styling */
.form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(21, 83, 80, 0.25);
}

.form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

/* Loading states */
.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
  from {
    transform: rotate(0turn);
  }
  to {
    transform: rotate(1turn);
  }
}

/* Alert styles */
.alert-primary {
  color: #055190;
  background-color: #cce7ff;
  border-color: #b3d7ff;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .hero-section {
    min-height: 400px;
    padding: 2rem 0;
  }

  .display-3 {
    font-size: 2.5rem;
  }

  .event-card:hover {
    transform: none;
  }
}

/* Sticky elements */
.sticky-top {
  top: 0;
  z-index: 1020;
}

/* Custom shadows */
.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Payment method icons */
.payment-icon {
  width: 24px;
  height: 24px;
  margin-right: 0.5rem;
}

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

.fade-in-up {
  animation: fadeInUp 0.5s ease-out;
}

/* Event features grid */
.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.feature-dot {
  width: 8px;
  height: 8px;
  background-color: var(--bs-primary);
  border-radius: 50%;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

/* Organizer avatar */
.organizer-avatar {
  width: 48px;
  height: 48px;
  background-color: var(--bs-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
}

/* Registration form sections */
.attendee-section {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 1rem;
  margin-bottom: 1rem;
  position: relative;
}

.remove-attendee {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: #dc3545;
  padding: 0.25rem;
  border-radius: 0.25rem;
}

.remove-attendee:hover {
  background-color: rgba(220, 53, 69, 0.1);
}

/* Total amount section */
.total-section {
  background: linear-gradient(
    135deg,
    rgba(21, 83, 80, 0.1) 0%,
    rgba(21, 83, 80, 0.05) 100%
  );
  border: 1px solid rgba(21, 83, 80, 0.2);
  border-radius: 0.5rem;
  padding: 1rem;
}

/* Order summary styling */
.order-summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
}

.order-summary-item:not(:last-child) {
  border-bottom: 1px solid #dee2e6;
}

.order-total {
  font-weight: bold;
  font-size: 1.1rem;
  border-top: 2px solid #dee2e6;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

/* Pagination styling */
.pagination .page-link {
  color: var(--bs-primary);
  border-color: #dee2e6;
  padding: 0.5rem 0.75rem;
  transition: all 0.15s ease-in-out;
}

.pagination .page-link:hover {
  color: #fff;
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}

.pagination .page-item.disabled .page-link {
  color: #6c757d;
  background-color: #fff;
  border-color: #dee2e6;
  cursor: not-allowed;
}

.pagination .page-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(21, 83, 80, 0.25);
}

/* Pagination info styling */
#paginationInfo {
  font-size: 0.875rem;
  color: #6c757d;
}

/* Responsive pagination */
@media (max-width: 768px) {
  .pagination {
    font-size: 0.875rem;
  }

  .pagination .page-link {
    padding: 0.375rem 0.5rem;
  }

  #paginationSection {
    flex-direction: column;
    gap: 1rem;
  }

  #paginationInfo {
    text-align: center;
  }
}
