/* ===== NAVIGATION ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--teal);
  padding: 0;
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.3rem;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: opacity var(--transition);
}

.nav-logo:hover { opacity: 0.85; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.theme-toggle {
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: white;
  border-radius: var(--radius-full);
  padding: 6px 14px;
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition);
  font-family: var(--font-body);
}

.theme-toggle:hover { background: rgba(255,255,255,0.25); }

/* ===== HERO ===== */
.hero {
  background: #FFFFFF;
  padding: 72px 0 56px;
  overflow: hidden;
  position: relative;
}

[data-theme="dark"] .hero { background: #052222; }

.hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -15%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(27,177,180,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-2xl);
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(27,177,180,0.1);
  color: var(--teal);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: var(--space-md);
}

.hero-content h1 {
  color: var(--green);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.hero-content h1 .accent { color: var(--yellow); }

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
  line-height: 1.65;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  align-items: center;
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 2px solid rgba(27,177,180,0.15);
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--green);
}

.hero-stat-label {
  font-size: 0.82rem;
  color: var(--color-text-light);
}

/* Boris on hero */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.boris-float-wrap {
  animation: borisFloat 3.5s ease-in-out infinite;
  position: relative;
  filter: drop-shadow(0 16px 32px rgba(27,177,180,0.18));
}

@keyframes borisFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* Real beaver image — remove white bg via multiply */
.boris-hero-photo {
  width: 280px;
  height: auto;
  border-radius: var(--radius-lg);
  mix-blend-mode: multiply;
  display: block;
}

[data-theme="dark"] .boris-hero-photo { mix-blend-mode: normal; }

.float-badge {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  padding: 9px 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  animation: badgeFloat 2.8s ease-in-out infinite;
}

[data-theme="dark"] .float-badge { background: #083030; color: white; }

.float-badge-1 {
  top: 10%; right: -20px;
  background: rgba(249,175,25,0.12);
  border: 2px solid var(--yellow);
  animation-delay: 0s;
}

.float-badge-2 {
  bottom: 20%; left: -20px;
  border: 2px solid var(--teal);
  color: var(--teal);
  animation-delay: 1s;
}

.float-badge-3 {
  top: 55%; right: -15px;
  border: 2px solid var(--green);
  color: var(--green);
  animation-delay: 0.5s;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0)    rotate(-1.5deg); }
  50%       { transform: translateY(-8px) rotate(1.5deg);  }
}

/* ===== ABOUT BORIS ===== */
.about-boris {
  background: #FFFFFF;
  border-top: 3px solid rgba(27,177,180,0.15);
}

[data-theme="dark"] .about-boris { background: #052222; }

.boris-hero-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.boris-full-img {
  max-width: 420px;
  width: 100%;
  border-radius: var(--radius-lg);
  mix-blend-mode: multiply;
  filter: drop-shadow(0 12px 28px rgba(27,177,180,0.18));
  display: block;
}

[data-theme="dark"] .boris-full-img { mix-blend-mode: normal; }

.boris-description {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--green);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ===== ESG SECTION ===== */
.esg-section { background: rgba(27,177,180,0.05); }

[data-theme="dark"] .esg-section { background: #052222; }

.esg-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.esg-card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--teal);
  transition: transform var(--transition), box-shadow var(--transition);
}

[data-theme="dark"] .esg-card { background: #083030; }

.esg-card:nth-child(2) { border-color: var(--green); }
.esg-card:nth-child(3) { border-color: var(--yellow); }

.esg-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.esg-icon-wrap {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(27,177,180,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto var(--space-md);
}

.esg-card:nth-child(2) .esg-icon-wrap { background: rgba(105,178,56,0.1); }
.esg-card:nth-child(3) .esg-icon-wrap { background: rgba(249,175,25,0.1); }

.esg-card h3 { font-size: 1.2rem; color: var(--teal); margin-bottom: var(--space-sm); }
.esg-card:nth-child(2) h3 { color: var(--green); }
.esg-card:nth-child(3) h3 { color: var(--yellow); }

.esg-card p { color: var(--color-text-light); font-size: 0.92rem; line-height: 1.6; }

.esg-facts {
  background: linear-gradient(135deg, var(--teal) 0%, var(--green) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  color: white;
}

.esg-facts h3 { text-align: center; margin-bottom: var(--space-xl); font-size: 1.2rem; }

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.fact-item {
  text-align: center;
  padding: var(--space-md);
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
}

.fact-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--yellow);
  display: block;
  margin-bottom: 4px;
}

.fact-label { font-size: 0.88rem; opacity: 0.88; line-height: 1.4; }

/* ===== HOW TO PLAY ===== */
.how-to-play {
  background: white;
}

[data-theme="dark"] .how-to-play { background: #052222; }

.stepper {
  position: relative;
  display: flex;
  gap: 0;
}

.stepper-line {
  position: absolute;
  top: 36px;
  left: calc(10% + 36px);
  right: calc(10% + 36px);
  height: 3px;
  background: linear-gradient(to right, var(--teal), var(--yellow));
  z-index: 0;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--space-sm);
  position: relative;
  z-index: 1;
}

.step-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
  position: relative;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), background var(--transition);
}

[data-theme="dark"] .step-circle { background: #083030; }

.step:hover .step-circle {
  transform: scale(1.12);
  background: rgba(249,175,25,0.1);
}

.step-num {
  position: absolute;
  top: -6px; right: -6px;
  width: 24px; height: 24px;
  background: var(--yellow);
  color: #1A1A1A;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.78rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}

.step h3 { font-size: 0.88rem; color: var(--green); margin-bottom: 4px; }
.step p   { font-size: 0.78rem; color: var(--color-text-light); line-height: 1.4; }

/* ===== AUTH SECTION ===== */
.auth-section {
  background: linear-gradient(160deg, var(--teal) 0%, var(--green) 100%);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.auth-section::before {
  content: '🦫';
  position: absolute;
  font-size: 200px;
  opacity: 0.04;
  top: -30px; right: -30px;
  transform: rotate(-15deg);
  pointer-events: none;
}

.auth-section .section-header h2 { color: white; }
.auth-section .section-header p  { color: rgba(255,255,255,0.8); }

.auth-container { max-width: 460px; margin: 0 auto; }

.auth-tabs {
  display: flex;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 4px;
  margin-bottom: var(--space-lg);
  gap: 4px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border-radius: calc(var(--radius-lg) - 4px);
  transition: background var(--transition), color var(--transition);
}

.auth-tab.active {
  background: white;
  color: var(--green);
}

.auth-form {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

.form-group { margin-bottom: var(--space-lg); }

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-text);
  font-size: 0.92rem;
}

.form-group .field-hint {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--color-text-light);
  margin-left: 4px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(27,177,180,0.25);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: white;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(27,177,180,0.15);
}

.form-group input.field-error { border-color: var(--color-error); }

.field-error-msg { color: var(--color-error); font-size: 0.82rem; margin-top: 5px; display: none; }
.field-error-msg.visible { display: block; }

.auth-submit { width: 100%; padding: 14px; font-size: 1.05rem; margin-top: var(--space-sm); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--teal);
  color: white;
  padding: var(--space-xl) 0;
  text-align: center;
}

.site-footer p { opacity: 0.8; font-size: 0.88rem; line-height: 1.8; }
.site-footer a { color: var(--yellow); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .esg-columns { grid-template-columns: 1fr; }
  .facts-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; }
  .boris-hero-photo { width: 200px; }
  .float-badge { display: none; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; gap: var(--space-lg); }
  .hero-subtitle { margin: 0 auto var(--space-xl); }
  .stepper { flex-direction: column; gap: var(--space-lg); }
  .stepper-line { display: none; }
  .step { flex-direction: row; text-align: left; gap: var(--space-md); align-items: flex-start; }
  .step-circle { flex-shrink: 0; width: 56px; height: 56px; font-size: 1.4rem; }
  .step-text { flex: 1; }
  .boris-full-img { max-width: 300px; }
  .boris-description { font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .facts-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: var(--space-md); }
}

/* ===== LEARN SECTION (index.html) ===== */
.learn-section { background: #F0FAF4; }

.learn-block {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.learn-block h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: var(--space-md);
}

.esg-basics-list { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-md); }

.esg-basics-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  background: #F8FFF4;
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.esg-basics-letter {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  width: 2.5rem;
  text-align: center;
}

.esg-basics-item--e .esg-basics-letter { color: var(--green); }
.esg-basics-item--s .esg-basics-letter { color: var(--teal); }
.esg-basics-item--g .esg-basics-letter { color: var(--yellow); }

.esg-facts-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.esg-facts-list li {
  background: #F0FAF4;
  border-radius: var(--radius-sm);
  padding: 0.5rem var(--space-md);
  font-size: 0.95rem;
}

.trash-sort-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-sm);
}

.trash-sort-item {
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-sm);
  text-align: center;
  font-size: 0.85rem;
}

.trash-sort-emoji { font-size: 1.5rem; margin-bottom: 0.3rem; }
.trash-sort-name  { font-weight: 700; font-family: var(--font-heading); margin-bottom: 0.25rem; }
.trash-sort-examples { color: var(--color-text-light); font-size: 0.78rem; }

.quiz-preview { display: flex; flex-direction: column; gap: var(--space-md); }

.quiz-preview-item {
  background: #F8FFF4;
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.quiz-q {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.quiz-answers { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.quiz-a {
  background: #E8F5E9;
  border-radius: var(--radius-full);
  padding: 0.25rem 0.75rem;
  font-size: 0.88rem;
  color: var(--color-text-light);
}

.quiz-a--correct {
  background: var(--green);
  color: white;
  font-weight: 700;
}

@media (max-width: 640px) {
  .trash-sort-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 400px) {
  .trash-sort-grid { grid-template-columns: repeat(2, 1fr); }
}
