@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

@font-face {
  font-family: 'Nohemi';
  src: url('./fontes/Nohemi-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Nohemi';
  src: url('./fontes/Nohemi-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

/* RESET E BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html,
body {
  height: 100%;
  background: linear-gradient(180deg, #7b91c7 0%, #e6eaff 40%, #fff 100%);
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* menu hamburguer */
.menu-toggle {
  display: none;
}

.mobile-menu {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1001;
  width: 30px;
  height: 30px;
}

.hamburger span {
  height: 3px;
  width: 24px;
  background: white;
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 60px;
  right: 20px;
  background: rgba(123, 145, 199, 0.98);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  flex-direction: column;
  gap: 16px;
  z-index: 1000;
  min-width: 220px;
}

.menu-toggle:checked~.mobile-nav {
  display: flex;
}

.mobile-nav a {
  color: white;
  font-size: 16px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-auth-buttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-auth-buttons button {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-entrar {
  background: #6d7dfc;
  color: white;
}

.mobile-entrar:hover {
  background: white;
  color: #7b91c7;
}

.mobile-criar-conta {
  background: white;
  color: #7b91c7;
}

.mobile-criar-conta:hover {
  background: #6d7dfc;
  color: white;
}

/* MAIN CONTENT */
.main-content {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 40px;
}

.hero-section {
  text-align: center;
  margin-bottom: 4rem;
}

.hero-title {
  font-family: 'Nohemi', sans-serif;
  font-weight: 900;
  margin-bottom: 18px;
  color: #111;
}

.hero-img {
  width: 20em;
  margin-bottom: -15px;
  position: relative;
  z-index: 2;
  margin-top: 50px;
}

.white-blur {
  width: 250px;
  height: 80px;
  margin: -50px auto 24px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.8) 60%, rgba(123, 145, 199, 0.15) 100%);
  filter: blur(18px);
  border-radius: 50px;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.hero-subtitle {
  font-size: 18px;
  margin-bottom: 24px;
  max-width: 1050px;
  margin-inline: auto;
  color: #000;
}

.donation-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.donation-card {
  background: transparent;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 6px solid #6d7dfc;
  transition: transform 0.3s, box-shadow 0.3s;
}

.donation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.card-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
}

.card-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.donation-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.amount-btn {
  padding: 0.75rem 1rem;
  border: 2px solid #a8b8e8;
  background: white;
  color: #333;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  white-space: nowrap;
}

.amount-btn:hover,
.amount-btn.selected {
  background: #a8b8e8;
  color: white;
}

.custom-amount {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #a8b8e8;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.donate-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #6b73ff 0%, #9b59b6 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s;
}

.donate-btn:hover {
  transform: scale(1.02);
}

.impact-section {
  background: transparent;
  border-radius: 16px;
  padding: 3rem 2rem;
  margin-bottom: 3rem;
  border: 6px solid #6d7dfc;
}

.impact-title {
  text-align: center;
  font-size: 2rem;
  color: #333;
  margin-bottom: 2rem;
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem;
  background: #f8f9ff;
  border-radius: 12px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #6b73ff;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #666;
  font-weight: 500;
}

.payment-methods {
  background: transparent;
  border-radius: 16px;
  padding: 2rem;
  border: 6px solid #6d7dfc;
}

.payment-title {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1.5rem;
  text-align: center;
}

.payment-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.payment-icon {
  width: 60px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.3s;
}

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

/* FOOTER */
footer {
  width: 100%;
  background: #f4f8ff;
  box-shadow: 0 -2px 12px rgba(213, 220, 236, 0.185);
  padding: 14px 0 4px;
}

.footer-content {
  max-width: 1900px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo-footer img {
  height: 36px;
}

.footer-termo a {
  font-size: 15px;
  color: #333;
  text-decoration: none;
}

.footer-termo a:hover {
  text-decoration: underline;
}

.social-icons a {
  margin: 0 8px;
  color: #333;
  transition: color 0.2s;
}

.social-icons a:hover {
  color: #6d7dfc;
}

.copyright {
  font-size: 13px;
  color: #555;
}

/* HEADER DINAMICO - deu certo no teste, entao manter e dar uma melhorada,
pra depois ser implementado em todas as paginas de forma funcional */

.usuario-logado {
  display: flex;
  align-items: center;
  gap: 10px;
}

.usuario-perfil-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 6px 12px 6px 6px;
  border-radius: 100px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s, border-color 0.2s;
}

.usuario-perfil-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

/* avatar circular com inicial */
.header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #6d7dfc;
  border: 2px solid #fff;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-avatar-inicial {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.header-avatar-sm {
  width: 28px;
  height: 28px;
}

.usuario-nome {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.btn-sair {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #000;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-sair:hover {
  background: #6d7dfc;
  border-color: #6d7dfc;
  color: #fff;
}

/* RESPONSIVIDADE */

@media (max-width: 767px) {
  header {
    padding: 16px 24px;
  }

  .logo img {
    height: 36px;
  }

  .desktop-nav,
  .auth-buttons {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    top: 70px;
  }

  .main-content {
    padding: 2rem 1.5rem;
    margin-top: 20px;
  }

  .hero-section {
    margin-bottom: 3rem;
  }

  .hero-title {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .hero-img {
    width: 15em;
  }

  .white-blur {
    width: 200px;
    height: 60px;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .donation-cards {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
  }

  .donation-card {
    padding: 1.5rem;
  }

  .card-title {
    font-size: 1.3rem;
  }

  .card-description {
    font-size: 14px;
    margin-bottom: 1.5rem;
  }

  .donation-amounts {
    gap: 0.8rem;
    margin-bottom: 1.5rem;
  }

  .amount-btn {
    padding: 0.6rem 0.8rem;
    font-size: 14px;
  }

  .impact-section {
    padding: 2rem 1.5rem;
    margin-bottom: 2.5rem;
  }

  .impact-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .impact-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 14px;
  }

  .payment-methods {
    padding: 1.5rem;
  }

  .payment-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .payment-icons {
    gap: 1rem;
  }

  .payment-icon {
    width: 50px;
    height: 30px;
  }

  .footer-content {
    padding: 0 24px;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .logo-footer img {
    height: 32px;
  }

  .footer-termo a {
    font-size: 14px;
  }

  .copyright {
    font-size: 12px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  header {
    padding: 12px 20px;
  }

  .logo img {
    height: 36px;
  }

  .desktop-nav,
  .auth-buttons {
    display: none !important;
  }

  .mobile-menu {
    display: block !important;
  }

  .hamburger {
    display: flex !important;
  }

  .main-content {
    padding: 1.5rem 1rem;
    margin-top: 10px;
  }

  .hero-img {
    width: 140px;
  }

  .white-blur {
    width: 150px;
    height: 50px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .donation-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .donation-card {
    padding: 1rem;
  }

  .card-icon {
    font-size: 2rem;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-description {
    font-size: 12px;
    margin-bottom: 1rem;
  }

  .donation-amounts {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .amount-btn {
    padding: 0.5rem;
    font-size: 12px;
  }

  .impact-section {
    padding: 1.5rem 1rem;
  }

  .impact-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .stat-item {
    padding: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 11px;
  }

  .payment-methods {
    padding: 1rem;
  }

  .payment-icons {
    gap: 0.8rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  header {
    padding: 20px 30px;
  }

  .desktop-nav,
  .auth-buttons {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hamburger {
    display: flex;
  }

  .donation-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-img {
    width: 18em;
  }

  .impact-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1279px) and (orientation: landscape) {
  header {
    padding: 18px 24px;
  }

  .logo img {
    height: 38px;
  }

  .desktop-nav {
    display: flex;
    gap: 2.5rem;
  }

  .desktop-nav a {
    font-size: 14px;
    padding: 6px 0;
  }

  .auth-buttons {
    display: flex;
  }

  .auth-buttons button {
    padding: 10px 18px;
    font-size: 14px;
    margin-left: 8px;
  }

  .mobile-menu,
  .hamburger {
    display: none;
  }

  .main-content {
    padding: 2.5rem 2rem;
    margin-top: 30px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-img {
    width: 18em;
  }

  .donation-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .impact-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) and (max-width: 1279px) and (orientation: landscape) {
  .desktop-nav {
    gap: 3.5rem;
  }

  .desktop-nav a {
    font-size: 15px;
  }

  .auth-buttons button {
    padding: 11px 20px;
    font-size: 15px;
  }

  .donation-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1280px) {
  .mobile-menu,
  .hamburger {
    display: none;
  }

  .desktop-nav,
  .auth-buttons {
    display: flex;
  }
}

@media (max-width: 480px) {
  header {
    padding: 12px 16px;
  }

  .logo img {
    height: 36px;
  }

  .mobile-nav {
    right: 10px;
    min-width: 200px;
    padding: 16px;
  }

  .main-content {
    padding: 1.5rem 1rem;
  }

  .hero-title {
    font-size: 24px;
    line-height: 1.2;
  }

  .hero-img {
    width: 12em;
  }

  .white-blur {
    width: 150px;
    height: 50px;
  }

  .hero-subtitle {
    font-size: 14px;
    padding: 0 5px;
  }

  .donation-card {
    padding: 1.2rem;
  }

  .card-icon {
    font-size: 2.5rem;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .card-description {
    font-size: 13px;
  }

  .donation-amounts {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .amount-btn {
    padding: 0.8rem;
    font-size: 16px;
  }

  .custom-amount {
    padding: 0.8rem;
    font-size: 16px;
  }

  .donate-btn {
    padding: 1.2rem;
    font-size: 1rem;
  }

  .impact-section {
    padding: 1.5rem 1rem;
  }

  .impact-title {
    font-size: 1.3rem;
  }

  .impact-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 1rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .payment-methods {
    padding: 1rem;
  }

  .payment-title {
    font-size: 1.1rem;
  }

  .payment-icons {
    gap: 0.8rem;
  }

  .payment-icon {
    width: 45px;
    height: 30px;
  }

  .footer-content {
    padding: 0 16px;
    gap: 12px;
  }

  .social-icons a {
    margin: 0 6px;
  }
}

@media (max-width: 320px) {
  .hero-title {
    font-size: 20px;
  }

  .hero-img {
    width: 10em;
  }

  .donation-card {
    padding: 1rem;
  }

  .card-icon {
    font-size: 2rem;
  }

  .impact-section,
  .payment-methods {
    padding: 1rem 0.8rem;
  }

  .main-content {
    padding: 1rem 0.8rem;
  }
}