/* ==========================================================================
   Campaigns Page Styles
   ========================================================================== */

/* Campaigns Page Layout */
.campaigns-page-container {
  width: 100%;
}

/* Hero Section */
.campaigns-hero-section {
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

.hero-background-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/campaign-1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.campaigns-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(237, 219, 128, 0.7) 0%,
    rgba(161, 174, 28, 0.8) 33%,
    rgba(77, 101, 40, 0.8) 66%,
    rgba(19, 44, 23, 0.9) 100%
  );
  z-index: 2;
}

.campaigns-hero-content {
  position: relative;
  z-index: 3;
  text-align: left;
  color: #fff;
  padding: 60px 20px;
  width: 100%;
  align-items: end;
}

.campaigns-hero-title {
  font-family: 'Space Mono', 'Consolas', 'Monaco', monospace;
  font-size: 4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.campaigns-hero-subtitle {
  font-size: 1.5rem;
  color: #f8f9fa;
  margin: 0;
  line-height: 1.4;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Campaigns Grid Section */
.campaigns-grid-section {
  padding: 80px 0;
  background: #fff;
}

.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

/* Campaign Card Detailed */
.campaign-card-detailed {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.campaign-card-detailed:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.campaign-card-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.campaign-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.campaign-card-detailed:hover .campaign-card-image img {
  transform: scale(1.05);
}

.campaign-card-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
}

.campaign-status {
  background: #28a745;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-shadow: none;
}

.campaign-card-content {
  padding: 30px;
}

.campaign-card-title {
  font-family: 'Space Mono', 'Consolas', 'Monaco', monospace;
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.3;
}

.campaign-card-description {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.campaign-details {
  margin-bottom: 25px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.campaign-long-description {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* Campaign Stats */
/* .campaign-stats {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

.campaign-progress-section {
  margin-bottom: 20px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.progress-label span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
} */

/* .progress-percentage {
  color: #007cba;
} */

/* .progress-bar-detailed {
  width: 100%;
  height: 10px;
  background: #e9ecef;
  border-radius: 5px;
  overflow: hidden;
} */

/* .progress-bar-detailed .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #007cba, #28a745);
  border-radius: 5px;
  transition: width 0.3s ease;
} */

.campaign-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.campaign-info-item {
  text-align: center;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.info-label {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #218838;
}

.campaign-goal {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  border-left: 4px solid #218838;
}

.campaign-goal-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}

.campaign-goal-list li {
  padding: 5px 0 5px 25px;
  position: relative;
  color: #555;
  line-height: 1.6;
}

.campaign-goal-list li::before {
  content: "‣";
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Campaign Actions */
.campaign-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-join {
  flex: 1;
  min-width: 120px;
}

.btn-learn-more {
  flex: 1;
  min-width: 120px;
}

/* CTA Section */
.campaigns-cta-section {
  background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}

.campaigns-cta-content h2 {
  font-family: 'Space Mono', 'Consolas', 'Monaco', monospace;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #fff;
}

.campaigns-cta-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.campaigns-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.campaigns-cta-section .btn-primary {
  background: #fff;
  color: #007cba;
  border-color: #fff;
}

.campaigns-cta-section .btn-primary:hover {
  background: #f8f9fa;
  color: #005a87;
}

.campaigns-cta-section .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.campaigns-cta-section .btn-secondary:hover {
  background: #fff;
  color: #007cba;
}

/* No Campaigns State */
.no-campaigns {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.no-campaigns h3 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 15px;
}

.no-campaigns p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close {
  position: absolute;
  right: 20px;
  top: 20px;
  color: #999;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close:hover {
  color: #333;
  background: #f0f0f0;
}

.modal-content h3 {
  font-family: 'Space Mono', 'Consolas', 'Monaco', monospace;
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 10px;
}

.modal-content p {
  color: #666;
  margin-bottom: 30px;
  font-weight: 600;
}

/* Join Form */
.join-form .form-group {
  margin-bottom: 20px;
}

.join-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.join-form input,
.join-form textarea,
.join-form select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.join-form input:focus,
.join-form textarea:focus,
.join-form select:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.join-form textarea {
  resize: vertical;
  min-height: 100px;
}

.join-form button {
  width: 100%;
  margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .campaigns-hero-title {
    font-size: 2.5rem;
  }
  
  .campaigns-hero-subtitle {
    font-size: 1.2rem;
  }
  
  .campaigns-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .campaign-card-content {
    padding: 20px;
  }
  
  .campaign-card-title {
    font-size: 1.5rem;
  }
  
  .campaign-actions {
    flex-direction: column;
  }
  
  .campaigns-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .campaigns-cta-content h2 {
    font-size: 2rem;
  }
  
  .modal-content {
    margin: 10% auto;
    padding: 30px 20px;
  }
  
  .campaign-info-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .campaigns-hero-section {
    min-height: 50vh;
  }
  
  .campaigns-hero-title {
    font-size: 2rem;
  }
  
  .campaigns-hero-subtitle {
    font-size: 1rem;
  }
  
  .campaigns-grid-section {
    padding: 60px 0;
  }
  
  .campaigns-grid {
    gap: 20px;
  }
  
  .campaign-card-image {
    height: 200px;
  }
  
  .modal-content {
    width: 95%;
    margin: 15% auto;
  }
}