/* Campaign Accordion Styles */

/* Make left side scrollable while keeping right side fixed */
.scrollable-content {
  overflow-x: hidden;
  padding-top: 120px;
  padding-bottom: 60px;
  position: relative;
  z-index: 6;
}

/* Desktop only - fixed height with scroll */
@media only screen and (min-width: 1200px) {
  .scrollable-content {
    height: 100vh !important;
    overflow-y: auto !important;
  }
}

/* Mobile - natural height, no fixed container */
@media only screen and (max-width: 1199px) {
  .scrollable-content {
    height: auto !important;
    overflow-y: visible !important;
    padding-top: 0;
    padding-bottom: 0;
  }
}

@media only screen and (min-width: 768px) {
  .scrollable-content {
    padding-top: 160px;
    padding-bottom: 80px;
  }
}

@media only screen and (min-width: 1200px) {
  .scrollable-content {
    padding-top: 120px;
    padding-bottom: 60px;
  }
}

@media only screen and (min-width: 1400px) {
  .scrollable-content {
    padding-top: 180px;
    padding-bottom: 80px;
  }
}

/* Add extra spacing for intro content */
.intro__content {
  padding: 0 10%;
  min-height: calc(100vh - 120px);
}

@media only screen and (min-width: 768px) {
  .intro__content {
    min-height: calc(100vh - 160px);
  }
}

@media only screen and (min-width: 1200px) {
  .intro__content {
    padding: 0 8rem;
    min-height: calc(100vh - 120px);
  }
}

@media only screen and (min-width: 1400px) {
  .intro__content {
    padding: 0 10rem;
    min-height: calc(100vh - 180px);
  }
}

/* Content fade mask effect - makes content disappear near header */
.scrollable-content::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 33.333333%;
  height: 160px;
  background: linear-gradient(
    180deg,
    rgba(16, 16, 16, 0.1) 0%,
    rgba(16, 16, 16, 0.3) 15%,
    rgba(16, 16, 16, 0.5) 25%,
    rgba(16, 16, 16, 0.7) 35%,
    rgba(16, 16, 16, 0.85) 50%,
    rgba(16, 16, 16, 0.95) 70%,
    rgba(16, 16, 16, 1) 85%,
    rgba(16, 16, 16, 1) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  z-index: 5;
}

@media only screen and (min-width: 768px) {
  .scrollable-content::before {
    top: 0;
    height: 95px;
  }
}

@media only screen and (min-width: 1400px) {
  .scrollable-content::before {
    top: 0;
    height: 95px;
  }
}

@media only screen and (max-width: 1199px) {
  .scrollable-content::before {
    top: 0;
    right: 0;
    height: 100px;
  }
}

/* Fixed media section */
.fixed-media {
  position: fixed !important;
  right: 0;
  top: 0;
  height: 100vh !important;
  width: 33.333333% !important;
  z-index: 1;
}

@media only screen and (max-width: 1199px) {
  .fixed-media {
    position: relative !important;
    width: 100% !important;
    height: auto;
  }
  
  .intro__content {
    min-height: auto;
  }
}

/* Custom scrollbar for the content area */
.scrollable-content::-webkit-scrollbar {
  width: 6px;
}

.scrollable-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.scrollable-content::-webkit-scrollbar-thumb {
  background: rgba(214, 33, 87, 0.6);
  border-radius: 3px;
}

.scrollable-content::-webkit-scrollbar-thumb:hover {
  background: rgba(214, 33, 87, 0.8);
}

/* Ensure main section doesn't scroll on desktop */
.main {
  overflow: hidden !important;
  height: 100vh !important;
}

/* Allow scrolling on mobile */
@media only screen and (max-width: 1199px) {
  .main {
    overflow: visible !important;
    height: auto !important;
  }
}

/* Prevent header overlap */
.header {
  z-index: 10 !important;
}

/* Remove the old vanishing point effect */
.intro__content::before {
  display: none;
}

/* Ensure content stays above the vanishing point */
.headline {
  position: relative;
  width: 100%;
  padding: 0 !important;
  margin-bottom: 40px;
  z-index: 2;
}

/* Campaign Card Design */
.campaign-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 20px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin-bottom: 60px;
}

.campaign-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(214, 33, 87, 0.3);
}

/* Add extra padding when expanded */
.campaign-card:has(.campaign-details.expanded) {
  margin-bottom: 100px;
}

/* Fallback for browsers that don't support :has() */
.campaign-card.expanded-card {
  margin-bottom: 100px;
}

/* Progress Section */
.progress-section {
  margin-bottom: 18px;
}

.progress-header {
  margin-bottom: 12px;
}

.campaign-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-count {
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
}

.progress-target {
  font-size: 11px;
  color: #b3bbc3;
  opacity: 0.8;
}

/* Progress Bar */
.progress-bar-container {
  margin-bottom: 6px;
}

.progress-bar-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #d62157, #ff4081);
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-percentage {
  font-size: 10px;
  color: #b3bbc3;
  opacity: 0.7;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 0;
}

.expand-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.expand-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.expand-icon {
  font-size: 11px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.expand-btn.expanded .expand-icon {
  transform: rotate(180deg);
}

.donate-button {
  background: linear-gradient(135deg, #d62157, #ff4081);
  border: none;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(214, 33, 87, 0.3);
  min-width: 110px;
  justify-content: center;
}

.donate-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(214, 33, 87, 0.4);
  background: linear-gradient(135deg, #b91946, #e91e63);
  color: #ffffff;
  text-decoration: none;
}

.donate-button i {
  font-size: 11px;
}

/* Campaign Details */
.campaign-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.campaign-details.expanded {
  max-height: 400px;
  margin-bottom: 40px;
}

.details-content {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding-bottom: 20px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detail-section {
  margin-bottom: 20px;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section h4 {
  font-size: 14px;
  font-weight: 600;
  color: #d62157;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-section p {
  font-size: 13px;
  line-height: 1.5;
  color: #b3bbc3;
  margin: 0;
}

/* Impact Cards */
.impact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.impact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.impact-card:hover {
  background: rgba(214, 33, 87, 0.1);
  border-color: rgba(214, 33, 87, 0.3);
  transform: translateY(-2px);
}

.impact-amount {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.impact-desc {
  font-size: 10px;
  color: #b3bbc3;
  opacity: 0.8;
  line-height: 1.3;
}

/* Responsive adjustments */
@media only screen and (max-width: 768px) {
  .campaign-card {
    padding: 20px;
    border-radius: 16px;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .impact-cards {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .campaign-title {
    font-size: 16px;
  }
}

/* Ensure proper spacing in headline numblock */
.headline__numblock {
  width: 100%;
  margin-top: 3.7rem;
}

@media only screen and (min-width: 1400px) {
  .headline__numblock {
    margin-top: 4.2rem;
  }
} 