/*
 * diBoaS Mascots Page - Critical CSS
 * Above-the-fold mascot introduction experience
 * Target: First meaningful paint optimization
 */

/* ===========================
   MASCOTS COLOR SYSTEM (CRITICAL)
   =========================== */

:root {
  /* Mascot-specific colors */
  --aqua-primary: #4ECDC4;
  --aqua-light: #A8E6CF;
  --aqua-dark: #26A69A;
  --aqua-background: #F0FDFC;
  --aqua-gradient: linear-gradient(135deg, #4ECDC4, #26A69A);

  --verde-primary: #A8E6CF;
  --verde-light: #C8F7C5;
  --verde-dark: #66BB6A;
  --verde-background: #F1F8E9;
  --verde-gradient: linear-gradient(135deg, #A8E6CF, #66BB6A);

  --mystic-primary: #B39DDB;
  --mystic-light: #D1C4E9;
  --mystic-dark: #7E57C2;
  --mystic-background: #F3E5F5;
  --mystic-gradient: linear-gradient(135deg, #B39DDB, #7E57C2);

  --coral-primary: #FFB3BA;
  --coral-light: #FFCDD2;
  --coral-dark: #E57373;
  --coral-background: #FFF3E0;
  --coral-gradient: linear-gradient(135deg, #FFB3BA, #E57373);

  /* Animation properties */
  --transform-speed: 0.8s;
  --morph-bezier: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --float-duration: 4s;
  --glow-intensity: 0.3;
}

/* ===========================
   LAYOUT STRUCTURE (CRITICAL)
   =========================== */

.mascots-layout {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--aqua-background) 0%, var(--verde-background) 50%, var(--mystic-background) 100%);
  position: relative;
  overflow-x: hidden;
}

.mascots-layout::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='rgba(78,205,196,0.1)'%3e%3cpath d='m0 2 30 0 0 30-30 0z'/%3e%3c/svg%3e") repeat;
  pointer-events: none;
  z-index: 1;
}

/* ===========================
   HEADER (CRITICAL)
   =========================== */

.mascots-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(78, 205, 196, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  max-width: 1400px;
  margin: 0 auto;
}

.mascots-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.mascots-logo:hover {
  transform: scale(1.05);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--aqua-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: var(--text-lg);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--text-primary);
}

/* ===========================
   HERO SECTION (CRITICAL)
   =========================== */

.hero-section {
  position: relative;
  z-index: 2;
  padding: var(--space-20) 0;
  text-align: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--aqua-primary), var(--verde-primary), var(--mystic-primary), var(--coral-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 5s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-mascots-preview {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.preview-mascot {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s var(--morph-bezier);
  position: relative;
  overflow: hidden;
  border: 3px solid transparent;
}

.preview-mascot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--aqua-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.preview-mascot:hover::before {
  opacity: 1;
}

.preview-mascot:hover {
  transform: scale(1.1) rotate(5deg);
}

.preview-mascot.aqua {
  background: var(--aqua-background);
  border-color: var(--aqua-primary);
}

.preview-mascot.verde {
  background: var(--verde-background);
  border-color: var(--verde-primary);
}

.preview-mascot.mystic {
  background: var(--mystic-background);
  border-color: var(--mystic-primary);
}

.preview-mascot.coral {
  background: var(--coral-background);
  border-color: var(--coral-primary);
}

.preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.cta-primary {
  background: var(--aqua-gradient);
  color: white;
  border: none;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  font-size: var(--text-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3);
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--aqua-primary);
  border: 2px solid var(--aqua-primary);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  font-size: var(--text-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
}

.cta-secondary:hover {
  background: var(--aqua-primary);
  color: white;
  transform: translateY(-2px);
}

/* ===========================
   MASCOT GRID PREVIEW (CRITICAL)
   =========================== */

.mascots-grid-preview {
  position: relative;
  z-index: 2;
  padding: var(--space-16) 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
}

.grid-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.grid-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.grid-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.grid-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.mascots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
}

.mascot-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(78, 205, 196, 0.2);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.mascot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--aqua-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.mascot-card:hover::before {
  transform: scaleX(1);
}

.mascot-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(78, 205, 196, 0.2);
  border-color: var(--aqua-primary);
}

.mascot-card.aqua::before {
  background: var(--aqua-gradient);
}

.mascot-card.verde::before {
  background: var(--verde-gradient);
}

.mascot-card.mystic::before {
  background: var(--mystic-gradient);
}

.mascot-card.coral::before {
  background: var(--coral-gradient);
}

.mascot-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 4px solid transparent;
  transition: all 0.3s ease;
}

.mascot-card.aqua .mascot-avatar {
  border-color: var(--aqua-primary);
}

.mascot-card.verde .mascot-avatar {
  border-color: var(--verde-primary);
}

.mascot-card.mystic .mascot-avatar {
  border-color: var(--mystic-primary);
}

.mascot-card.coral .mascot-avatar {
  border-color: var(--coral-primary);
}

.mascot-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mascot-card:hover .mascot-image {
  transform: scale(1.1);
}

.mascot-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.mascot-role {
  font-size: var(--text-base);
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: var(--space-4);
}

.mascot-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

/* ===========================
   MASCOT SPECIALTIES (CRITICAL)
   =========================== */

.mascot-specialties {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.specialty-badge {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.mascot-card.aqua .specialty-badge {
  background: var(--aqua-background);
  color: var(--aqua-primary);
}

.mascot-card.verde .specialty-badge {
  background: var(--verde-background);
  color: var(--verde-primary);
}

.mascot-card.mystic .specialty-badge {
  background: var(--mystic-background);
  color: var(--mystic-primary);
}

.mascot-card.coral .specialty-badge {
  background: var(--coral-background);
  color: var(--coral-primary);
}

/* ===========================
   LOADING STATES (CRITICAL)
   =========================== */

.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(78, 205, 196, 0.2);
  border-radius: 50%;
  border-top-color: var(--aqua-primary);
  animation: spin 1s linear infinite;
}

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

.mascot-skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 25%, rgba(255, 255, 255, 0.5) 37%, rgba(255, 255, 255, 0.8) 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-2xl);
  height: 400px;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}