/* ═══════════════════════════════════════════════════════
   EliXO — Design System & Stylesheet
   Coleta Seletiva Virtual App Simulator
   ═══════════════════════════════════════════════════════ */

/* ─── Google Fonts ───────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ─── CSS Custom Properties (Design Tokens) ──────────── */
:root {
  /* Brand Colors */
  --green-900: #0D3B14;
  --green-800: #1B5E20;
  --green-700: #2E7D32;
  --green-600: #388E3C;
  --green-500: #4CAF50;
  --green-400: #66BB6A;
  --green-300: #81C784;
  --green-200: #A5D6A7;
  --green-100: #C8E6C9;
  --green-50:  #E8F5E9;

  /* Neutrals */
  --gray-950: #0A0A14;
  --gray-900: #111122;
  --gray-850: #16162B;
  --gray-800: #1A1A2E;
  --gray-700: #2D2D44;
  --gray-600: #404060;
  --gray-500: #6B6B8D;
  --gray-400: #9999B3;
  --gray-300: #B8B8CC;
  --gray-200: #D4D4E3;
  --gray-100: #EDEDF4;
  --gray-50:  #F8F8FC;

  /* App Screen Colors */
  --app-bg: #F5F7FA;
  --app-surface: #FFFFFF;
  --app-text: #1A1A2E;
  --app-text-secondary: #6B6B8D;
  --app-border: #E8E8F0;

  /* Bin Colors */
  --bin-blue: #1565C0;
  --bin-red: #C62828;
  --bin-green: #2E7D32;
  --bin-yellow: #F9A825;
  --bin-brown: #5D4037;
  --bin-gray: #607D8B;

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 40px rgba(76, 175, 80, 0.2);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 500ms;

  /* Phone dimensions */
  --phone-width: 375px;
  --phone-height: 812px;
  --phone-radius: 50px;
  --phone-bezel: 12px;
  --notch-width: 160px;
  --notch-height: 34px;
}

/* ─── Reset & Base ───────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: #FFFFFF;
  color: var(--gray-800);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ─── Background Scene ───────────────────────────────── */
.scene {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #FFFFFF 0%, #F5F7FA 100%);
}

.scene::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 80%, rgba(76, 175, 80, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(76, 175, 80, 0.03) 0%, transparent 50%);
}

.scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 10 C25 15 20 25 30 30 C40 25 35 15 30 10Z' fill='rgba(76,175,80,0.03)'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  animation: patternDrift 60s linear infinite;
}

@keyframes patternDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* Floating particles */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: floatParticle linear infinite;
  opacity: 0;
}

@keyframes floatParticle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ─── Page Layout ────────────────────────────────────── */
.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-xl) var(--space-lg);
  gap: var(--space-xl);
}

/* ─── Page Title ─────────────────────────────────────── */
.page-title {
  text-align: center;
  animation: fadeInDown 0.8s var(--ease-out) both;
}

.page-title h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green-600), var(--green-800), var(--green-600));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 3s ease-in-out infinite;
  letter-spacing: -0.02em;
}

.page-title p {
  font-size: 1rem;
  color: var(--gray-600);
  margin-top: var(--space-sm);
  font-weight: 500;
}

@keyframes shimmerText {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Smartphone Frame ───────────────────────────────── */
.smartphone {
  position: relative;
  width: calc(var(--phone-width) + var(--phone-bezel) * 2);
  height: calc(var(--phone-height) + var(--phone-bezel) * 2);
  border-radius: var(--phone-radius);
  background: linear-gradient(145deg, #2a2a3a, #1a1a28);
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.06),
    0 0 0 4px rgba(0,0,0,0.3),
    var(--shadow-xl),
    0 0 80px rgba(76, 175, 80, 0.08);
  animation: phoneFloat 6s ease-in-out infinite, fadeInUp 1s var(--ease-out) both;
  animation-delay: 0s, 0.2s;
  flex-shrink: 0;
}

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

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Phone side buttons */
.smartphone::before {
  content: '';
  position: absolute;
  right: -3px;
  top: 120px;
  width: 3px;
  height: 30px;
  background: linear-gradient(180deg, #3a3a4a, #2a2a3a);
  border-radius: 0 2px 2px 0;
}

.smartphone::after {
  content: '';
  position: absolute;
  left: -3px;
  top: 140px;
  width: 3px;
  height: 60px;
  background: linear-gradient(180deg, #3a3a4a, #2a2a3a);
  border-radius: 2px 0 0 2px;
  box-shadow: 0 40px 0 #2a2a3a;
}

/* Notch */
.smartphone-notch {
  position: absolute;
  top: var(--phone-bezel);
  left: 50%;
  transform: translateX(-50%);
  width: var(--notch-width);
  height: var(--notch-height);
  background: #1a1a28;
  border-radius: 0 0 20px 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.smartphone-notch::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a3a4a, #1a2a3a);
  border: 1px solid rgba(255,255,255,0.05);
}

.smartphone-notch::after {
  content: '';
  width: 50px;
  height: 5px;
  border-radius: var(--radius-full);
  background: #2a2a3a;
}

/* Screen Container */
.smartphone-screen {
  position: absolute;
  top: var(--phone-bezel);
  left: var(--phone-bezel);
  right: var(--phone-bezel);
  bottom: var(--phone-bezel);
  border-radius: calc(var(--phone-radius) - var(--phone-bezel));
  overflow: hidden;
  background: var(--app-bg);
  display: flex;
  flex-direction: column;
}

/* Status Bar */
.status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  z-index: 90;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--app-text);
}

.status-bar-time {
  font-weight: 700;
}

.status-bar-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
}

/* ─── App Header ─────────────────────────────────────── */
.app-header {
  padding: 52px var(--space-lg) var(--space-md);
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  color: white;
  position: relative;
  z-index: 10;
}

.app-header-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.app-header-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.app-header h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.app-header-subtitle {
  font-size: 0.7rem;
  opacity: 0.85;
  margin-top: 2px;
  font-weight: 300;
}

/* Back button */
.app-back-btn {
  position: absolute;
  left: var(--space-md);
  top: 52px;
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: var(--space-xs);
  opacity: 0.9;
  transition: opacity var(--duration-fast) ease;
  display: none;
}

.app-back-btn:hover {
  opacity: 1;
}

.app-header.has-back .app-header-title {
  margin-left: var(--space-xl);
}

.app-header.has-back .app-back-btn {
  display: block;
}

/* ─── App Content Area ───────────────────────────────── */
.app-content {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.app-content::-webkit-scrollbar {
  width: 3px;
}

.app-content::-webkit-scrollbar-thumb {
  background: var(--green-300);
  border-radius: var(--radius-full);
}

/* Screen transitions */
.app-screen {
  display: none;
  animation: screenFadeIn var(--duration-normal) var(--ease-out) both;
}

.app-screen.active {
  display: block;
}

@keyframes screenFadeIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ─── Bottom Navigation ──────────────────────────────── */
.bottom-nav {
  height: 64px;
  background: var(--app-surface);
  border-top: 1px solid var(--app-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: 4px;
  z-index: 50;
  flex-shrink: 0;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs) var(--space-sm);
  color: var(--gray-500);
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.nav-item-icon {
  font-size: 1.4rem;
  transition: transform var(--duration-fast) var(--ease-spring);
  line-height: 1;
}

.nav-item.active {
  color: var(--green-600);
}

.nav-item.active .nav-item-icon {
  transform: scale(1.15);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--green-500);
  border-radius: var(--radius-full);
}

.nav-item:active .nav-item-icon {
  transform: scale(0.9);
}

/* ─── Welcome Screen ─────────────────────────────────── */
.welcome-screen {
  padding: var(--space-lg);
}

.welcome-hero {
  text-align: center;
  padding: var(--space-xl) 0;
}

.welcome-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-lg);
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: var(--shadow-lg), 0 0 0 0 rgba(76, 175, 80, 0.3); }
  50% { box-shadow: var(--shadow-lg), 0 0 0 10px rgba(76, 175, 80, 0); }
}

.welcome-hero h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--app-text);
  margin-bottom: var(--space-xs);
}

.welcome-hero p {
  font-size: 0.8rem;
  color: var(--app-text-secondary);
  line-height: 1.5;
}

/* Location Form */
.location-form {
  background: var(--app-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  margin-top: var(--space-lg);
}

.location-form h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--app-text);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

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

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--app-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.form-group select {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--app-border);
  border-radius: var(--radius-md);
  background: var(--app-bg);
  color: var(--app-text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--duration-fast) ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4L6 8L10 4' fill='none' stroke='%236B6B8D' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.form-group select:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.btn-enter {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
  margin-top: var(--space-sm);
}

.btn-enter:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

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

.btn-enter:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ─── Calendar Screen ────────────────────────────────── */
.calendar-screen {
  padding: var(--space-lg);
}

.calendar-location-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--green-50);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--green-800);
  margin-bottom: var(--space-lg);
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.calendar-nav-btn {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--app-text);
  transition: all var(--duration-fast) ease;
}

.calendar-nav-btn:hover {
  background: var(--green-50);
  border-color: var(--green-300);
}

.calendar-month-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--app-text);
}

/* Calendar Grid */
.calendar-grid {
  background: var(--app-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: var(--space-sm);
}

.calendar-weekday {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--app-text-secondary);
  text-transform: uppercase;
  padding: var(--space-xs) 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--app-text);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  position: relative;
  gap: 1px;
}

.calendar-day:hover {
  background: var(--green-50);
}

.calendar-day.empty {
  cursor: default;
}

.calendar-day.today {
  font-weight: 700;
  box-shadow: inset 0 0 0 2px var(--green-500);
}

.calendar-day.selected {
  background: var(--green-500);
  color: white;
}

.calendar-day-number {
  font-size: 0.72rem;
  line-height: 1;
}

.calendar-day-dots {
  display: flex;
  gap: 2px;
  height: 5px;
}

.calendar-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

/* Legend */
.calendar-legend {
  margin-top: var(--space-lg);
  background: var(--app-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.calendar-legend h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--app-text);
  margin-bottom: var(--space-md);
}

.legend-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.72rem;
  color: var(--app-text-secondary);
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-item-icon {
  font-size: 0.85rem;
}

/* Day detail modal */
.day-detail {
  margin-top: var(--space-lg);
  background: var(--app-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--green-500);
  animation: slideUp var(--duration-normal) var(--ease-out) both;
  display: none;
}

.day-detail.visible {
  display: block;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.day-detail h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--app-text);
  margin-bottom: var(--space-md);
}

.day-detail-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: 0.78rem;
  color: var(--app-text-secondary);
  border-bottom: 1px solid var(--app-border);
}

.day-detail-item:last-child {
  border-bottom: none;
}

.day-detail-item .detail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.no-collection {
  text-align: center;
  padding: var(--space-md);
  color: var(--app-text-secondary);
  font-size: 0.78rem;
  font-style: italic;
}

/* ─── Map Screen ─────────────────────────────────────── */
.map-screen .map-container {
  position: relative;
  width: 100%;
  height: 340px;
  background: var(--app-bg);
}

.map-screen .map-container #elixo-map {
  width: 100%;
  height: 100%;
}

.map-legend {
  padding: var(--space-lg);
}

.map-legend h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--app-text);
  margin-bottom: var(--space-md);
}

.map-legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--app-surface);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--app-text-secondary);
  box-shadow: var(--shadow-sm);
}

.map-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Map points list */
.map-points-list {
  padding: 0 var(--space-lg) var(--space-lg);
}

.map-points-list h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--app-text);
  margin-bottom: var(--space-md);
}

.map-point-card {
  background: var(--app-surface);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  transition: all var(--duration-fast) ease;
  cursor: pointer;
}

.map-point-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.map-point-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--app-bg);
}

.map-point-info h5 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--app-text);
  margin-bottom: 2px;
}

.map-point-info p {
  font-size: 0.68rem;
  color: var(--app-text-secondary);
  line-height: 1.4;
}

.ecosacola-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-full);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--green-700);
  margin-top: 4px;
}

/* ─── Tips Screen ────────────────────────────────────── */
.tips-screen {
  padding: var(--space-lg);
}

.tips-screen h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--app-text);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.tip-card {
  background: var(--app-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
  overflow: hidden;
}

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

.tip-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.tip-card-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--green-50), var(--green-100));
}

.tip-card-title {
  flex: 1;
}

.tip-card-title h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--app-text);
  margin-bottom: 4px;
}

.tip-meta {
  display: flex;
  gap: var(--space-md);
}

.tip-meta span {
  font-size: 0.65rem;
  color: var(--app-text-secondary);
  display: flex;
  align-items: center;
  gap: 3px;
}

.tip-card-body {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--app-border);
  font-size: 0.78rem;
  color: var(--app-text-secondary);
  line-height: 1.6;
  display: none;
}

.tip-card.expanded .tip-card-body {
  display: block;
  animation: expandIn var(--duration-normal) var(--ease-out) both;
}

@keyframes expandIn {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 200px; }
}

.tip-card-chevron {
  font-size: 0.8rem;
  color: var(--gray-400);
  transition: transform var(--duration-fast) ease;
  flex-shrink: 0;
}

.tip-card.expanded .tip-card-chevron {
  transform: rotate(180deg);
}

/* Difficulty badges */
.difficulty-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.6rem;
  font-weight: 600;
}

.difficulty-badge.easy {
  background: #E8F5E9;
  color: #2E7D32;
}

.difficulty-badge.medium {
  background: #FFF3E0;
  color: #E65100;
}

.difficulty-badge.hard {
  background: #FFEBEE;
  color: #C62828;
}

/* ─── Bins Screen ────────────────────────────────────── */
.bins-screen {
  padding: var(--space-lg);
}

.bins-screen h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--app-text);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.bin-card {
  background: var(--app-surface);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
}

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

.bin-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
}

.bin-color-sample {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.bin-card-title h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--app-text);
}

.bin-card-title .bin-color-name {
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 2px;
}

.bin-card-body {
  padding: 0 var(--space-lg) var(--space-lg);
  display: none;
}

.bin-card.expanded .bin-card-body {
  display: block;
  animation: expandIn var(--duration-normal) var(--ease-out) both;
}

.bin-section {
  margin-bottom: var(--space-md);
}

.bin-section h5 {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--app-text);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.bin-section ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.bin-section li {
  padding: 3px 10px;
  background: var(--app-bg);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  color: var(--app-text-secondary);
}

.bin-section.no-put li {
  background: #FFF5F5;
  color: #C62828;
}

.bin-card-chevron {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--gray-400);
  transition: transform var(--duration-fast) ease;
}

.bin-card.expanded .bin-card-chevron {
  transform: rotate(180deg);
}

/* ─── Leaflet Custom Styles ──────────────────────────── */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
}

.leaflet-popup-content {
  margin: 12px 16px !important;
  font-family: var(--font-body) !important;
  font-size: 0.78rem !important;
  line-height: 1.5 !important;
}

.popup-title {
  font-weight: 600;
  color: var(--app-text);
  margin-bottom: 4px;
}

.popup-address {
  color: var(--app-text-secondary);
  font-size: 0.7rem;
}

.popup-ecosacola {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  padding: 2px 8px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-full);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--green-700);
}

/* Custom marker */
.custom-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: var(--shadow-md);
}

.custom-marker span {
  transform: rotate(45deg);
  font-size: 1rem;
}

/* ─── Loading Animation ──────────────────────────────── */
.app-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: var(--space-lg);
  padding: var(--space-xl);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--green-100);
  border-top-color: var(--green-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Project Info Card ──────────────────────────────── */
.project-info-card {
  background: #FFFFFF;
  border: 1px solid rgba(76, 175, 80, 0.2);
  border-radius: 16px;
  padding: var(--space-md) var(--space-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  max-width: 450px;
  width: 100%;
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.8s var(--ease-out) both;
  animation-delay: 0.15s;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: left;
}

.card-badge {
  align-self: flex-start;
  background: rgba(76, 175, 80, 0.15);
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.08em;
}

.project-headline {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green-900);
  line-height: 1.2;
  margin: 0;
}

.project-details {
  background: var(--gray-50);
  padding: var(--space-sm) var(--space-md);
  border-radius: 10px;
  border-left: 4px solid var(--green-600);
}

.project-institution {
  font-size: 0.9rem;
  color: var(--gray-800);
  margin: 0;
}

.project-sub-details {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin: 4px 0 0 0;
  font-weight: 600;
}

.project-team {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: 2px;
}

.project-team h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-700);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.team-list {
  list-style: none;
  padding: 0;
  margin: var(--space-xs) 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-list li {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-850);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-50);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  transition: all var(--duration-fast) ease;
}

.team-list li:hover {
  background: var(--green-50);
  color: var(--green-800);
  border-color: var(--green-200);
}

.team-list li::before {
  content: '🌿';
  font-size: 0.75rem;
}

.qr-code-section {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  border-top: 1px dashed var(--gray-200);
  padding-top: var(--space-md);
  margin-top: 4px;
}

.qr-code-img {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  padding: 4px;
  background: #FFFFFF;
}

.qr-code-desc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.qr-code-desc strong {
  font-size: 0.82rem;
  color: var(--gray-850);
  font-weight: 700;
}

.qr-code-desc span {
  font-size: 0.72rem;
  color: var(--gray-600);
  line-height: 1.45;
}

.sidebar-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 450px;
}

@media (min-width: 1024px) {
  .sidebar-panel {
    align-items: flex-start;
  }
}

/* ─── Footer Tag ─────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: var(--space-lg);
  animation: fadeInUp 1s var(--ease-out) both;
  animation-delay: 0.5s;
}

.site-footer p {
  font-size: 0.75rem;
  color: var(--gray-700);
  font-weight: 500;
}

.site-footer a {
  color: var(--green-700);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.site-footer a:hover {
  color: var(--green-800);
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 480px) {
  :root {
    --phone-width: 320px;
    --phone-height: 680px;
    --phone-radius: 40px;
    --phone-bezel: 8px;
    --notch-width: 130px;
    --notch-height: 28px;
  }

  .page-wrapper {
    padding: var(--space-md);
    min-height: auto;
    justify-content: flex-start;
    padding-top: var(--space-lg);
  }

  .page-title h1 {
    font-size: 1.8rem;
  }

  .smartphone {
    animation: none;
  }

  .site-footer {
    display: none;
  }
}

@media (max-width: 360px) {
  :root {
    --phone-width: 280px;
    --phone-height: 580px;
    --phone-radius: 35px;
  }
}

@media (min-width: 768px) and (max-height: 900px) {
  :root {
    --phone-height: 700px;
  }
}

@media (min-width: 1024px) {
  .page-wrapper {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: var(--space-3xl);
    padding: var(--space-3xl);
    max-width: 1200px;
    margin: 0 auto;
  }

  .page-title {
    text-align: left;
    max-width: 450px;
    margin-bottom: 0;
  }

  .page-title h1 {
    font-size: 3.5rem;
  }

  .page-title p {
    font-size: 1.2rem;
    margin-top: var(--space-md);
  }
}

/* ─── Accessibility ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
}

button:focus:not(:focus-visible) {
  outline: none;
}

/* Mouse trailing particles */
.mouse-particle {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.7), inset 0 0 4px rgba(255, 255, 255, 0.6);
  animation: fadeOutParticle 1.2s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes fadeOutParticle {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.95;
  }
  100% {
    transform: translate(-50%, -120px) scale(0.1);
    opacity: 0;
  }
}

