/* Homepage Specific Styles - Distinct from subpages */

/* Base reset for homepage */
.homepage {
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Enhanced Hero Section */
.hero-wrapper {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  padding: 80px 0 60px;
  margin-bottom: 60px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
}

.hero-pattern {
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.05) 35px, rgba(255,255,255,.05) 70px),
    repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255,255,255,.03) 35px, rgba(255,255,255,.03) 70px);
}

.hero-content {
  position: relative;
  text-align: center;
  color: white;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
  animation: fadeInDown 0.6s ease;
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -1px;
  animation: fadeInUp 0.6s ease;
}

.hero-accent {
  background: linear-gradient(90deg, #ffffff 0%, #a5f3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 400;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
  animation: fadeInUp 0.6s ease 0.1s both;
}

/* Quick Stats Bar - Simplified */
.quick-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.stat-item {
  text-align: center;
  padding: 20px 32px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.stat-number {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
}

/* Main Content Area */
.main-content {
  position: relative;
  z-index: 1;
  margin-top: -40px;
  padding-bottom: 80px;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
  margin: 0;
}

/* Enhanced Navigation Grid */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

/* Enhanced Navigation Cards */
.nav-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  opacity: 0;
}

.nav-card.animate-in {
  animation: slideInUp 0.5s ease forwards;
}

.nav-card.featured {
  grid-column: span 1;
  border-color: var(--brand-accent);
  background: linear-gradient(135deg, var(--card) 0%, rgba(14, 165, 233, 0.05) 100%);
}

.nav-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--brand-accent);
}

.card-header {
  padding: 24px 24px 0;
  position: relative;
}

.card-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 16px rgba(15, 58, 138, 0.2);
}

.card-badge {
  display: inline-block;
  padding: 4px 10px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  color: white;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-content {
  padding: 0 24px 24px;
  flex: 1;
}

.card-title {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}

.card-description {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 20px;
}

.card-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
}

.card-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(90deg, rgba(15, 58, 138, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: var(--brand-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
}

.card-action:hover {
  background: linear-gradient(90deg, rgba(15, 58, 138, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
  padding-left: 28px;
}

.action-arrow {
  transition: transform 0.2s ease;
}

.card-action:hover .action-arrow {
  transform: translateX(4px);
}

/* Quick Actions Bar */
.quick-actions {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-top: 48px;
  text-align: center;
}

.actions-title {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 24px;
}

.actions-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.quick-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(15, 58, 138, 0.3);
}

.quick-action-btn svg {
  flex-shrink: 0;
}

/* Homepage Footer */
.homepage-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 60px;
}

.footer-text {
  text-align: center;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 968px) {
  .hero-title {
    font-size: 36px;
  }
  
  .hero-description {
    font-size: 18px;
  }
  
  .quick-stats {
    gap: 20px;
  }
  
  .stat-number {
    font-size: 28px;
  }
  
  .nav-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-card.featured {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .hero-wrapper {
    padding: 60px 0 40px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .quick-stats {
    flex-direction: column;
    gap: 16px;
  }
  
  .stat-item {
    width: 100%;
    max-width: 280px;
  }
  
  .stat-divider {
    display: none;
  }
  
  .actions-grid {
    flex-direction: column;
  }
  
  .quick-action-btn {
    width: 100%;
  }
}

/* Z-index management */
.select2-container { z-index: 1050; }
.select2-dropdown { z-index: 1060; }
.flatpickr-calendar { z-index: 1070; }