/* YogaHood HK Inspired Theme Styles */
/* This file contains the shared design tokens and styles based on YogaHood HK aesthetic */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* CSS Variables - Design Tokens */
:root {
  /* Colors */
  --color-primary: #5e443a;
  --color-secondary: #8d7b74;
  --color-background: #faf4f1;
  --color-accent: #ffbf52;
  --color-white: #ffffff;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-error: #e53e3e;
  --color-success: #38a169;
  
  /* Typography */
  --font-heading: 'Fraunces', serif;
  --font-body: 'Montserrat', sans-serif;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  
  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(94, 68, 58, 0.05);
  --shadow-md: 0 4px 12px rgba(94, 68, 58, 0.1);
  --shadow-lg: 0 8px 24px rgba(94, 68, 58, 0.15);
  --shadow-xl: 0 16px 48px rgba(94, 68, 58, 0.2);
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
}

/* Global Styles */
body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  font-size: var(--text-4xl);
  font-weight: 700;
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

/* Buttons - YogaHood Style */
.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-family: var(--font-body);
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #f5a623;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-family: var(--font-body);
  transition: var(--transition);
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Cards */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

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

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
  font-family: var(--font-body);
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  transition: var(--transition);
  background-color: var(--color-white);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 191, 82, 0.2);
}

/* Labels */
label {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-sm);
}

/* Links */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-accent);
}

/* Header Styles */
.header-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

/* Success and Error Messages */
.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

/* Table Styles */
table {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

th {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: var(--space-md);
  text-align: left;
}

td {
  padding: var(--space-md);
  border-bottom: 1px solid #e2e8f0;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background-color: rgba(250, 244, 241, 0.5);
}

/* Loading Spinner */
.spinner {
  border: 3px solid rgba(94, 68, 58, 0.1);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Utility Classes */
.text-primary {
  color: var(--color-primary);
}

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

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

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

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

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

.font-heading {
  font-family: var(--font-heading);
}

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

/* Responsive Utilities */
@media (max-width: 768px) {
  h1 {
    font-size: var(--text-3xl);
  }
  
  h2 {
    font-size: var(--text-2xl);
  }
  
  h3 {
    font-size: var(--text-xl);
  }
}