/* ===== CORES PRINCIPAIS ===== */
:root {
  --cor-primaria: #32cd32;
  --cor-primaria-hover: #24ca68;
  --cor-secundaria: #32cd32;
  --cor-destaque: #eb4c60;
  --cor-texto: #333;
  --cor-branco: #ffffff;
  --cor-cinza-claro: #f3f3f3;
  --cor-cinza: #ccc;
  --cor-verde-claro: #90ee90;
}

/* ===== BOTÕES ===== */
.btn-principal {
  background-color: var(--cor-primaria);
  color: var(--cor-branco);
  border: none;
  border-radius: 10px;
  padding: 12px;
  width: 100%;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-principal:hover {
  background-color: var(--cor-primaria-hover);
}

.btn-pix {
  background-color: var(--cor-primaria);
  color: var(--cor-branco);
  border: none;
  border-radius: 20px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.btn-pix:hover {
  background-color: var(--cor-primaria-hover);
  transform: translateY(-2px);
}

.btn-pix:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-pix-copiado {
  background-color: var(--cor-verde-claro) !important;
  text-align: center;
  display: block;
  margin: 0 auto;
}

/* ===== MODAIS ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: var(--cor-branco);
  width: 90%;
  max-width: 400px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  margin-bottom: 10px;
}

.modal-close {
  cursor: pointer;
  font-size: 18px;
}

/* ===== NOTIFICAÇÕES ===== */
/* Estilos de notificação movidos para globals.css para evitar conflitos */

.notification {
  display: flex;
  align-items: center;
  background: var(--cor-branco);
  border-radius: 25px;
  padding: 10px 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e2e2;
}

.notification img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  margin-right: 10px;
}

.notification-text {
  display: flex;
  flex-direction: column;
}

.notification-name {
  color: var(--cor-primaria);
  font-weight: bold;
}

.notification-message {
  font-size: 14px;
  color: var(--cor-texto);
}

/* ===== LOADING ===== */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  visibility: hidden;
  opacity: 0;
  transition: all .2s ease-out;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.loading > div {
  width: 100%;
  text-align: center;
}

.loading.active {
  opacity: 1;
  visibility: visible;
  transition: all .2s ease-out;
}

.loading #logo-loading, #loading-form img {
  animation: pulse 0.7s infinite;
  margin: 0 auto 0px;
  animation-direction: alternate;
  -webkit-animation-name: pulse;
  animation-name: pulse;
  width: 150px;
}

@-webkit-keyframes pulse {
  0% {
    -webkit-transform: scale(1);
    -webkit-filter: brightness(100%);
  }
  100% {
    -webkit-transform: scale(1.1);
    -webkit-filter: brightness(200%);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    filter: brightness(100%);
  }
  100% {
    transform: scale(1.1);
    filter: brightness(110%);
  }
}

#loading-form {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  visibility: visible;
  opacity: 1;
  transition: all .2s ease-out;
  background: rgb(255, 255, 255, .6);
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BARRAS DE PROGRESSO ===== */
.progress-bar {
  width: 100%;
  height: 5px;
  background: var(--cor-cinza);
  border-radius: 3px;
  margin-bottom: 15px;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--cor-primaria);
  border-radius: 3px;
}

/* ===== BOTÕES DE DOAÇÃO ===== */
.donation-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.donation-button {
  display: block;
  background: var(--cor-secundaria);
  color: var(--cor-branco);
  text-decoration: none;
  font-weight: bold;
  padding: 12px 0;
  border-radius: 8px;
  text-align: center;
  transition: 0.3s;
}

.donation-button:hover {
  background: var(--cor-primaria-hover);
}

.donation-button-destaque {
  grid-column: span 3;
  position: relative;
}

.destaque-label {
  font-size: 0.75rem;
  margin-bottom: 4px;
  color: var(--cor-primaria-hover);
  font-weight: 500;
}

.destaque-selo {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--cor-destaque);
  color: var(--cor-branco);
  font-size: 0.7rem;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

/* ===== VALORES E TEXTO ===== */
.valor-doado {
  color: var(--cor-primaria) !important;
  font-weight: 700;
}

.texto-destaque {
  font-weight: bold;
  font-size: 18px;
}

.texto-negrito {
  font-weight: bold;
}

/* ===== ANIMAÇÕES ===== */
/* Animações de notificação removidas para evitar conflitos com React */

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

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.pulse-animation {
  display: inline-block;
  animation: pulse 1.5s infinite;
  transition: transform 0.3s ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== BOTÃO PIX MOBILE FIXO ===== */
#fixed-mobile .btn-pix {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  border-radius: 12px;
  background-color: var(--cor-primaria);
  color: var(--cor-branco);
  border: none;
  cursor: pointer;
  pointer-events: auto !important;
  z-index: 1001 !important;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(50, 205, 50, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 56px;
}

#fixed-mobile .btn-pix:hover {
  background-color: var(--cor-primaria-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(50, 205, 50, 0.4);
}

#fixed-mobile .btn-pix:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(50, 205, 50, 0.3);
}

/* ===== RESPONSIVO ===== */
@media screen and (max-width: 768px) {
  .donation-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-content {
    width: 95%;
    margin: 10px;
  }
}

@media screen and (max-width: 480px) {
  .donation-buttons {
    grid-template-columns: 1fr;
  }

  .btn-pix {
    padding: 10px 16px;
    font-size: 14px;
  }

  #fixed-mobile .btn-pix {
    padding: 14px 20px;
    font-size: 15px;
    min-height: 52px;
  }
}

/* ===== SWIPER STYLES ===== */
.swiper-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.swiper-slide {
  width: 100% !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

@media screen and (max-width: 768px) {
  .swiper-slide {
    width: 100% !important;
  }
  .image {
    width: 100%;
    padding: 0 1px;
  }
  .image img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

@media screen and (max-width: 480px) {
  .image {
    width: 100%;
  }
  .image img {
    width: 100%;
    height: auto;
  }
}

/* ===== ESTILOS PARA HOME.HTML ===== */

/* Header */
.header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo h1 {
  color: var(--cor-primaria);
  font-size: 1.8rem;
  margin: 0;
}

.nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.nav a {
  text-decoration: none;
  color: var(--cor-texto);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--cor-primaria);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 100px 0;
  text-align: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: #6c757d;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-principal {
  background-color: var(--cor-primaria);
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-principal:hover {
  background-color: var(--cor-primaria-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(50, 205, 50, 0.3);
}

.btn-secundario {
  background-color: transparent;
  color: var(--cor-secundaria);
  padding: 15px 30px;
  border: 2px solid var(--cor-secundaria);
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-secundario:hover {
  background-color: var(--cor-secundaria);
  color: white;
  transform: translateY(-2px);
}

/* Como Funciona Section */
.como-funciona-section {
  padding: 80px 0;
  background-color: #fff;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 60px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.step-item {
  background: #fff;
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f0f0f0;
}

.step-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.step-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--cor-primaria),
    var(--cor-primaria-hover)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.step-number {
  color: white;
  font-size: 2rem;
  font-weight: 700;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
}

.step-description {
  color: #6c757d;
  line-height: 1.6;
  font-size: 1rem;
}

/* Sobre Section */
.sobre-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.sobre-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.sobre-text .section-title {
  text-align: left;
  margin-bottom: 30px;
}

.sobre-description {
  font-size: 1.1rem;
  color: #6c757d;
  line-height: 1.8;
  margin-bottom: 40px;
}

.sobre-features {
  display: grid;
  gap: 25px;
}

.feature-item h4 {
  color: #2c3e50;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-item p {
  color: #6c757d;
  margin: 0;
}

.sobre-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #e9ecef, #dee2e6);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 1.1rem;
  font-weight: 500;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(
    135deg,
    var(--cor-primaria),
    var(--cor-primaria-hover)
  );
  color: white;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-actions .btn-principal {
  background-color: white;
  color: var(--cor-primaria);
}

.cta-actions .btn-principal:hover {
  background-color: #f8f9fa;
  color: var(--cor-primaria);
}

.cta-actions .btn-secundario {
  border-color: white;
  color: white;
}

.cta-actions .btn-secundario:hover {
  background-color: white;
  color: var(--cor-primaria);
}

/* Footer */
.footer {
  background-color: #2c3e50;
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 20px;
  color: var(--cor-primaria);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--cor-primaria);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #34495e;
  color: #bdc3c7;
}

/* Responsive para Home */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 20px;
  }

  .nav ul {
    gap: 20px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .sobre-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
