:root {
  /* Color Palette */
  --primary-color: #2C3E50;
  --accent-color: #E74C3C;
  --text-color: #2C3E50;
  --light-text: #7F8C8D;
  --background: #FFFFFF;
  --light-gray: #F5F6F7;
  --border-color: #E0E0E0;

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-headings: 'Source Serif Pro', Georgia, serif;

  /* Spacing */
  --container-width: 1200px;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.5;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background: var(--background);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-headings);
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-color);
}

/* Layout */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Header */
.site-header {
  background: var(--background);
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--spacing-xl);
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand h1 {
  font-size: 2rem;
  margin-bottom: var(--spacing-xs);
}

.brand .subtitle {
  color: var(--light-text);
  font-size: 1rem;
  margin: 0;
}

/* Language Selector */
.language-selector select {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.9rem;
  background: var(--background);
  cursor: pointer;
}

/* Recipe Grid */
/* Recipe Card Styles */
.recipe-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.recipe-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Image Zoom Effect */
.recipe-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
}

.recipe-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
    transform-origin: center;
}

.recipe-card:hover .recipe-image {
    transform: scale(1.25);
}

/* Content Styles */
.recipe-content {
    padding: 1.5rem;
}

.recipe-content h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
}

.recipe-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.recipe-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.recipe-meta img {
    width: 1.2rem;
    height: 1.2rem;
}

.recipe-excerpt {
    margin-bottom: 1rem;
    color: #666;
    line-height: 1.5;
}

.recipe-link {
    display: inline-block;
    color: #007bff;
    font-weight: 500;
}

/* Grid Layout */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}


/* Footer */
.site-footer {
  background: var(--light-gray);
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-xl);
  text-align: center;
  color: var(--light-text);
}

/* Icon styles */
.icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  color: var(--light-text);
  vertical-align: middle;
}

.recipe-meta .icon {
  width: 18px;
  height: 18px;
}

.recipe-meta-grid .icon {
  width: 28px;
  height: 28px;
  color: var(--accent-color);
}

/* Icon color variations */
.icon-primary {
  color: var(--primary-color);
}

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

/* Icon hover effects */
.interactive-icon {
  cursor: pointer;
  transition: color 0.2s ease;
}

.interactive-icon:hover {
  color: var(--accent-color);
}

/* Print and share button styles */
.action-buttons {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.action-button {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--background);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-button:hover {
  background: var(--light-gray);
  border-color: var(--primary-color);
}

.action-button .icon {
  width: 20px;
  height: 20px;
}

/* Positive Badges */
.recipe-badge.highProtein {
    background: #E3F2FD;
    color: #1565C0;
}

.recipe-badge.highFiber {
    background: #E8F5E9;
    color: #2E7D32;
}

.recipe-badge.lowFat {
    background: #E3F5FE;
    color: #0277BD;
}

.recipe-badge.calciumRich {
    background: #F3E5F5;
    color: #7B1FA2;
}

.recipe-badge.ironRich {
    background: #E8EAF6;
    color: #3949AB;
}

.recipe-badge.vitaminCRich {
    background: #F1F8E9;
    color: #558B2F;
}

.recipe-badge.vitaminARich {
    background: #FFF3E0;
    color: #E65100;
}

.recipe-badge.probiotic {
    background: #E0F7FA;
    color: #00838F;
}

.recipe-badge.omega3 {
    background: #F1F8E9;
    color: #33691E;
}

.recipe-badge.lowCalorie {
    background: #E0F2F1;
    color: #004D40;
}

/* Cautionary Badges */
.recipe-badge.highSodium {
    background: #FFF3E0;
    color: #E65100;
}

.recipe-badge.highFat {
    background: #FBE9E7;
    color: #D84315;
}

.recipe-badge.highCalorie {
    background: #FFEBEE;
    color: #C62828;
}

.recipe-badge.deepFried {
    background: #FFEBEE;
    color: #B71C1C;
}
