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

/* ===== CSS RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Colors - Light Mode */
  --background: hsl(30, 20%, 98%);
  --foreground: hsl(220, 25%, 10%);

  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(220, 25%, 10%);

  --popover: hsl(0, 0%, 100%);
  --popover-foreground: hsl(220, 25%, 10%);

  --primary: hsl(220, 25%, 15%);
  --primary-foreground: hsl(30, 20%, 98%);

  --secondary: hsl(30, 15%, 94%);
  --secondary-foreground: hsl(220, 25%, 15%);

  --muted: hsl(30, 10%, 92%);
  --muted-foreground: hsl(220, 10%, 45%);

  --accent: hsl(38, 95%, 50%);
  --accent-foreground: hsl(220, 25%, 10%);

  --destructive: hsl(0, 84.2%, 60.2%);
  --destructive-foreground: hsl(210, 40%, 98%);

  --border: hsl(30, 15%, 88%);
  --input: hsl(30, 15%, 88%);
  --ring: hsl(38, 95%, 50%);

  --radius: 0.75rem;

  /* Custom tokens */
  --rating: hsl(38, 95%, 50%);
  --rating-empty: hsl(30, 10%, 80%);
  --hero-gradient: linear-gradient(135deg, hsl(220, 25%, 15%) 0%, hsl(220, 20%, 25%) 100%);
  --card-shadow: 0 4px 20px -4px hsl(220, 25%, 10%, 0.08);
  --card-shadow-hover: 0 12px 32px -8px hsl(220, 25%, 10%, 0.15);
  --glow-accent: 0 0 40px hsl(38, 95%, 50%, 0.2);

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

/* Dark Mode */
[data-theme="dark"] {
  --background: hsl(220, 25%, 8%);
  --foreground: hsl(30, 20%, 95%);

  --card: hsl(220, 25%, 12%);
  --card-foreground: hsl(30, 20%, 95%);

  --popover: hsl(220, 25%, 12%);
  --popover-foreground: hsl(30, 20%, 95%);

  --primary: hsl(30, 20%, 95%);
  --primary-foreground: hsl(220, 25%, 10%);

  --secondary: hsl(220, 20%, 18%);
  --secondary-foreground: hsl(30, 20%, 95%);

  --muted: hsl(220, 20%, 18%);
  --muted-foreground: hsl(30, 10%, 60%);

  --accent: hsl(38, 95%, 55%);
  --accent-foreground: hsl(220, 25%, 10%);

  --border: hsl(220, 20%, 20%);
  --input: hsl(220, 20%, 20%);
  --ring: hsl(38, 95%, 55%);

  --rating: hsl(38, 95%, 55%);
  --rating-empty: hsl(220, 15%, 30%);
  --hero-gradient: linear-gradient(135deg, hsl(220, 25%, 6%) 0%, hsl(220, 20%, 15%) 100%);
  --card-shadow: 0 4px 20px -4px hsl(0, 0%, 0%, 0.3);
  --card-shadow-hover: 0 12px 32px -8px hsl(0, 0%, 0%, 0.4);
}

/* ===== BASE STYLES ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ===== TYPOGRAPHY ===== */
.text-heading {
  font-family: var(--font-heading);
}

.text-body {
  font-family: var(--font-body);
}

/* Font Sizes */
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}

/* Font Weights */
.font-light {
  font-weight: 300;
}

.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

/* Text Colors */
.text-foreground {
  color: var(--foreground);
}

.text-muted-foreground {
  color: var(--muted-foreground);
}

.text-accent {
  color: var(--accent);
}

.text-card-foreground {
  color: var(--card-foreground);
}

.text-primary-foreground {
  color: var(--primary-foreground);
}

/* ===== UTILITIES ===== */
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.leading-tight {
  line-height: 1.25;
}

.leading-relaxed {
  line-height: 1.625;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-full {
  border-radius: 9999px;
}

.overflow-hidden {
  overflow: hidden;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.sticky {
  position: sticky;
}

.top-0 {
  top: 0;
}

.z-50 {
  z-index: 50;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-10 {
  gap: 2.5rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-10 {
  margin-bottom: 2.5rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.min-h-screen {
  min-height: 100vh;
}

.w-full {
  width: 100%;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-md {
  max-width: 28rem;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

.bg-background {
  background-color: var(--background);
}

.bg-card {
  background-color: var(--card);
}

.border-b {
  border-bottom-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-border {
  border-color: var(--border);
}

/* Backdrop Blur */
.backdrop-blur-lg {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.bg-background\/80 {
  background-color: hsl(var(--background) / 0.8);
}

/* Grid Layouts */
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Transitions */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-200 {
  transition-duration: 200ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.duration-500 {
  transition-duration: 500ms;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablet and up (768px) */
@media (min-width: 768px) {
  .md\\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }

  .md\\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Desktop and up (1024px) */
@media (min-width: 1024px) {
  .lg\\:flex {
    display: flex;
  }

  .lg\\:hidden {
    display: none;
  }

  .lg\\:text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .lg\\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }

  .lg\\:text-xl {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }

  .lg\\:text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .lg\\:py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .lg\\:py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .lg\\:h-20 {
    height: 5rem;
  }

  .lg\\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Small screens */
@media (min-width: 640px) {
  .sm\\:flex {
    display: flex;
  }

  .sm\\:hidden {
    display: none;
  }

  .sm\\:flex-row {
    flex-direction: row;
  }
}

/* Mobile-first hidden utilities */
@media (max-width: 1023px) {
  .hidden-mobile {
    display: none;
  }
}

@media (max-width: 767px) {
  .flex-col-mobile {
    flex-direction: column;
  }
}
