/* ==========================================================================
   User Global Theme CSS
   ========================================================================== */

:root {
  /* Brand Colors */
  --theme-forest: #3B6D11;
  --theme-forest-light: #4c8a16;
  --theme-forest-dark: #274b0b;
  --theme-amber: #EF9F27;
  --theme-amber-light: #f3b34f;
  --theme-amber-dark: #cc851b;
  
  /* Neutral Colors */
  --theme-surface: #f9fdf5;
  --theme-bg: #f3f6f4;
  --theme-text-main: #1a2e1b;
  --theme-text-muted: #6b7280;
  
  /* Border Radiuses */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* Base Styles */
body {
  background-color: var(--theme-surface);
  color: var(--theme-text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

h1, h2, h3, h4, h5, h6, .font-playfair {
  font-family: 'Playfair Display', serif;
}

/* Shared Components */

/* Modern Card */
.theme-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

/* Image Cover Card (For Categories/Blogs) */
.theme-cover-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  background-color: var(--theme-forest-dark);
}

.theme-cover-card .cover-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  z-index: 0;
}

.theme-cover-card .cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.85) 100%);
  transition: background var(--transition-normal);
  z-index: 1;
}

.theme-cover-card .cover-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  color: #ffffff;
  transform: translateY(0);
  transition: transform var(--transition-normal);
}

.theme-cover-card:hover .cover-image {
  transform: scale(1.08);
}

.theme-cover-card:hover .cover-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.95) 100%);
}

/* Buttons */
.theme-btn-primary {
  background-color: var(--theme-forest);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.theme-btn-primary:hover {
  background-color: var(--theme-forest-light);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 109, 17, 0.3);
}

.theme-btn-accent {
  background-color: var(--theme-amber);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.theme-btn-accent:hover {
  background-color: var(--theme-amber-light);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 159, 39, 0.3);
}

/* Badges */
.theme-badge {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
