/* 
  ScoreTenant Premium Design System
  Fonts: Outfit (Headings), Inter (Body)
*/

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

:root {
  /* Vibrant Palette */
  --premium-dark: #0f172a;
  --premium-navy: #1e293b;
  --premium-primary: #3b82f6;
  --premium-secondary: #8b5cf6;
  --premium-accent: #0ea5e9;
  --premium-success: #10b981;
  --premium-warning: #f59e0b;
  --premium-danger: #ef4444;
  --premium-light: #f8fafc;
  --text-main: #334155;
  --text-muted: #64748b;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--premium-primary) 0%, var(--premium-secondary) 100%);
  --gradient-dark: linear-gradient(135deg, var(--premium-dark) 0%, var(--premium-navy) 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Global Typography & Font Scaling System */
html {
  font-size: 17.5px !important;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem !important;
  color: var(--text-main);
  background-color: var(--premium-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, .h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 2.25rem;
}

h2, .h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.85rem;
}

h3, .h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.5rem;
}

h4, .h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.3rem;
}

h5, .h5 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
}

h6, .h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
}

.brand-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p, .lead-text {
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Eliminate cramped micro-text across the application */
small, .small {
  font-size: 0.92rem !important;
  line-height: 1.45;
}

/* Form inputs & controls legibility */
.form-control, .form-select {
  font-size: 1.02rem;
  padding: 0.65rem 1rem;
}

.form-label {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

/* Buttons sizing */
.btn {
  font-size: 1.02rem;
  font-weight: 600;
}

.btn-sm {
  font-size: 0.92rem !important;
  padding: 0.38rem 0.85rem;
}

/* Badges readability */
.badge {
  font-size: 0.88rem !important;
  padding: 0.42em 0.75em;
  font-weight: 600;
}

/* Navigation items */
.navbar-nav .nav-link {
  font-size: 1.05rem;
}

/* Dropdown items */
.dropdown-item {
  font-size: 1rem;
}

/* Tables legibility */
.table th, .table td {
  font-size: 1.02rem;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.glass-dark {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  color: white;
}

/* Typography Enhancements */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Micro-Animations & Interactive Elements */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.hover-scale {
  transition: transform 0.2s ease;
}

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

/* Buttons */
.btn-premium {
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  color: white;
}

.btn-outline-premium {
  background: transparent;
  color: var(--premium-primary);
  border: 2px solid var(--premium-primary);
  border-radius: 8px;
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-premium:hover {
  background: var(--premium-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

/* Custom Sliders for Rating */
.custom-range {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  outline: none;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.1s;
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.custom-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.1s;
}

.custom-range::-moz-range-thumb:hover {
  transform: scale(1.2);
}
