/* ==========================================
   MEXICAN WEDDING CAKES RECIPE BLOG
   Modern, Accessible, Responsive Styles
   ========================================== */

/* ==========================================
   CSS CUSTOM PROPERTIES (Variables)
   ========================================== */
:root {
    /* Color Palette - Light Mode */
    --color-primary: #c45c26;
    --color-primary-light: #e07a3e;
    --color-primary-dark: #9a4a1e;
    --color-secondary: #2d5a4a;
    --color-secondary-light: #3d7a64;
    --color-accent: #f4a261;
    --color-accent-light: #f8c291;
    
    /* Neutral Colors */
    --color-bg: #fdfaf6;
    --color-bg-alt: #fff8f0;
    --color-bg-card: #ffffff;
    --color-text: #2c2417;
    --color-text-light: #5a5048;
    --color-text-muted: #8a8078;
    --color-border: #e8ddd0;
    --color-border-light: #f0e8dc;
    
    /* Semantic Colors */
    --color-success: #4a9d66;
    --color-warning: #e4a853;
    --color-error: #c45c5c;
    --color-info: #4a7d9d;
    
    /* Nutrition Chart Colors */
    --color-fat: #e07a3e;
    --color-carb: #4a9d66;
    --color-protein: #4a7d9d;
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Caveat', cursive;
    
    /* Font Sizes - Fluid Typography */
    --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --fs-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --fs-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --fs-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --fs-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --fs-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --fs-3xl: clamp(2rem, 1.6rem + 2vw, 3rem);
    --fs-4xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Layout */
    --max-width: 1200px;
    --content-width: 800px;
    --sidebar-width: 350px;
    
    /* Borders & Shadows */
    --radius-sm: 0.375rem;
    --radius-md: 0.625rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px rgba(44, 36, 23, 0.05);
    --shadow-md: 0 4px 6px rgba(44, 36, 23, 0.08), 0 2px 4px rgba(44, 36, 23, 0.04);
    --shadow-lg: 0 10px 20px rgba(44, 36, 23, 0.1), 0 4px 8px rgba(44, 36, 23, 0.06);
    --shadow-xl: 0 20px 40px rgba(44, 36, 23, 0.12), 0 8px 16px rgba(44, 36, 23, 0.08);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-toast: 400;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --color-bg: #1a1612;
    --color-bg-alt: #241f1a;
    --color-bg-card: #2c2620;
    --color-text: #f5f0e8;
    --color-text-light: #d4cec4;
    --color-text-muted: #a09890;
    --color-border: #3c3530;
    --color-border-light: #4a433c;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.35), 0 8px 16px rgba(0, 0, 0, 0.25);
}

/* ==========================================
   CSS RESET & BASE STYLES
   ========================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select {
    font-family: inherit;
    font-size: inherit;
}

ul, ol {
    list-style: none;
}

/* Visually Hidden (Accessible) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Ensure hidden attribute works */
[hidden] {
    display: none !important;
}

/* Focus Styles */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* ==========================================
   THEME TOGGLE
   ========================================== */
.theme-toggle {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    z-index: var(--z-sticky);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--color-bg-card);
    color: var(--color-text);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--transition-base);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* ==========================================
   READING PROGRESS BAR
   ========================================== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    width: 0%;
    z-index: var(--z-sticky);
    transition: width 100ms linear;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: var(--space-4xl) var(--space-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 650px;
    margin-left: auto;
}

.recipe-badges {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-difficulty {
    background: linear-gradient(135deg, var(--color-success), #3a8d56);
    color: white;
}

.badge-difficulty.easy { background: linear-gradient(135deg, var(--color-success), #3a8d56); }
.badge-difficulty.medium { background: linear-gradient(135deg, var(--color-warning), #d4983a); }
.badge-difficulty.hard { background: linear-gradient(135deg, var(--color-error), #a44a4a); }

.badge-dietary {
    background: var(--color-bg-card);
    color: var(--color-secondary);
    border: 1px solid var(--color-border);
}

.hero-title {
    font-size: var(--fs-4xl);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-accent);
    font-size: var(--fs-2xl);
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

.hero-description {
    font-size: var(--fs-lg);
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.stat i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--color-text);
}

.stat-label {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--fs-sm);
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    box-shadow: var(--shadow-md), 0 0 0 0 var(--color-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(196, 92, 38, 0.3);
}

.btn-secondary {
    background: var(--color-bg-card);
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

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

.hero-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.hero-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
    aspect-ratio: 16 / 9;
    aspect-ratio: 1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ==========================================
   MAIN CONTENT
   ========================================== */
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
}

/* ==========================================
   RECIPE SUMMARY CARD
   ========================================== */
.recipe-summary-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-2xl);
    border: 1px solid var(--color-border-light);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-lg);
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--color-bg-alt);
    transition: transform var(--transition-base);
}

.summary-item:hover {
    transform: translateY(-3px);
}

.summary-item i {
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.summary-value {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--color-text);
}

.summary-label {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================
   PROGRESS TRACKER
   ========================================== */
.progress-tracker {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-2xl);
    color: white;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.progress-header h3 {
    font-size: var(--fs-lg);
    color: white;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.progress-percentage {
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: 700;
}

.progress-bar-container {
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.progress-message {
    font-size: var(--fs-sm);
    opacity: 0.9;
}

/* ==========================================
   CULTURAL CONTEXT SIDEBAR
   ========================================== */
.cultural-context {
    background: linear-gradient(135deg, var(--color-bg-alt), var(--color-bg-card));
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-2xl);
    position: relative;
}

.context-icon {
    position: absolute;
    top: -15px;
    left: var(--space-lg);
    width: 40px;
    height: 40px;
    background: var(--color-accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.cultural-context h3 {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.cultural-context p {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.cultural-context p:last-child {
    margin-bottom: 0;
}

.cultural-context em {
    color: var(--color-primary);
    font-style: italic;
}

/* ==========================================
   RECIPE GRID (Two Columns)
   ========================================== */
.recipe-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

/* ==========================================
   INGREDIENTS SECTION
   ========================================== */
.ingredients-section {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    height: fit-content;
    position: sticky;
    top: var(--space-lg);
}

.section-header {
    margin-bottom: var(--space-lg);
}

.section-header h2 {
    font-size: var(--fs-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.section-header h2 i {
    color: var(--color-primary);
}

.ingredient-controls {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.serving-adjuster {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.serving-adjuster label {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-text-light);
}

.serving-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--color-bg-alt);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

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

.serving-adjuster input {
    width: 60px;
    text-align: center;
    padding: var(--space-sm);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-weight: 700;
    background: var(--color-bg);
    color: var(--color-text);
}

.unit-toggle {
    display: flex;
    gap: var(--space-xs);
    background: var(--color-bg-alt);
    padding: var(--space-xs);
    border-radius: var(--radius-full);
}

.unit-btn {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.unit-btn.active {
    background: var(--color-bg-card);
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.ingredient-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.ingredient-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.ingredient-item:hover {
    background: var(--color-bg);
    box-shadow: var(--shadow-sm);
}

.ingredient-item.checked {
    background: rgba(74, 157, 102, 0.1);
}

.ingredient-item.checked .ingredient-name,
.ingredient-item.checked .ingredient-amount {
    text-decoration: line-through;
    opacity: 0.6;
}

.ingredient-checkbox {
    position: relative;
    display: flex;
    align-items: center;
}

.ingredient-checkbox input {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.ingredient-checkbox input:checked {
    background: var(--color-success);
    border-color: var(--color-success);
}

.ingredient-checkbox input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.ingredient-amount {
    font-weight: 700;
    color: var(--color-primary);
    min-width: 100px;
    font-size: var(--fs-sm);
}

.ingredient-name {
    flex: 1;
    color: var(--color-text);
    font-size: var(--fs-sm);
}

.ingredient-info {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    position: relative;
}

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

.ingredient-info[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    right: 0;
    background: var(--color-text);
    color: var(--color-bg);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--fs-xs);
    white-space: nowrap;
    max-width: 250px;
    white-space: normal;
    z-index: var(--z-dropdown);
    box-shadow: var(--shadow-lg);
}

.ingredient-coating {
    border-left: 3px solid var(--color-accent);
}

/* Equipment Checklist */
.equipment-checklist {
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.equipment-checklist h3 {
    font-size: var(--fs-base);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.equipment-checklist h3 i {
    color: var(--color-primary);
}

.equipment-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.equipment-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-sm);
}

.equipment-list li i {
    color: var(--color-success);
}

.affiliate-link {
    margin-left: auto;
    font-size: var(--fs-xs);
    color: var(--color-primary);
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.affiliate-link:hover {
    opacity: 1;
}

/* ==========================================
   INSTRUCTIONS SECTION
   ========================================== */
.instructions-section {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.instructions-section h2 {
    font-size: var(--fs-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.instructions-section h2 i {
    color: var(--color-primary);
}

/* Step Progress Indicator */
.step-progress-indicator {
    margin-bottom: var(--space-xl);
}

.step-dots {
    display: flex;
    justify-content: space-between;
    gap: var(--space-sm);
}

.step-dot {
    flex: 1;
    height: 4px;
    background: var(--color-border);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.step-dot.active {
    background: var(--color-primary);
}

.step-dot.completed {
    background: var(--color-success);
}

/* Instruction Steps */
.instructions-list {
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.instruction-step {
    position: relative;
    padding-left: var(--space-md);
    border-left: 2px solid var(--color-border);
    transition: border-color var(--transition-base);
}

.instruction-step.completed {
    border-left-color: var(--color-success);
}

.step-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.step-number {
    position: absolute;
    left: -18px;
    width: 34px;
    height: 34px;
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-base);
    color: var(--color-text);
    transition: all var(--transition-base);
}

.instruction-step.completed .step-number {
    background: var(--color-success);
    border-color: var(--color-success);
    color: white;
}

.step-header h3 {
    flex: 1;
    font-size: var(--fs-lg);
}

.step-checkbox {
    position: relative;
    display: flex;
    align-items: center;
}

.step-checkbox input {
    appearance: none;
    width: 28px;
    height: 28px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.step-checkbox input:checked {
    background: var(--color-success);
    border-color: var(--color-success);
}

.step-checkbox input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.step-content {
    padding-left: var(--space-lg);
}

.step-content p {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.step-content strong {
    color: var(--color-text);
}

.step-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-md);
}

/* Timer Container */
.timer-container {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.timer-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(135deg, var(--color-info), #3a6d8d);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: 600;
    transition: all var(--transition-base);
}

.timer-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Chef's Tips */
.tips-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-accent-light);
    color: var(--color-text);
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: 600;
    transition: all var(--transition-base);
}

.tips-toggle:hover {
    background: var(--color-accent);
}

.tips-toggle[aria-expanded="true"] i {
    color: var(--color-primary);
}

.tips-content {
    margin-top: var(--space-md);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chef-tip {
    background: linear-gradient(135deg, #fff8e8, #fff5e0);
    border-left: 4px solid var(--color-accent);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
}

[data-theme="dark"] .chef-tip {
    background: linear-gradient(135deg, rgba(244, 162, 97, 0.15), rgba(244, 162, 97, 0.1));
}

.chef-tip p {
    color: var(--color-text);
    font-size: var(--fs-sm);
    margin: 0;
}

/* ==========================================
   FINAL RESULT SECTION
   ========================================== */
.final-result-section {
    margin-bottom: var(--space-2xl);
}

.final-result-figure {
    margin: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.final-result-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.final-result-caption {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    padding: var(--space-lg) var(--space-xl);
    text-align: center;
    font-family: var(--font-accent);
    font-size: var(--fs-xl);
}

.final-result-caption i {
    color: var(--color-accent-light);
    margin-right: var(--space-sm);
}

/* ==========================================
   TIMER MODAL
   ========================================== */
.timer-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    animation: fadeIn 0.2s ease;
}

.timer-modal:not([hidden]) {
    display: flex !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.timer-modal-content {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    max-width: 350px;
    width: 90%;
    position: relative;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.timer-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.timer-close:hover {
    background: var(--color-error);
    color: white;
}

.timer-modal-content h3 {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.timer-modal-content h3 i {
    color: var(--color-primary);
}

.timer-display {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.timer-control-btn {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--color-bg-alt);
    color: var(--color-text);
    font-size: 1.25rem;
    transition: all var(--transition-fast);
}

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

.timer-label {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
}

/* ==========================================
   NUTRITIONAL INFORMATION
   ========================================== */
.nutrition-section {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-2xl);
}

.nutrition-section h2 {
    font-size: var(--fs-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.nutrition-section h2 i {
    color: var(--color-primary);
}

.nutrition-subtitle {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.nutrition-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-xl);
    align-items: center;
    margin-bottom: var(--space-xl);
}

.nutrition-main {
    text-align: center;
}

.calories-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
}

.calories-number {
    font-family: var(--font-heading);
    font-size: var(--fs-3xl);
    font-weight: 700;
    line-height: 1;
}

.calories-label {
    font-size: var(--fs-sm);
    opacity: 0.9;
}

.nutrition-macros {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.macro-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: var(--space-md);
}

.macro-bar {
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--color-border);
    position: relative;
    overflow: hidden;
}

.macro-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--percent);
    border-radius: var(--radius-full);
    transition: width 1s ease;
}

.fat-bar::after { background: var(--color-fat); }
.carb-bar::after { background: var(--color-carb); }
.protein-bar::after { background: var(--color-protein); }

.macro-value {
    font-weight: 700;
    color: var(--color-text);
    min-width: 40px;
}

.macro-label {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    min-width: 80px;
}

.nutrition-table {
    width: 100%;
    border-collapse: collapse;
}

.nutrition-table th,
.nutrition-table td {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.nutrition-table th {
    font-weight: 600;
    color: var(--color-text);
    font-size: var(--fs-sm);
}

.nutrition-table td {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
}

.nutrition-table tbody tr:hover {
    background: var(--color-bg-alt);
}

/* ==========================================
   RECIPE VARIATIONS
   ========================================== */
.variations-section {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-2xl);
}

.variations-section h2 {
    font-size: var(--fs-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.variations-section h2 i {
    color: var(--color-primary);
}

.variations-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.variation-tab {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-bg-alt);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.variation-tab:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.variation-tab.active {
    background: var(--color-primary);
    color: white;
}

.diet-icon {
    font-size: 1.25rem;
}

.variation-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.variation-panel.active {
    display: block;
}

.variation-panel h3 {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-md);
}

.variation-changes h4 {
    font-size: var(--fs-base);
    color: var(--color-primary);
    margin: var(--space-md) 0 var(--space-sm);
}

.variation-changes ul {
    padding-left: var(--space-lg);
    list-style: disc;
}

.variation-changes li {
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
}

.variation-changes p {
    color: var(--color-text-light);
    font-size: var(--fs-sm);
}

/* ==========================================
   KITCHEN TOOLS SECTION
   ========================================== */
.tools-section {
    margin-bottom: var(--space-2xl);
}

.tools-section h2 {
    font-size: var(--fs-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.tools-section h2 i {
    color: var(--color-primary);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.tool-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.tool-card h3 {
    font-size: var(--fs-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.tool-card h3 i {
    color: var(--color-primary);
}

.converter-form {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.converter-input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex: 1;
    min-width: 120px;
}

.converter-input-group input,
.converter-input-group select {
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text);
}

.converter-input-group input:focus,
.converter-input-group select:focus {
    border-color: var(--color-primary);
    outline: none;
}

.converter-arrow {
    color: var(--color-text-muted);
    font-size: 1.25rem;
}

.tool-btn {
    width: 100%;
    padding: var(--space-md);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-base);
}

.tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-ref-list li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--fs-sm);
    color: var(--color-text-light);
}

.quick-ref-list li:last-child {
    border-bottom: none;
}

/* ==========================================
   RATING SECTION
   ========================================== */
.rating-section {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.rating-section h2 {
    font-size: var(--fs-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.rating-section h2 i {
    color: var(--color-accent);
}

.rating-subtitle {
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.rating-widget {
    margin-bottom: var(--space-lg);
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.star {
    font-size: 2.5rem;
    color: var(--color-border);
    transition: all var(--transition-fast);
    padding: var(--space-xs);
}

.star:hover,
.star.hovered {
    color: var(--color-accent);
    transform: scale(1.1);
}

.star.active {
    color: var(--color-accent);
}

.star.active i {
    font-weight: 900;
}

.rating-text {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
}

.rating-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
}

.avg-rating {
    font-weight: 700;
    color: var(--color-text);
}

.avg-rating i {
    color: var(--color-accent);
}

.rating-count {
    color: var(--color-text-muted);
}

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq-section {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-2xl);
}

.faq-section h2 {
    font-size: var(--fs-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.faq-section h2 i {
    color: var(--color-primary);
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--color-primary);
}

.faq-question {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    background: var(--color-bg-alt);
    color: var(--color-text);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    background: var(--color-bg);
}

.faq-question i {
    color: var(--color-primary);
    transition: transform var(--transition-base);
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg);
    animation: slideDown 0.3s ease;
}

.faq-answer p {
    color: var(--color-text-light);
    font-size: var(--fs-sm);
}

/* ==========================================
   MISTAKES SECTION
   ========================================== */
.mistakes-section {
    margin-bottom: var(--space-2xl);
}

.mistakes-section h2 {
    font-size: var(--fs-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.mistakes-section h2 i {
    color: var(--color-warning);
}

.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.mistake-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--color-warning);
}

.mistake-icon {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.mistake-card h3 {
    font-size: var(--fs-base);
    margin-bottom: var(--space-sm);
}

.mistake-card p {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
}

/* ==========================================
   TROUBLESHOOTING SECTION
   ========================================== */
.troubleshooting-section {
    margin-bottom: var(--space-2xl);
}

.troubleshooting-section h2 {
    font-size: var(--fs-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.troubleshooting-section h2 i {
    color: var(--color-info);
}

.troubleshooting-table {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.trouble-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: var(--space-md);
}

.trouble-header {
    background: var(--color-primary);
    color: white;
    font-weight: 600;
    padding: var(--space-md) var(--space-lg);
}

.trouble-row:not(.trouble-header) {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.trouble-row:not(.trouble-header):hover {
    background: var(--color-bg-alt);
}

.trouble-problem {
    font-weight: 600;
    color: var(--color-text);
}

.trouble-cause {
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
}

.trouble-solution {
    color: var(--color-success);
    font-size: var(--fs-sm);
}

/* ==========================================
   STORAGE SECTION
   ========================================== */
.storage-section {
    margin-bottom: var(--space-2xl);
}

.storage-section h2 {
    font-size: var(--fs-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.storage-section h2 i {
    color: var(--color-secondary);
}

.storage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.storage-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.storage-card h3 {
    font-size: var(--fs-base);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.storage-card h3 i {
    color: var(--color-primary);
}

.storage-card p {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
}

.storage-card ul {
    padding-left: var(--space-lg);
}

.storage-card li {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-xs);
}

/* ==========================================
   SOCIAL SECTION
   ========================================== */
.social-section {
    background: linear-gradient(135deg, var(--color-bg-alt), var(--color-bg-card));
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.social-section h2 {
    font-size: var(--fs-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.social-section h2 i {
    color: var(--color-primary);
}

.social-section p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--fs-sm);
    color: white;
    transition: all var(--transition-base);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.social-btn.pinterest {
    background: #e60023;
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.twitter {
    background: #1da1f2;
}

.social-btn.email {
    background: var(--color-secondary);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--color-text);
    color: var(--color-bg);
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
}

.footer-brand h3 {
    font-family: var(--font-accent);
    font-size: var(--fs-2xl);
    color: var(--color-bg);
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.footer-links p {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.footer-links i {
    color: var(--color-primary);
}

/* ==========================================
   PRINT STYLES
   ========================================== */
.print-only {
    display: none;
}

@media print {
    /* Hide interactive elements */
    .theme-toggle,
    .reading-progress,
    .hero-actions,
    .progress-tracker,
    .ingredient-controls,
    .ingredient-checkbox,
    .ingredient-info,
    .step-checkbox,
    .timer-container,
    .tips-toggle,
    .tips-content,
    .variations-tabs,
    .tools-section,
    .rating-section,
    .social-section,
    .footer,
    .timer-modal {
        display: none !important;
    }

    /* Show print version */
    .print-only {
        display: block !important;
        padding: 2rem;
    }

    .print-only h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .print-meta {
        font-size: 0.875rem;
        color: #666;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid #ccc;
        padding-bottom: 0.5rem;
    }

    .print-only h2 {
        font-size: 1.25rem;
        margin: 1.5rem 0 0.75rem;
        color: #333;
    }

    .print-ingredients,
    .print-instructions {
        padding-left: 1.5rem;
    }

    .print-ingredients {
        list-style: disc;
    }

    .print-instructions {
        list-style: decimal;
    }

    .print-ingredients li,
    .print-instructions li {
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
    }

    .print-notes {
        margin-top: 1.5rem;
        padding: 1rem;
        background: #f5f5f5;
        border-radius: 0.5rem;
        font-size: 0.875rem;
    }

    /* Hide main content on print */
    .hero,
    .main-content {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Large Tablets */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
        margin: 0;
        padding: var(--space-2xl) var(--space-lg);
        order: 2;
    }

    .hero-image-container {
        order: 1;
        padding: var(--space-xl) var(--space-lg);
    }

    .hero-image {
        max-width: 400px;
        animation: none;
    }

    .recipe-grid {
        grid-template-columns: 1fr;
    }

    .ingredients-section {
        position: static;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .theme-toggle {
        top: var(--space-md);
        right: var(--space-md);
        width: 44px;
        height: 44px;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .nutrition-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .nutrition-main {
        display: flex;
        justify-content: center;
    }

    .trouble-row {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .trouble-header {
        display: none;
    }

    .trouble-row:not(.trouble-header) {
        padding: var(--space-lg);
    }

    .trouble-problem::before { content: 'Problem: '; color: var(--color-primary); }
    .trouble-cause::before { content: 'Cause: '; font-weight: 600; }
    .trouble-solution::before { content: 'Solution: '; font-weight: 600; }
}

/* Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: var(--fs-3xl);
    }

    .hero-stats {
        gap: var(--space-md);
    }

    .stat {
        padding: var(--space-sm);
    }

    .btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--fs-xs);
    }

    .ingredient-item {
        flex-wrap: wrap;
    }

    .ingredient-amount {
        min-width: auto;
        flex-basis: 100%;
        order: 2;
        padding-left: 32px;
    }

    .ingredient-checkbox {
        order: 1;
    }

    .ingredient-name {
        order: 3;
        flex-basis: 100%;
        padding-left: 32px;
    }

    .ingredient-info {
        order: 4;
        margin-left: 32px;
    }

    .step-content {
        padding-left: var(--space-md);
    }

    .converter-form {
        flex-direction: column;
    }

    .converter-arrow {
        transform: rotate(90deg);
    }

    .star {
        font-size: 2rem;
    }

    .social-btn span {
        display: none;
    }

    .social-btn {
        padding: var(--space-md);
        border-radius: var(--radius-full);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .timer-btn,
    .social-btn,
    .variation-tab,
    .unit-btn,
    .serving-btn {
        min-height: 48px;
        min-width: 48px;
    }

    .ingredient-checkbox input,
    .step-checkbox input {
        width: 28px;
        height: 28px;
    }

    .star {
        padding: var(--space-sm);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --color-border: #000;
        --color-text-muted: #444;
    }

    .btn-primary,
    .timer-btn,
    .tool-btn {
        border: 2px solid currentColor;
    }
}
