/* ===== base.css ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap');

/* ===== COFFEE SHOP COLOR PALETTE (Same colors, new names) ===== */
:root {
  /* Primary Colors (Coffee Shop Theme - Blue) */
  --primary-color: #1e6ad0;        /* Rich Blue - like a clear sky */
  --primary-dark: #0a4da4;          /* Deep Blue - like midnight coffee */
  --primary-light: #9bc0ff;         /* Light Blue - like morning light */
  --primary-soft: #e6f0ff;           /* Soft Blue - like coffee cream */
  
  /* Secondary Colors */
  --secondary-blue: #527aac;         /* Muted Blue - like weathered wood */
  --dark-blue: #0a2d5a;              /* Dark Navy - like espresso beans */
  
  /* Neutral Colors (Coffee Inspired) */
  --text-gray: #527aac;               /* Blue-gray text */
  --border-light: #d9ebff;            /* Light blue border */
  --bg-light: #f8fafc;                 /* Light background - like milk foam */
  --white: #ffffff;                     /* Pure white - like cream */
  
  /* Coffee Shop Accents */
  --cream: #f8f4e9;                     /* Cream color for cards */
  --latte: #f5f0e6;                      /* Latte background */
  --espresso: #2c1810;                    /* Espresso brown (for contrast) */
  
  /* Shadows & Effects */
  --shadow-sm: 0 10px 25px rgba(30, 106, 208, 0.15);
  --shadow-md: 0 15px 35px rgba(30, 106, 208, 0.2);
  --shadow-lg: 0 20px 45px rgba(30, 106, 208, 0.25);
  --shadow-coffee: 0 15px 30px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(30, 106, 208, 0.1);
  
  /* Transitions */
  --transition-default: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;
}

/* ===== GLOBAL STYLES ===== */
* { 
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { 
  font-family: 'Inter', sans-serif; 
  background: var(--bg-light);
  color: var(--dark-blue);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  min-height: 100vh;
}

/* ===== TYPOGRAPHY ===== */
.font-serif { 
  font-family: 'Playfair Display', serif; 
  font-weight: 500;
  letter-spacing: -0.02em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--dark-blue);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-sm);
  color: var(--text-gray);
}

/* ===== LINKS & BUTTONS ===== */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-default);
}

a:hover {
  color: var(--primary-dark);
}

/* ===== COFFEE SHOP DECORATIVE ELEMENTS ===== */
.coffee-stain {
  position: relative;
}

.coffee-stain::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

.coffee-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 50%, rgba(30, 106, 208, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* ===== CUSTOM SCROLLBAR (Coffee Shop Style) ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--primary-soft);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: var(--radius-full);
  border: 2px solid var(--primary-soft);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--primary-soft);
}

/* ===== SELECTION COLOR ===== */
::selection {
  background: var(--primary-color);
  color: white;
}

::-moz-selection {
  background: var(--primary-color);
  color: white;
}

/* ===== FOCUS STYLES ===== */
:focus {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}

/* ===== CONTAINERS ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--space-md);
}

/* ===== GRID SYSTEM ===== */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== FLEX UTILITIES ===== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ===== SPACING UTILITIES ===== */
.m-0 { margin: 0; }
.m-xs { margin: var(--space-xs); }
.m-sm { margin: var(--space-sm); }
.m-md { margin: var(--space-md); }
.m-lg { margin: var(--space-lg); }

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.ml-xs { margin-left: var(--space-xs); }
.ml-sm { margin-left: var(--space-sm); }
.ml-md { margin-left: var(--space-md); }
.ml-lg { margin-left: var(--space-lg); }

.mr-xs { margin-right: var(--space-xs); }
.mr-sm { margin-right: var(--space-sm); }
.mr-md { margin-right: var(--space-md); }
.mr-lg { margin-right: var(--space-lg); }

.p-0 { padding: 0; }
.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }

/* ===== TEXT UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.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; }

.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }
.truncate { 
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== BACKGROUND UTILITIES ===== */
.bg-white { background-color: var(--white); }
.bg-primary { background-color: var(--primary-color); }
.bg-primary-soft { background-color: var(--primary-soft); }
.bg-light { background-color: var(--bg-light); }

/* ===== BORDER UTILITIES ===== */
.border { border: 1px solid var(--border-light); }
.border-2 { border: 2px solid var(--border-light); }
.border-primary { border-color: var(--primary-color); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* ===== SHADOW UTILITIES ===== */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-coffee { box-shadow: var(--shadow-coffee); }

/* ===== COFFEE SHOP SPECIFIC UTILITIES ===== */
.coffee-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-coffee);
  transition: var(--transition-default);
  overflow: hidden;
}

.coffee-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.coffee-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  margin: var(--space-md) 0;
}

.coffee-dots {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.coffee-dots span {
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.5;
}

/* ===== COLORS (Preserved with new comments) ===== */
.text-\[\#1e6ad0\] { color: var(--primary-color); } /* Primary Blue */
.text-\[\#527aac\] { color: var(--secondary-blue); } /* Secondary Blue */
.text-\[\#0a2d5a\] { color: var(--dark-blue); } /* Dark Blue */
.bg-\[\#1e6ad0\] { background-color: var(--primary-color); } /* Primary Blue BG */
.bg-\[\#e2efff\] { background-color: var(--primary-soft); } /* Soft Blue BG */
.border-\[\#d9ebff\] { border-color: var(--border-light); } /* Light Blue Border */
.border-\[\#1e6ad0\] { border-color: var(--primary-color); } /* Primary Blue Border */

/* ===== HOVER EFFECTS ===== */
.hover-lift {
  transition: var(--transition-default);
}

.hover-lift:hover {
  transform: translateY(-2px);
}

.hover-glow:hover {
  box-shadow: 0 0 20px var(--primary-light);
}

.hover-scale:hover {
  transform: scale(1.02);
}

/* ===== ANIMATION UTILITIES ===== */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse-slow {
  animation: pulse 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 768px) {
  html { font-size: 14px; }
  
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
}

@media (max-width: 480px) {
  html { font-size: 12px; }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}

/* ===== PRINT STYLES ===== */
@media print {
  .no-print { display: none; }
  
  body {
    background: white;
    color: black;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
}

/* ===== UTILITY CLASSES (Preserved) ===== */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }