/* Cartas a Santa - Shared Styles */

/* CSS Variables - Christmas Color Palette */
:root {
  /* Primary Christmas colors */
  --pine: #0e3b2e;
  --holly: #1f6f52;
  --berry: #d93b3b;
  --gold: #f1c93b;
  --snow: #f5fbff;
  --mint: #b8f7e1;
  --cocoa: #2b1a10;
  
  /* Background gradients */
  --bg-dark: #0a2818;
  --bg-medium: #134e2e;
  --bg-light: #1a6b3f;
  
  /* UI colors - semi-transparent surfaces */
  --surface: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(255, 255, 255, 0.15);
  --card-bg-dark: rgba(20, 78, 46, 0.3);
  --border: rgba(0, 0, 0, 0.2);
  
  /* Accent colors */
  --accent-mint: #b8f7e1;
  --accent-pink: #ff8b94;
  --accent-yellow: #ffd3b6;
  --whatsapp: #25D366;
  
  /* Text colors */
  --text-primary: #f5fbff;
  --text-light: #f8f9fa;
  --text-muted: #b8f7e1;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(241, 201, 59, 0.3);
}

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

a {
  color: inherit;
}

html, body {
  height: 100%;
  background: var(--pine);
  color: var(--snow);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

/* Snow Canvas */
.snow-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.back-link {
  color: var(--mint);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 0.8;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border-radius: 8px;
  padding: 4px;
  border: 2px solid var(--border);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--snow);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.lang-btn.active {
  background: var(--holly);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  border: 2px solid var(--border);
  transition: transform 0.1s, box-shadow 0.1s;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--cocoa);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: var(--holly);
  color: var(--snow);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
}

.btn-secondary:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}

.btn-hero {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  background: var(--gold);
  color: var(--cocoa);
  border: 2px solid var(--border);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn-hero:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: white;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-whatsapp:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}

/* Icons */
.icon {
  display: inline-block;
}

.whatsapp-icon {
  font-size: 1.5rem;
}

/* Section Titles */
.section-title {
  font-family: 'Silkscreen', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 32px;
  text-align: center;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

/* Links */
.inline-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.inline-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Footer */
.footer {
  text-align: center;
  padding: 24px 0;
  color: var(--mint);
  opacity: 0.8;
  font-size: 0.9375rem;
}

.footer-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.2s;
}

.footer-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Animations */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes glow {
  0%, 100% { 
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3), 0 0 30px rgba(241, 201, 59, 0.5); 
  }
  50% { 
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3), 0 0 50px rgba(241, 201, 59, 0.8); 
  }
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.stat-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  animation: bounce 2s infinite;
}

.stat-value {
  font-family: 'Silkscreen', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 1rem;
  color: var(--snow);
  font-weight: 600;
  margin-bottom: 4px;
}

.stat-subtext {
  font-size: 0.875rem;
  color: var(--mint);
  opacity: 0.8;
}

/* Notes */
.note {
  display: flex;
  gap: 12px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.note.info {
  border-color: #4a9eff;
  background: rgba(74, 158, 255, 0.05);
}

.note.success {
  border-color: var(--mint);
  background: rgba(184, 247, 225, 0.05);
}

.note.warning {
  border-color: #ff9800;
  background: rgba(255, 152, 0, 0.05);
}

.note-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.note p {
  font-size: 0.9375rem;
  color: var(--mint);
  line-height: 1.5;
}

.note strong {
  color: var(--snow);
}

/* Responsive Design */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

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

  .section-title {
    font-size: 1.5rem;
  }
}
