/**
 * Maison de Paon - Reusable UI Components
 */

/* ==========================================
   NAVIGATION
   ========================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background-color: rgba(252, 250, 248, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: var(--border-width) solid var(--gray-200);
  transition: background-color var(--transition-base);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--peacock-teal);
}

.nav-logo-tagline {
  display: none;
  font-size: var(--text-xs);
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
}

@media (min-width: 768px) {
  .nav-logo-tagline {
    display: block;
  }
}

.nav-links {
  display: none;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--gray-700);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--peacock-teal);
}

.nav-link.active {
  color: var(--peacock-teal);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-cta {
  display: none;
}

@media (min-width: 768px) {
  .nav-cta {
    display: inline-flex;
  }
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--gray-700);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle-icon {
  width: 24px;
  height: 24px;
}

/* Mobile Menu */
.nav-mobile {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fcfaf8;
  padding: var(--space-6);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  z-index: var(--z-modal);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-mobile.open {
  transform: translateX(0);
}

@media (min-width: 768px) {
  .nav-mobile {
    display: none;
  }
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.nav-mobile-link {
  display: block;
  width: 100%;
  text-align: left;
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--gray-700);
  padding: var(--space-3) 0;
  border-bottom: var(--border-width) solid var(--gray-200);
  background: none;
  text-decoration: none;
}

.nav-mobile-cta {
  margin-top: var(--space-6);
  width: 100%;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-8);
  max-width: 800px;
}

.hero-title {
  color: white;
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: var(--text-6xl);
  }
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: var(--text-xl);
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

/* ==========================================
   ROOM CARDS
   ========================================== */

.room-card {
  background-color: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.room-card-image {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.room-card-body {
  padding: var(--space-6);
}

.room-card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.room-card-description {
  color: var(--gray-600);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.room-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.room-card-price {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--peacock-teal);
}

.room-card-price span {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-normal);
  color: var(--gray-500);
}

/* ==========================================
   AMENITIES
   ========================================== */

.amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.amenity-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  color: var(--peacock-teal);
  background-color: rgba(6, 95, 70, 0.1);
  border-radius: var(--radius-full);
}

/* ==========================================
   LOADING STATES
   ========================================== */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--gray-200) 25%,
    var(--gray-100) 50%,
    var(--gray-200) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 1em;
  margin-bottom: var(--space-2);
}

.skeleton-title {
  height: 1.5em;
  width: 60%;
  margin-bottom: var(--space-4);
}

.skeleton-image {
  aspect-ratio: 16 / 10;
}

/* ==========================================
   ALERTS & NOTIFICATIONS
   ========================================== */

.alert {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border: var(--border-width) solid var(--color-success);
}

.alert-error {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
  border: var(--border-width) solid var(--color-error);
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--color-warning);
  border: var(--border-width) solid var(--color-warning);
}

.alert-info {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--color-info);
  border: var(--border-width) solid var(--color-info);
}

/* ==========================================
   BADGES
   ========================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.badge-primary {
  background-color: var(--peacock-teal);
  color: white;
}

.badge-accent {
  background-color: var(--moroccan-gold);
  color: var(--gray-900);
}

.badge-success {
  background-color: var(--color-success);
  color: white;
}

.badge-warning {
  background-color: var(--color-warning);
  color: var(--gray-900);
}

.badge-error {
  background-color: var(--color-error);
  color: white;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
  background-color: var(--gray-900);
  color: var(--gray-300);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: white;
  margin-bottom: var(--space-4);
}

.footer-description {
  color: var(--gray-400);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.footer-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: white;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--moroccan-gold);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: var(--border-width) solid var(--gray-800);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--gray-500);
}
