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

/* ===========================
   CRAFTING WEBSITE - DESIGN SYSTEM
   =========================== */
/* ===== FONTS ===== */
/* ===== CSS RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* ===== ROOT VARIABLES ===== */
:root {
  /* Colors - Warm & Elegant Palette */
  --color-primary: #d4a574; /* Warm gold */
  --color-primary-dark: #b8935e; /* Darker gold */
  --color-primary-light: #e8c9a0; /* Light gold */

  --color-secondary: #a8b5a0; /* Sage green */
  --color-accent: #d4a5a5; /* Dusty rose */

  --color-bg-primary: #fdfbf7; /* Warm white */
  --color-bg-secondary: #f5f1eb; /* Light beige */
  --color-bg-tertiary: #ebe5dd; /* Darker beige */

  --color-text-primary: #3b3531; /* Deep brown */
  --color-text-secondary: #6b625a; /* Medium brown */
  --color-text-light: #9a8f84; /* Light brown */

  --color-border: #e0d5c7; /* Subtle border */
  --color-success: #7fa87f; /* Muted green */
  --color-error: #c77a7a; /* Muted red */

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-2xl: 1.5rem; /* 24px */
  --font-size-3xl: 2rem; /* 32px */
  --font-size-4xl: 2.5rem; /* 40px */
  --font-size-5xl: 3rem; /* 48px */

  /* Spacing */
  --space-xs: 0.25rem; /* 4px */
  --space-sm: 0.5rem; /* 8px */
  --space-md: 1rem; /* 16px */
  --space-lg: 1.5rem; /* 24px */
  --space-xl: 2rem; /* 32px */
  --space-2xl: 3rem; /* 48px */
  --space-3xl: 4rem; /* 64px */
  --space-4xl: 6rem; /* 96px */

  /* Borders & Shadows */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 2px rgba(59, 53, 49, 0.05);
  --shadow-md: 0 4px 6px rgba(59, 53, 49, 0.07);
  --shadow-lg: 0 10px 15px rgba(59, 53, 49, 0.1);
  --shadow-xl: 0 20px 25px rgba(59, 53, 49, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;

  /* Container */
  --container-max-width: 1200px;
  --container-padding: 1.5rem;
}
/* ===== BASE STYLES ===== */
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}
h1 {
  font-size: var(--font-size-5xl);
  font-weight: 700;
}
h2 {
  font-size: var(--font-size-4xl);
}
h3 {
  font-size: var(--font-size-3xl);
}
h4 {
  font-size: var(--font-size-2xl);
}
h5 {
  font-size: var(--font-size-xl);
}
h6 {
  font-size: var(--font-size-lg);
}
p {
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}
a:hover {
  color: var(--color-primary-dark);
}
/* ===== LAYOUT UTILITIES ===== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.section {
  padding: var(--space-4xl) 0;
}
.section-sm {
  padding: var(--space-3xl) 0;
}
.section-lg {
  padding: 6rem 0;
}
/* ===== BUTTON STYLES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: 500;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background-color: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background-color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-secondary:hover {
  background-color: var(--color-primary);
  color: white;
}
.btn-outline {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 2px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-sm {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-size-sm);
}
.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--font-size-lg);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}
/* ===== CARD STYLES ===== */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
/* ===== FORM STYLES ===== */
.form-group {
  margin-bottom: var(--space-lg);
}
.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-md);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  background-color: white;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
}
/* ===== BADGE ===== */
.badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
}
/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.fade-in {
  animation: fadeIn 0.6s ease-out;
}
.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}
.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}
.scale-in {
  animation: scaleIn 0.4s ease-out;
}
/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-primary {
  color: var(--color-primary) !important;
}
.text-secondary {
  color: var(--color-text-secondary) !important;
}
.text-light {
  color: var(--color-text-light) !important;
}
.bg-primary {
  background-color: var(--color-bg-primary) !important;
}
.bg-secondary {
  background-color: var(--color-bg-secondary) !important;
}
.bg-tertiary {
  background-color: var(--color-bg-tertiary) !important;
}
.mt-0 {
  margin-top: 0 !important;
}
.mt-sm {
  margin-top: var(--space-sm) !important;
}
.mt-md {
  margin-top: var(--space-md) !important;
}
.mt-lg {
  margin-top: var(--space-lg) !important;
}
.mt-xl {
  margin-top: var(--space-xl) !important;
}
.mt-2xl {
  margin-top: var(--space-2xl) !important;
}
.mt-3xl {
  margin-top: var(--space-3xl) !important;
}
.mb-0 {
  margin-bottom: 0 !important;
}
.mb-sm {
  margin-bottom: var(--space-sm) !important;
}
.mb-md {
  margin-bottom: var(--space-md) !important;
}
.mb-lg {
  margin-bottom: var(--space-lg) !important;
}
.mb-xl {
  margin-bottom: var(--space-xl) !important;
}
.mb-2xl {
  margin-bottom: var(--space-2xl) !important;
}
.mb-3xl {
  margin-bottom: var(--space-3xl) !important;
}
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-sm {
  gap: var(--space-sm);
}
.gap-md {
  gap: var(--space-md);
}
.gap-lg {
  gap: var(--space-lg);
}
.gap-xl {
  gap: var(--space-xl);
}
/* ===== GRID SYSTEM ===== */
.grid {
  display: grid;
  gap: var(--space-xl);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2.25rem; /* 36px on mobile */
    --font-size-4xl: 2rem; /* 32px on mobile */
    --font-size-3xl: 1.75rem; /* 28px on mobile */
    --container-padding: 1rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-base);
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ===== LOADING SPINNER ===== */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}
.notification-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
  pointer-events: none;
}

.notification {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  background: #1a1a1a;
  color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-out;
  pointer-events: auto;
  border-left: 4px solid;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification-success {
  border-left-color: #22c55e;
  background: linear-gradient(135deg, #1a2a1a 0%, #1a1a1a 100%);
}

.notification-error {
  border-left-color: #ef4444;
  background: linear-gradient(135deg, #2a1a1a 0%, #1a1a1a 100%);
}

.notification-warning {
  border-left-color: #f59e0b;
  background: linear-gradient(135deg, #2a2a1a 0%, #1a1a1a 100%);
}

.notification-info {
  border-left-color: #3b82f6;
  background: linear-gradient(135deg, #1a1a2a 0%, #1a1a1a 100%);
}

.notification-icon {
  font-size: 1.25rem;
  font-weight: bold;
  flex-shrink: 0;
}

.notification-success .notification-icon {
  color: #22c55e;
}

.notification-error .notification-icon {
  color: #ef4444;
}

.notification-warning .notification-icon {
  color: #f59e0b;
}

.notification-info .notification-icon {
  color: #3b82f6;
}

.notification-message {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.4;
}

.notification-dismiss {
  background: none;
  border: none;
  color: #888;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
  flex-shrink: 0;
}

.notification-dismiss:hover {
  color: white;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .notification-container {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}
