/* CORES DO PROJETO */
/* Verde: #3bb273, Azul: #0076CA, Amarelo: #FFD600, Ciano: #00CFFF, Verde escuro inicial: #1ec773 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Fredoka', 'Baloo 2', sans-serif;
  background: #f5f9f7;
  min-height: 100vh;
}

/* NAVBAR */
.navbar-redesign {
  background: #61b231;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(97,178,49,0.28);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9000;
}

/* BACK BUTTON */
.btn-voltar {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  border: none;
  background: transparent;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 56px;
  max-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  font-size: 1.7em;
}

.btn-voltar:hover {
  transform: scale(1.12) rotate(-8deg);
}

@media (max-width: 768px) {
  .btn-voltar {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 44px;
    max-height: 44px;
    font-size: 1.2em;
  }
}

.logo-redesign {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: -32px;
  font-family: 'Baloo 2', cursive;
  font-size: 30px;
  color: white;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15);
}

.logo-redesign img {
  width: 145px;
  height: 94px;
  object-fit: contain;
}

.nav-links-redesign {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 130px;
}

.nav-link-redesign {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.nav-link-redesign:hover,
.nav-link-redesign.active {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.nav-right-redesign {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-sair-redesign {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 7px 22px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sair-redesign:hover {
  background: rgba(255, 255, 255, 0.35);
}

.bell-btn-redesign {
  position: relative;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.2s;
}

.bell-btn-redesign:hover {
  background: rgba(255, 255, 255, 0.35);
}

.bell-badge-redesign {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #FFD600;
  color: #7c5800;
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #76e13e;
}

/* MAIN CONTENT */
.main-redesign {
  padding: 32px 48px;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 80px;
  margin-bottom: 120px;
}

/* GREETING BANNER */
.greeting-banner-redesign {
  background: linear-gradient(120deg, #76e13e, #5bc92d);
  border-radius: 24px;
  padding: 28px 36px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(118,225,62,0.2);
  overflow: hidden;
  position: relative;
}



.greeting-left-redesign h1 {
  font-family: 'Baloo 2', cursive;
  color: white;
  font-size: 32px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.greeting-left-redesign p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  margin-top: 4px;
}

.xp-pill-redesign {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  padding: 8px 20px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.xp-star-redesign {
  font-size: 20px;
}

/* CATEGORY PILLS */
.category-row-redesign {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.category-pill-redesign {
  background: white;
  border: 2.5px solid #d4f0de;
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #76e13e;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(118,225,62,0.08);
}

.category-pill-redesign:hover,
.category-pill-redesign.active {
  background: #76e13e;
  color: white;
  border-color: #76e13e;
  box-shadow: 0 4px 14px rgba(118,225,62,0.3);
  transform: translateY(-2px);
}

.category-pill-redesign span {
  font-size: 20px;
}

/* GRID LAYOUT */
.grid-redesign {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
}

/* PROFILE CARD */
.profile-card-redesign {
  background: white;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  border: 2px solid #e8f7ee;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.avatar-wrapper-redesign {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b7e4c7, #76e13e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  box-shadow: 0 4px 16px rgba(118,225,62,0.3);
  border: 4px solid white;
  outline: 3px solid #76e13e;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.avatar-wrapper-redesign:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(118,225,62,0.4);
}
}

.profile-name-redesign {
  font-family: 'Baloo 2', cursive;
  font-size: 20px;
  color: #1a4731;
  text-align: center;
}

.profile-school-redesign {
  background: #f0faf4;
  border-radius: 14px;
  padding: 12px 16px;
  width: 100%;
  text-align: center;
}

.profile-school-redesign .school-label {
  font-size: 12px;
  color: #76e13e;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-school-redesign .school-name {
  font-size: 14px;
  color: #1a4731;
  font-weight: 600;
  margin-top: 4px;
  line-height: 1.3;
}

.profile-turma-redesign {
  background: #e6f3ff;
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 15px;
  color: #0076CA;
  font-weight: 600;
  border: 2px solid #b5d4f4;
}

/* PROGRESS SECTION */
.progress-section-redesign {
  width: 100%;
}

.progress-label-redesign {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #76e13e;
  font-weight: 600;
  margin-bottom: 8px;
}

.progress-bar-redesign {
  background: #d4f0de;
  border-radius: 50px;
  height: 14px;
  overflow: hidden;
}

.progress-fill-redesign {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, #76e13e, #5bc92d);
  width: 30%;
  position: relative;
  transition: width 1s ease;
}

.progress-fill-redesign::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0 50px 50px 0;
}

.btn-evoluir-redesign {
  background: linear-gradient(135deg, #0076CA, #00CFFF);
  color: white;
  font-family: 'Baloo 2', cursive;
  font-size: 20px;
  padding: 14px 0;
  width: 100%;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 118, 202, 0.4);
  transition: all 0.2s;
  letter-spacing: 0.5px;
}

.btn-evoluir-redesign:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 118, 202, 0.5);
}

.btn-evoluir-redesign:active {
  transform: translateY(0);
}

/* RIGHT COLUMN */
.right-col-redesign {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* SECTION TITLE */
.section-title-redesign {
  font-family: 'Baloo 2', cursive;
  font-size: 22px;
  color: #1a4731;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* MISSIONS */
.missions-grid-redesign {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mission-card-redesign {
  background: white;
  border-radius: 20px;
  padding: 20px 16px;
  text-align: center;
  border: 2px solid #e8f7ee;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}

.mission-card-redesign:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(118,225,62,0.15);
  border-color: #76e13e;
}

.mission-icon-redesign {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  margin: 0 auto 12px;
}

.mission-icon-redesign.green {
  background: #d4f0de;
}

.mission-icon-redesign.blue {
  background: #dbeafe;
}

.mission-icon-redesign.amber {
  background: #fef3c7;
}

.mission-icon-redesign.coral {
  background: #ffe4d6;
}

.mission-name-redesign {
  font-size: 15px;
  font-weight: 600;
  color: #1a4731;
  margin-bottom: 6px;
}

.mission-badge-redesign {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  display: inline-block;
}

.badge-done {
  background: #d4f0de;
  color: #1a6f3a;
}

.badge-new {
  background: #fef3c7;
  color: #854f0b;
}

.badge-locked {
  background: #f1f0f0;
  color: #888;
}

.lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

/* ACTIVITY CARD */
.activity-card-redesign {
  background: white;
  border-radius: 24px;
  padding: 24px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  border: 2px solid #e8f7ee;
}

/* STATS ROW */
.stats-row-redesign {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat-card-redesign {
  border-radius: 18px;
  padding: 18px 16px;
  text-align: center;
}

.stat-card-redesign.green {
  background: #f0faf4;
  border: 2px solid #c3e8cf;
}

.stat-card-redesign.blue {
  background: #eff6ff;
  border: 2px solid #bfdbfe;
}

.stat-card-redesign.amber {
  background: #fffbeb;
  border: 2px solid #fde68a;
}

.stat-num-redesign {
  font-family: 'Baloo 2', cursive;
  font-size: 36px;
}

.stat-card-redesign.green .stat-num-redesign {
  color: #76e13e;
}

.stat-card-redesign.blue .stat-num-redesign {
  color: #0076CA;
}

.stat-card-redesign.amber .stat-num-redesign {
  color: #854f0b;
}

.stat-label-redesign {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
  margin-top: 2px;
}

.stat-icon-redesign {
  font-size: 22px;
  margin-bottom: 6px;
}

/* FOOTER */
.footer-redesign {
  background: #61b231;
  margin-top: 48px;
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.footer-brand-redesign {
  font-family: 'Baloo 2', cursive;
  color: white;
  font-size: 22px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-redesign img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer-desc-redesign {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  max-width: 320px;
  line-height: 1.5;
}

.footer-contact-redesign {
  text-align: center;
  color: white;
}

.footer-contact-redesign h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 20px;
  margin-bottom: 8px;
}

.footer-email-redesign {
  color: #a7f3d0;
  font-size: 15px;
  text-decoration: underline;
  cursor: pointer;
}

.footer-social-redesign {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 12px auto 0;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.footer-social-redesign:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .grid-redesign {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .main-redesign {
    padding: 20px 16px;
    margin-top: 100px;
    margin-bottom: 80px;
  }

  .navbar-redesign {
    padding: 0 20px;
  }

  .logo-redesign {
    gap: 16px;
    font-size: 18px;
  }

  .logo-redesign img {
    width: 50px;
    height: 33px;
  }

  .greeting-banner-redesign {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .greeting-left-redesign h1 {
    font-size: 24px;
  }

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

  .stats-row-redesign {
    grid-template-columns: 1fr;
  }

  .footer-redesign {
    flex-direction: column;
    gap: 20px;
  }

  .category-row-redesign {
    justify-content: center;
  }

  .navbar-redesign,
  .main-redesign {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .navbar-redesign {
    flex-direction: row;
    height: 70px;
    gap: 0;
    padding: 12px 16px;
    justify-content: space-between;
    align-items: center;
  }

  .logo-redesign {
    gap: 8px;
    font-size: 12px;
    order: 1;
  }

  .logo-redesign img {
    width: 80px;
    height: 52px;
  }

  .nav-links-redesign {
    display: none;
  }

  .nav-right-redesign {
    order: 2;
    gap: 12px;
  }

  .main-redesign {
    margin-top: 140px;
  }

  .missions-grid-redesign {
    grid-template-columns: 1fr;
  }

  .greeting-left-redesign h1 {
    font-size: 20px;
  }

  .btn-evoluir-redesign {
    font-size: 16px;
    padding: 10px 0;
  }
}
