/* ===========================
   Recipe Card - per CHEFMIKE-UI-SYSTEM.md v2.0
   =========================== */
.recipe-card {
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.recipe-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.recipe-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-tertiary);
    position: relative;
}

.recipe-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
    height: 100%;
}

.recipe-card-body,
.recipe-card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.recipe-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recipe-card-summary {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recipe-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.recipe-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.recipe-card-meta-item i {
    margin-right: 0.25rem;
}

.recipe-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.75rem;
}

/* Tag styling - per UI System */
.tag,
.recipe-tag {
    padding: 0.25rem 0.625rem;
    background: var(--chefmike-orange-light);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: var(--chefmike-orange);
}

/* Legacy semantic tag colors - use sparingly */
.recipe-tag-meal {
    background: var(--chefmike-orange-light);
    color: var(--chefmike-orange);
}

.recipe-tag-cuisine {
    background: var(--color-info-bg);
    color: var(--color-info);
}

.recipe-tag-complexity {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.recipe-tag-diet {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.recipe-card-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

/* Filter Bar */
.filter-bar {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-search {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-search i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    pointer-events: none;
}

.filter-search-input {
    flex: 1;
    padding: 0.75rem 3rem 0.75rem 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition);
}

.filter-search-input:focus {
    outline: none;
    border-color: var(--chefmike-orange);
    box-shadow: 0 0 0 3px rgba(232, 93, 51, 0.1);
}

.filter-search-clear {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.filter-search-clear:hover {
    color: var(--text-primary);
    background: var(--hover-bg);
}

.filter-dropdowns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.filter-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239E9E9E' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.filter-select:focus {
    outline: none;
    border-color: var(--chefmike-orange);
    box-shadow: 0 0 0 3px rgba(232, 93, 51, 0.1);
}

/* ===========================
   Empty State - per CHEFMIKE-UI-SYSTEM.md v2.0
   =========================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state-icon {
    width: 5rem;
    height: 5rem;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.empty-state-icon i {
    font-size: 2rem;
    color: var(--text-muted);
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.empty-state-text,
.empty-state-message {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
    max-width: 280px;
}

/* ===========================
   Chips & Pills - per CHEFMIKE-UI-SYSTEM.md v2.0
   Single Pattern for ALL Selection Chips
   =========================== */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.chip i {
    font-size: 0.75rem;
}

.chip:hover {
    border-color: var(--chefmike-orange-border);
    background: var(--chefmike-orange-light);
}

.chip.selected {
    background: var(--chefmike-orange-light);
    border-color: var(--chefmike-orange);
    color: var(--chefmike-orange);
}

.chip.selected i {
    color: var(--chefmike-orange);
}

.chip-count {
    background: var(--bg-light);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.chip.selected .chip-count {
    background: rgba(199, 91, 57, 0.15);
    color: var(--chefmike-orange);
}

/* ===========================
   Toggle Button Group - per CHEFMIKE-UI-SYSTEM.md v2.0
   =========================== */
.btn-toggle-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-toggle {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-toggle:hover {
    border-color: var(--border-hover);
    background: var(--bg-light);
}

.btn-toggle.active {
    background: var(--chefmike-orange);
    border-color: var(--chefmike-orange);
    color: white;
}

/* ===========================
   Filter Pills - per CHEFMIKE-UI-SYSTEM.md v2.0
   =========================== */
.filter-pills {
    display: inline-flex;
    background: var(--bg-light);
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.filter-pill {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-pill:hover {
    color: var(--text-primary);
}

.filter-pill.active {
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ===========================
   Suggested Tags - per CHEFMIKE-UI-SYSTEM.md v2.0
   =========================== */
.suggested-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggested-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.suggested-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: var(--bg-secondary);
    border: 1px solid var(--chefmike-orange-border);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--chefmike-orange);
    cursor: pointer;
    transition: all 0.15s ease;
}

.suggested-tag i {
    font-size: 0.8125rem;
}

.suggested-tag:hover {
    background: var(--chefmike-orange-light);
    border-color: var(--chefmike-orange);
}

/* Button variant colors only - base .btn is in app.css */
.btn-primary {
    background: var(--chefmike-orange);
    color: white;
}

.btn-primary:hover {
    background: var(--chefmike-orange-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--gray-300);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--text-primary);
}

.btn-outline:active {
    background: var(--gray-100);
}

.btn-text {
    background: transparent;
    color: var(--chefmike-orange);
    padding: 0.5rem 1rem;
}

.btn-text:hover {
    background: rgba(232, 93, 51, 0.1);
}

.btn-text-sm {
    font-size: 0.875rem;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--hover-bg);
    border-color: var(--chefmike-orange);
    color: var(--chefmike-orange);
}

.btn-icon-danger:hover {
    background: var(--color-error-bg);
    border-color: var(--color-error);
    color: var(--color-error);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Grid Layouts */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .recipe-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (min-width: 1024px) {
    .recipe-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

/* ===========================
   Badge Component
   =========================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.5rem 0.75rem;  /* 8px 12px - 4px base unit */
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.badge i {
    font-size: 0.875em;
}

/* Badge Sizes */
.badge-sm {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
}

.badge-lg {
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
}

/* Badge Pill */
.badge-pill {
    border-radius: 624.9375rem;
}

/* Badge Filled Variants */
.badge-filled.badge-primary {
    background: var(--chefmike-orange);
    color: white;
}

.badge-filled.badge-success {
    background: var(--color-success);
    color: white;
}

.badge-filled.badge-warning {
    background: var(--color-warning);
    color: white;
}

.badge-filled.badge-danger {
    background: var(--color-danger);
    color: white;
}

.badge-filled.badge-info {
    background: var(--color-info);
    color: white;
}

.badge-filled.badge-neutral {
    background: var(--gray-600);
    color: white;
}

/* Badge Subtle Variants */
.badge-subtle.badge-primary {
    background: rgba(232, 93, 51, 0.1);
    color: var(--chefmike-orange-dark);
}

.badge-subtle.badge-success {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.badge-subtle.badge-warning {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.badge-subtle.badge-danger {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.badge-subtle.badge-info {
    background: var(--color-info-bg);
    color: var(--color-info);
}

.badge-subtle.badge-neutral {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* Badge Outline Variants */
.badge-outline {
    background: transparent;
    border: 1.5px solid currentColor;
}

.badge-outline.badge-primary {
    color: var(--chefmike-orange);
}

.badge-outline.badge-success {
    color: var(--color-success);
}

.badge-outline.badge-warning {
    color: var(--color-warning);
}

.badge-outline.badge-danger {
    color: var(--color-danger);
}

.badge-outline.badge-info {
    color: var(--color-info);
}

.badge-outline.badge-neutral {
    color: var(--gray-600);
}

/* ===========================
   Badge Concept Variants
   Recipe-specific semantic colors using tokens.css
   =========================== */

/* MealType - Warm Orange */
.badge-mealtype {
    background: var(--color-mealtype-bg);
    color: var(--color-mealtype-text);
}
.badge-mealtype:hover {
    background: var(--color-mealtype-hover);
}

/* Cuisine - Cool Blue */
.badge-cuisine {
    background: var(--color-cuisine-bg);
    color: var(--color-cuisine-text);
}
.badge-cuisine:hover {
    background: var(--color-cuisine-hover);
}

/* Complexity - Purple */
.badge-complexity {
    background: var(--color-complexity-bg);
    color: var(--color-complexity-text);
}
.badge-complexity:hover {
    background: var(--color-complexity-hover);
}

/* Diet - Green */
.badge-diet {
    background: var(--color-diet-bg);
    color: var(--color-diet-text);
}
.badge-diet:hover {
    background: var(--color-diet-hover);
}

/* Ingredient - Teal */
.badge-ingredient {
    background: var(--color-ingredient-bg);
    color: var(--color-ingredient-text);
}
.badge-ingredient:hover {
    background: var(--color-ingredient-hover);
}

/* Servings - Slate */
.badge-servings {
    background: var(--color-servings-bg);
    color: var(--color-servings-text);
}
.badge-servings:hover {
    background: var(--color-servings-hover);
}

/* Occasion - Amber */
.badge-occasion {
    background: var(--color-occasion-bg);
    color: var(--color-occasion-text);
}
.badge-occasion:hover {
    background: var(--color-occasion-hover);
}

/* CookingLevel - Red */
.badge-cookinglevel {
    background: var(--color-cookinglevel-bg);
    color: var(--color-cookinglevel-text);
}
.badge-cookinglevel:hover {
    background: var(--color-cookinglevel-hover);
}

/* User - Brand Orange */
.badge-user {
    background: var(--color-user-bg);
    color: var(--color-user-text);
    border: 1px solid var(--color-user-border);
}
.badge-user:hover {
    background: var(--color-user-hover);
}

/* Generic - Neutral */
.badge-generic {
    background: var(--color-generic-bg);
    color: var(--color-generic-text);
}
.badge-generic:hover {
    background: var(--color-generic-hover);
}

/* Clickable Badge Styling */
button.badge,
.badge-clickable {
    cursor: pointer;
    border: none;
}

button.badge:hover,
.badge-clickable:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

button.badge:active,
.badge-clickable:active {
    transform: translateY(0);
}

/* ===========================
   Alert Component
   =========================== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    border-left: 4px solid currentColor;
    font-size: 0.875rem;
    line-height: 1.5;
    position: relative;
}

.alert-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1;
    margin-top: 0.125rem;
}

.alert-content {
    flex: 1;
    min-width: 0;
}

.alert-title {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.alert-message {
    color: inherit;
    opacity: 0.9;
}

.alert-close {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    font-size: 1.125rem;
    line-height: 1;
    margin-top: -0.125rem;
}

.alert-close:hover {
    opacity: 1;
}

/* Alert Variants */
.alert-success {
    background: var(--color-success-bg);
    color: var(--color-success);
    border-color: var(--color-success);
}

.alert-warning {
    background: var(--color-warning-bg);
    color: var(--color-warning);
    border-color: var(--color-warning);
}

.alert-danger {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border-color: var(--color-danger);
}

.alert-info {
    background: var(--color-info-bg);
    color: var(--color-info);
    border-color: var(--color-info);
}

/* ===========================
   Component-Specific Focus States
   =========================== */

/* Clickable Cards */
.card-clickable:focus-visible,
.recipe-card:focus-visible {
    outline: 3px solid var(--chefmike-orange);
    outline-offset: 4px;  /* Larger offset for card boundaries */
    transform: translateY(-2px);
    transition: transform 0.2s ease, outline-offset 0.15s ease;
}

/* Buttons with consistent focus */
.btn:focus-visible {
    outline: 3px solid var(--chefmike-orange);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(232, 93, 51, 0.1);
}

.btn-outline:focus-visible {
    outline: 3px solid var(--chefmike-orange);
    outline-offset: 2px;
    background: rgba(232, 93, 51, 0.05);
}

/* Badge when used as link/button */
a.badge:focus-visible,
button.badge:focus-visible {
    outline: 2px solid var(--chefmike-orange);
    outline-offset: 2px;
    transform: scale(1.05);
}

/* Alert close button */
.alert-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    opacity: 1;
}

/* Recipe card specific */
.recipe-card:focus-visible {
    border-color: var(--chefmike-orange);
    box-shadow: 0 8px 24px rgba(232, 93, 51, 0.15);
}

/* Dark mode adjustments */
[data-theme="dark"] .card-clickable:focus-visible,
[data-theme="dark"] .recipe-card:focus-visible,
[data-theme="dark"] .btn:focus-visible {
    outline-color: var(--chefmike-orange-light);
}

[data-theme="dark"] .btn:focus-visible {
    box-shadow: 0 0 0 4px rgba(255, 123, 82, 0.15);
}

/* ===========================
   Form Controls - per CHEFMIKE-UI-SYSTEM.md v2.0
   =========================== */
.form-control {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    transition: all 0.15s ease;
    font-family: inherit;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    outline: none;
    border-color: var(--chefmike-orange);
    box-shadow: 0 0 0 3px rgba(199, 91, 57, 0.1);
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

/* Input with Icon */
.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-with-icon input {
    padding-left: 2.75rem;
}

/* Search Input */
.search-input {
    position: relative;
    flex: 1;
}

.search-input i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.search-input input:focus {
    outline: none;
    border-color: var(--chefmike-orange);
}

/* Select / Dropdown */
.form-select-wrapper {
    position: relative;
}

.form-select-wrapper i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.form-select {
    width: 100%;
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    cursor: pointer;
    appearance: none;
}

.form-select:focus {
    outline: none;
    border-color: var(--chefmike-orange);
}

/* ===========================
   Modal - per CHEFMIKE-UI-SYSTEM.md v2.0
   =========================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-dialog {
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 1.5rem 1.5rem 0;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0 0;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ===========================
   Info List - per CHEFMIKE-UI-SYSTEM.md v2.0
   =========================== */
.info-list {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.info-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.btn-icon {
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.btn-icon:hover {
    border-color: var(--chefmike-orange);
    color: var(--chefmike-orange);
    background: var(--chefmike-orange-light);
}

/* ===========================
   Counter Components - per CHEFMIKE-UI-SYSTEM.md v2.0
   =========================== */
.counter-display {
    text-align: right;
}

.counter-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--chefmike-orange);
    line-height: 1;
}

.counter-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.inline-counter {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.inline-counter strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* ===========================
   Collapsible Sections - per CHEFMIKE-UI-SYSTEM.md v2.0
   =========================== */
.collapsible-section {
    border-bottom: 1px solid var(--border-color);
}

.collapsible-section:last-child {
    border-bottom: none;
}

.collapsible-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
}

.collapsible-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.collapsible-count {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.collapsible-indicator {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.indicator-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--border-color);
}

.indicator-dot.active {
    background: var(--chefmike-orange);
}

.collapsible-body {
    padding-bottom: 1rem;
}

.chip-group {
    margin-bottom: 1rem;
}

.chip-group:last-child {
    margin-bottom: 0;
}

.chip-group-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.chip-group-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ===========================
   View Toggles - per CHEFMIKE-UI-SYSTEM.md v2.0
   =========================== */
.view-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.view-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.view-btn {
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    border-radius: 0.375rem;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    background: var(--bg-light);
    color: var(--text-secondary);
}

.view-btn.active {
    background: var(--bg-light);
    color: var(--text-primary);
}

/* ===========================
   Number Stepper - per CHEFMIKE-UI-SYSTEM.md v2.0
   =========================== */
.number-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.stepper-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: var(--chefmike-orange);
    border-radius: 0.5rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.stepper-btn:hover {
    background: var(--chefmike-orange-hover);
}

.stepper-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
}

.stepper-value {
    text-align: center;
    min-width: 4rem;
}

.stepper-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stepper-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===========================
   Badge Labels - per CHEFMIKE-UI-SYSTEM.md v2.0
   =========================== */
.badge-suggestion {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    background: var(--chefmike-orange-light);
    color: var(--chefmike-orange);
    border: 1px solid rgba(232, 93, 51, 0.2);
}

.badge-suggestion i {
    font-size: 0.625rem;
}

[data-theme="dark"] .badge-suggestion {
    background: rgba(232, 93, 51, 0.15);
    color: var(--chefmike-orange);
    border-color: rgba(232, 93, 51, 0.3);
}

/* Pantry item badge - for selected pantry ingredients */
.badge-pantry {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--chefmike-orange);
    color: white;
}

/* Pantry source label badge */
.badge-pantry-source {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1875rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--chefmike-orange-light);
    color: var(--chefmike-orange);
}

[data-theme="dark"] .badge-pantry-source {
    background: rgba(232, 93, 51, 0.15);
}

.required-marker {
    color: var(--color-error);
    font-weight: 600;
}

/* ===========================
   Section Card - per CHEFMIKE-UI-SYSTEM.md v2.0
   =========================== */
.section-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.section-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.section-card-header i {
    color: var(--chefmike-orange);
}

.section-card-header span {
    font-weight: 600;
    color: var(--text-primary);
}

.section-card-header .required {
    color: var(--color-error);
    font-size: 0.875rem;
}

/* ===========================
   Page Header - per CHEFMIKE-UI-SYSTEM.md v2.0
   =========================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.page-header-content {
    flex: 1;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-title i {
    color: var(--chefmike-orange);
}

.page-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0 0;
}

@media (max-width: 640px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .page-title {
        font-size: 1.25rem;
    }
}

/* ===========================
   Recipe Grid - per CHEFMIKE-UI-SYSTEM.md v2.0
   =========================== */
.recipe-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .recipe-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .recipe-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .recipe-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
