/* ============================================
   SING & LEARN - DESIGN SYSTEM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

/* ============================================
   PALETA DE CORES
   ============================================ */
:root {
  /* Cores principais */
  --navy: #081B46;
  --navy-light: #124A94;
  --blue-electric: #0757F5;
  --cyan: #18BDF2;
  --purple: #7138D4;
  --pink-coral: #E86787;
  --yellow-music: #F6B81A;
  --green-success: #19A962;
  --green-educ: #24883D;
  --orange-energy: #F58A20;
  
  /* Fundos */
  --bg-light: #F7F8FC;
  --bg-white: #FFFFFF;
  --bg-dark-surface: #061A3A;
  --bg-card-dark: #0B2852;
  
  /* Texto */
  --text-primary: #0A1837;
  --text-secondary: #6F7890;
  --text-white: #FFFFFF;
  
  /* Gradientes */
  --gradient-brand: linear-gradient(135deg, #0757F5, #18BDF2, #7138D4, #E86787, #F6B81A);
  --gradient-ai: linear-gradient(180deg, #092C68 0%, #061A3A 100%);
  --gradient-flashcard: linear-gradient(145deg, #ED6F89 0%, #8B4BB5 48%, #263B88 100%);
  --gradient-conquest: linear-gradient(180deg, #174F9D 0%, #061A3A 100%);
  --gradient-primary: linear-gradient(90deg, #0757F5 0%, #164DEB 100%);
  
  /* Tipografia */
  --font-kids: 'Nunito Sans', sans-serif;
  --font-admin: 'Inter', sans-serif;
  
  /* Espaçamentos */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-card: 0 8px 30px rgba(8, 27, 70, 0.12);
  --shadow-card-hover: 0 12px 40px rgba(8, 27, 70, 0.18);
}

/* ============================================
   RESET E BASE
   ============================================ */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  font-family: var(--font-kids);
  background: var(--bg-light);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   BOTÕES
   ============================================ */
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  font-family: var(--font-kids);
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(7, 87, 245, 0.3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  touch-action: manipulation;
  user-select: none;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--blue-electric);
  border: 2px solid var(--blue-electric);
  border-radius: 50px;
  padding: 14px 32px;
  font-family: var(--font-kids);
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  touch-action: manipulation;
}

.btn-secondary:active {
  transform: scale(0.97);
}

/* ============================================
   CARDS
   ============================================ */
.card-kids {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-kids:active {
  transform: scale(0.98);
}

.card-dark {
  background: var(--bg-card-dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--text-white);
}

/* ============================================
   BUTTONS DEMO (login rápido)
   ============================================ */
.btn-demo-profile {
  background: transparent;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.btn-demo-profile:active {
  transform: scale(0.95);
  border-color: var(--blue-electric);
}

.btn-demo-profile .profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--blue-electric);
  border-radius: 10px;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 576px) {
  .btn-primary {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .card-kids {
    padding: 16px;
    border-radius: var(--radius-md);
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  /* Tablets */
  .card-kids {
    padding: 24px;
  }
}

@media (min-width: 1024px) {
  /* Desktop */
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(7, 87, 245, 0.4);
  }
  
  .card-kids:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
  }
}