/* public/static/css/app.css */
/* Blue Mirage Rentals — Custom styles extending Tailwind */

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  --navy:        #0A1628;
  --navy-600:    #1B3A6B;
  --navy-700:    #122344;
  --navy-800:    #0D1F3C;
  --cyan:        #00B4D8;
  --cyan-dark:   #0096C7;
  --cyan-light:  #48CAE4;
  --cyan-pale:   #CAF0F8;
  --white:       #FFFFFF;
  --gray-50:     #F8FAFC;
  --success:     #16A34A;
  --warning:     #D97706;
  --danger:      #DC2626;
}

/* ─── Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
}

/* ─── Animations ────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-cyan {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,180,216,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(0,180,216,0); }
}

.animate-fadeInUp { animation: fadeInUp 0.5s ease-out forwards; }
.animate-pulse-cyan { animation: pulse-cyan 2s infinite; }

/* ─── Header ────────────────────────────────────────────── */
#main-header {
  transition: box-shadow 0.3s ease;
}
#main-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn-primary {
  background: var(--cyan);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary:hover {
  background: var(--cyan-dark);
  transform: scale(1.02);
}

.btn-navy {
  background: var(--navy);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-navy:hover { background: var(--navy-600); }

/* ─── Cards ─────────────────────────────────────────────── */
.vehicle-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* ─── Forms ─────────────────────────────────────────────── */
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.6;
  cursor: pointer;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25em;
  padding-right: 2.5rem;
}

/* ─── Prose / Rich text ─────────────────────────────────── */
.prose p { margin-bottom: 1rem; }
.prose ul { padding-left: 1.5rem; list-style: disc; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.25rem; }

/* ─── FAQ toggle ─────────────────────────────────────────── */
.faq-answer {
  transition: max-height 0.3s ease, padding 0.3s ease;
}

/* ─── Booking steps ──────────────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}
.step-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.step-active .step-circle { background: var(--cyan); color: white; }
.step-done .step-circle { background: var(--success); color: white; }
.step-pending .step-circle { background: #E2E8F0; color: #94A3B8; }

/* ─── Admin sidebar ──────────────────────────────────────── */
.admin-sidebar a.active {
  background: rgba(0,180,216,0.1);
  color: var(--cyan);
  border-right: 3px solid var(--cyan);
}

/* ─── Responsive utilities ───────────────────────────────── */
@media (max-width: 640px) {
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.75rem; }
}

/* ─── Loading skeleton ───────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.5rem;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ─── Stripe payment element ─────────────────────────────── */
#payment-element {
  padding: 1rem;
  border: 1px solid #E2E8F0;
  border-radius: 0.75rem;
  background: #F8FAFC;
}

/* ─── Print ─────────────────────────────────────────────── */
@media print {
  header, footer, .no-print { display: none !important; }
  body { font-size: 12pt; }
}
