/* ICEBERG x IDEX Custom Landing Page Styles */

:root {
  --bg-dark: #020617;
  --card-bg: rgba(15, 23, 42, 0.65);
  --card-border: rgba(255, 255, 255, 0.08);
  --accent-cyan: #22d3ee;
  --accent-cyan-dark: #0891b2;
  --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --text-muted: #94a3b8;
}

body {
  background-color: var(--bg-dark);
  color: #f8fafc;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  scroll-behavior: smooth;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.15);
}

.glass-card-elevated {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  border: 1.5px solid var(--accent-cyan);
  box-shadow: 0 0 25px rgba(34, 211, 238, 0.2);
}

/* Section Eyebrow Tags */
.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
}

/* Typography Overrides */
.gradient-heading {
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-accent-text {
  background: linear-gradient(135deg, #22d3ee 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Accessibility Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-cyan) !important;
  outline-offset: 2px !important;
}

/* Custom Tooltip */
.tooltip-trigger {
  position: relative;
  cursor: help;
}

.tooltip-trigger .tooltip-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 220px;
  background: #0f172a;
  color: #e2e8f0;
  text-align: center;
  padding: 0.6rem 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem;
  line-height: 1.25;
  z-index: 50;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.5);
  pointer-events: none;
}

.tooltip-trigger:hover .tooltip-content,
.tooltip-trigger:focus .tooltip-content {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Calendar Flow Tabs */
.calendar-step-pill {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.calendar-step-pill.active {
  background: rgba(34, 211, 238, 0.15);
  color: var(--accent-cyan);
  border-color: rgba(34, 211, 238, 0.3);
}

.calendar-step-pill.completed {
  color: #10b981;
}

/* Date Grid & Time Slot Buttons */
.date-grid-btn {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(15, 23, 42, 0.4);
  transition: all 0.15s ease;
}

.date-grid-btn:hover:not(:disabled) {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.1);
}

.date-grid-btn.selected {
  background: var(--accent-cyan);
  color: #020617;
  font-weight: 700;
}

.time-slot-btn {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(15, 23, 42, 0.5);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.time-slot-btn:hover:not(:disabled) {
  border-color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.15);
  color: var(--accent-cyan);
}

.time-slot-btn.selected {
  background: var(--accent-cyan);
  color: #020617;
  border-color: var(--accent-cyan);
}

.time-slot-btn:disabled, .time-slot-btn.reserved, .time-slot-btn.foggy {
  opacity: 0.5;
  cursor: not-allowed !important;
  background: rgba(15, 23, 42, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
  color: #64748b !important;
  filter: blur(0.4px);
  backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
  box-shadow: none !important;
  pointer-events: none;
}

.time-slot-btn:disabled::after, .time-slot-btn.reserved::after {
  content: '🔒 RESERVED';
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ef4444;
  margin-top: 0.2rem;
  text-transform: uppercase;
}

/* Service Detail Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  max-width: 600px;
  width: 90%;
  padding: 2rem;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-content {
  transform: scale(1);
}

/* Toast Banner */
#qr-toast {
  position: fixed;
  top: 5rem;
  right: 1.5rem;
  z-index: 999;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

#qr-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
