/* Campaigns Page Specific Styles */

/* Campaigns Hero Section */
.campaigns-hero {
  position: relative;
  padding: 120px 0 80px;
  color: white;
  text-align: center;
  overflow: hidden;
}

.campaigns-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #fbedc3, #ccb363, #c27e35, #76290b, #1e3226);
  z-index: -2;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide.bg1 {
  background-image: url('./public/our.png');
}

.hero-slide.bg2 {
  background-image: url('./public/bg2.jpeg');
}

.hero-slide.bg3 {
  background-image: url('./public/bg3.jpeg');
}

.campaigns-hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.campaigns-hero-content p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fbedc3;
}

.hero-stat p {
  font-size: 1rem;
  margin: 0;
  opacity: 0.9;
}

/* Campaign Categories */
.campaign-categories {
  padding: 3rem 0;
  background: #fbedc3;
}

.category-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: white;
  border: 2px solid #e5e7eb;
  color: #666;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #c27e35;
  border-color: #c27e35;
  color: #1e3226;
}

/* Featured Campaigns */
.featured-campaigns {
  padding: 5rem 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
  gap: 3rem;
}

.featured-campaign {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.featured-campaign:hover {
  transform: translateY(-5px);
}

.campaign-image {
  position: relative;
}

.campaign-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.campaign-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
}

.campaign-status.urgent {
  background: #ef4444;
  color: white;
}

.campaign-status.active {
  background: #c27e35;
  color: #1e3226;
}

.campaign-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #f59e0b;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.campaign-info {
  padding: 2rem;
}

.campaign-category {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.campaign-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1e3226;
}

.campaign-info p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.campaign-progress {
  margin-bottom: 2rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.raised {
  font-weight: 600;
  color: #c27e35;
}

.goal {
  color: #666;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: #c27e35;
  transition: width 0.3s ease;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.percentage {
  color: #c27e35;
  font-weight: 600;
}

.days-left {
  color: #666;
}

.campaign-metrics {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.metric {
  text-align: center;
}

.metric-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #c27e35;
}

.metric-label {
  font-size: 0.9rem;
  color: #666;
}

.campaign-actions {
  display: flex;
  gap: 1rem;
}

.donate-now-btn {
  background: #c27e35;
  color: #1e3226;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
}

.donate-now-btn:hover {
  background: #1e3226;
  color: #c27e35;
}

.share-btn {
  color: #c27e35;
  border: 2px solid #c27e35;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: #c27e35;
  color: #1e3226;
}

/* All Campaigns */
.all-campaigns {
  padding: 5rem 0;
  background: #f8fafc;
}

.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.campaign-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.campaign-card:hover {
  transform: translateY(-5px);
}

.campaign-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.campaign-content {
  padding: 1.5rem;
}

.campaign-content h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #1e3226;
}

.campaign-content p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.progress-info .raised {
  font-weight: 600;
  color: #c27e35;
}

.progress-info .goal {
  color: #666;
}

.campaign-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #666;
}

.campaign-donate-btn {
  background: #c27e35;
  color: #1e3226;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.campaign-donate-btn:hover {
  background: #1e3226;
  color: #c27e35;
}

/* How to Help Section */
.how-to-help {
  padding: 5rem 0;
}

.help-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.help-option {
  text-align: center;
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.help-option:hover {
  transform: translateY(-5px);
}

.help-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.help-option h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #1e3226;
}

.help-option p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.help-btn {
  background: #c27e35;
  color: #1e3226;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.help-btn:hover {
  background: #1e3226;
  color: #c27e35;
}

/* Campaigns CTA */
.campaigns-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, #1e3226, #c27e35);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-primary {
  background: #c27e35;
  color: #1e3226;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-primary:hover {
  background: white;
  color: #1e3226;
}

.cta-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-secondary:hover {
  background: white;
  color: #1e3226;
}

/* Responsive Design for Campaigns */
@media (max-width: 768px) {
  .campaigns-hero-content h1 {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 2rem;
  }

  .hero-stat h3 {
    font-size: 2rem;
  }

  .category-filters {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .campaign-metrics {
    gap: 1rem;
  }

  .campaign-actions {
    flex-direction: column;
  }

  .campaigns-grid {
    grid-template-columns: 1fr;
  }

  .campaign-details {
    flex-direction: column;
    gap: 0.5rem;
  }

  .help-options {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-primary,
  .cta-secondary {
    width: 100%;
    max-width: 300px;
  }
}
