:root {
  --primary-green: #00b14f;
  --gray-light: #f9f9f9;
  --gray-medium: #e0e0e0;
  --text-dark: #333;
  --text-medium: #666;
  --text-light: #999;
}

body {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--gray-light);
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-medium);
  margin-bottom: 30px;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-green);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-bar {
  position: relative;
  width: 100%;
  max-width: 280px; /* Adjust max-width for desktop */
}

.search-bar input {
  width: 100%;
  padding: 10px 10px 10px 40px; /* Left padding for icon */
  border: 1px solid var(--gray-medium);
  border-radius: 6px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar input:focus {
  border-color: var(--primary-green);
}

.search-bar .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  width: 20px;
  height: 20px;
}

.menu-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: none; /* Hidden on desktop */
}

.menu-button .menu-icon {
  width: 28px;
  height: 28px;
  color: var(--text-dark);
}

/* Campaign Details */
.campaign-category {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.campaign-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.2;
}

.campaign-id {
  font-size: 14px;
  color: var(--text-medium);
  margin-bottom: 30px;
}

/* Main Image and Summary Block */
.main-visual-section {
  display: grid;
  grid-template-columns: 1fr; /* Single column for mobile */
  gap: 20px;
  margin-bottom: 40px;
}

.image-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 66.66%; /* 3:2 aspect ratio (height / width * 100) */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.beneficiary-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Summary block removed */

/* Support Indicator */
.support-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
  margin-bottom: 40px;
}

.support-indicator .heart-icon {
  color: #ef4444; /* Tailwind red-500 */
  fill: #ef4444;
  width: 24px;
  height: 24px;
}

.support-count {
  font-size: 18px;
  font-weight: 600;
}

/* About Section */
.about-section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  color: var(--text-medium);
  margin-bottom: 20px;
}

.verified-seal {
  display: flex;
  align-items: center;
  color: var(--primary-green);
  font-weight: 600;
}

.verified-seal .check-icon {
  width: 18px;
  height: 18px;
  margin-right: 5px;
  color: var(--primary-green);
}

.description-text {
  font-size: 16px;
  color: var(--text-dark);
  text-align: justify;
}

/* Donation Button */
.donation-button-wrapper {
  text-align: center;
  margin-bottom: 40px; /* Add margin below button */
}

.donation-button {
  background-color: var(--primary-green);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  padding: 18px 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0, 177, 79, 0.3);
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 100%; /* Full width on mobile */
  max-width: 300px; /* Max width for desktop */
}

.donation-button:hover {
  background-color: #009a44; /* Slightly darker green on hover */
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 177, 79, 0.4);
}

.donation-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Donation Progress Section */
.donation-progress-section {
  margin-bottom: 40px;
  padding: 20px;
  background-color: #fefefe;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.progress-amounts {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 600;
}

.current-amount {
  color: var(--primary-green);
  font-size: 20px;
}

.target-amount {
  color: var(--text-medium);
  font-size: 16px;
}

.progress-bar-container {
  width: 100%;
  background-color: var(--gray-medium);
  border-radius: 5px;
  height: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar-fill {
  height: 100%;
  width: 0%; /* Initial width */
  background-color: var(--primary-green);
  border-radius: 5px;
  transition: width 0.5s ease-out;
}

.progress-percentage {
  text-align: right;
  font-size: 14px;
  color: var(--text-medium);
}

/* Comments Section */
.comments-section {
  margin-top: 50px;
  margin-bottom: 50px;
}

.comments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.comment-card {
  background-color: #fefefe;
  border: 1px solid var(--gray-medium);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.comment-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-green);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
  margin-right: 15px;
  flex-shrink: 0;
}

.comment-info {
  display: flex;
  flex-direction: column;
}

.comment-author {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 17px;
}

.comment-date {
  font-size: 13px;
  color: var(--text-medium);
}

.comment-text {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.5;
  flex-grow: 1; /* Allows text to take available space */
}

/* Donation Notifications */
.donation-notifications {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 80vh; /* Limit height */
  overflow-y: auto; /* Enable scrolling if many notifications */
  padding-right: 5px; /* For scrollbar */
}

.notification-item {
  background-color: rgba(0, 177, 79, 0.9); /* Primary green with transparency */
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0; /* Start hidden */
  transform: translateX(100%); /* Start off-screen */
  animation: slideIn 0.5s forwards, fadeOut 0.5s forwards 4.5s; /* Slide in, then fade out after 4.5s */
  min-width: 250px;
  max-width: 300px;
  font-size: 15px;
  line-height: 1.4;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .logo {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .search-bar {
    flex-grow: 1;
    max-width: none; /* Allow search bar to take full width */
  }

  .menu-button {
    display: block; /* Show menu button on mobile */
  }

  .campaign-title {
    font-size: 28px;
  }

  .main-visual-section {
    grid-template-columns: 1fr; /* Ensure single column on mobile */
  }

  /* Summary block removed, so no need for its responsive styles */

  .donation-button {
    padding: 15px 30px;
    font-size: 18px;
  }

  .comments-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  .donation-notifications {
    bottom: 10px;
    right: 10px;
    max-width: calc(100% - 20px); /* Adjust max-width for smaller screens */
  }
}

@media (min-width: 769px) {
  .main-visual-section {
    grid-template-columns: 1fr; /* Only image, no summary block */
  }
  .search-bar {
    max-width: 280px; /* Specific width for desktop */
  }
}

/* Botão de Doação Fixo na Parte Inferior */
#fixedDonationBar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff; /* Fundo branco para a barra */
  padding: 15px 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* Sombra para destacar */
  z-index: 1000; /* Garante que fique acima de outros elementos */
  display: flex;
  justify-content: center; /* Centraliza o botão */
  align-items: center;
}

/* Ajustes responsivos para a barra fixa */
@media (max-width: 768px) {
  #fixedDonationBar {
    padding: 10px 15px; /* Menos padding em telas menores */
  }
}
