/* =============================================
   SYRUP SAFARI - Styles
   Soft pastels & earthy naturals with botanical touches
   ============================================= */

/* CSS Variables - Earthy Natural Palette */
:root {
    --bg-primary: #f5ebe0;
    --bg-secondary: #faf7f2;
    --bg-card: #ffffff;

    --text-primary: #5c4d3d;
    --text-secondary: #8b7355;
    --text-muted: #a89a8a;

    --accent-primary: #a3b18a;
    --accent-secondary: #dda15e;
    --accent-tertiary: #bc6c25;

    --heart-empty: #d4c4b0;
    --heart-filled: #e07a5f;

    --border-light: #e8ddd4;
    --border-medium: #d4c4b0;

    --shadow-soft: 0 2px 8px rgba(92, 77, 61, 0.08);
    --shadow-medium: 0 4px 16px rgba(92, 77, 61, 0.12);
    --shadow-lifted: 0 8px 32px rgba(92, 77, 61, 0.16);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50%;

    --transition-fast: 0.15s ease;
    --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    line-height: 1.3;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.125rem; }

/* =============================================
   HEADER
   ============================================= */
.app-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    padding-top: var(--safe-area-top);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.leaf-icon {
    width: 28px;
    height: 28px;
    color: var(--accent-primary);
}

.logo h1 {
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.settings-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.settings-btn svg {
    width: 22px;
    height: 22px;
}

.settings-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.settings-btn:active {
    transform: scale(0.95);
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* Views */
.view {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 1.25rem;
    padding-bottom: calc(6rem + var(--safe-area-bottom));
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
    transition: opacity var(--transition-medium), transform var(--transition-medium);
}

.view.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.view.slide-out {
    transform: translateX(-20px);
}

/* =============================================
   FILTER BAR
   ============================================= */
.filter-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-wrapper {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(163, 177, 138, 0.2);
}

.filter-btn {
    width: 48px;
    height: 48px;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.filter-btn svg {
    width: 20px;
    height: 20px;
}

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

.filter-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* Filter Panel */
.filter-panel {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-soft);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: slideDown var(--transition-medium);
}

.filter-panel.hidden {
    display: none;
}

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

.filter-section {
    margin-bottom: 1.25rem;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-option {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-light);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-option:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.filter-option.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* =============================================
   SYRUP GRID
   ============================================= */
.syrup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Syrup Card */
.syrup-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: all var(--transition-medium);
    animation: fadeInUp 0.4s ease backwards;
}

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

.syrup-card:active {
    transform: translateY(-2px) scale(0.98);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.syrup-card:nth-child(1) { animation-delay: 0.05s; }
.syrup-card:nth-child(2) { animation-delay: 0.1s; }
.syrup-card:nth-child(3) { animation-delay: 0.15s; }
.syrup-card:nth-child(4) { animation-delay: 0.2s; }
.syrup-card:nth-child(5) { animation-delay: 0.25s; }
.syrup-card:nth-child(6) { animation-delay: 0.3s; }

.card-color-bar {
    height: 80px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0.5rem;
}

.card-color-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0.85;
}

/* Generative art background for cards */
.card-art-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-art-bg::before {
    display: none; /* Hide the overlay for art backgrounds */
}

.card-rating {
    position: relative;
    display: flex;
    gap: 2px;
}

.card-rating svg {
    width: 14px;
    height: 14px;
    fill: white;
    opacity: 0.9;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.card-content {
    padding: 1rem;
}

.card-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.card-tag {
    font-size: 0.6875rem;
    padding: 0.125rem 0.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    max-width: 280px;
    margin: 0 auto;
}

.empty-state.hidden {
    display: none;
}

.empty-illustration {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.empty-state h2 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* FAB (Floating Action Button) */
.fab {
    position: fixed;
    bottom: calc(1.5rem + var(--safe-area-bottom));
    right: 1.5rem;
    width: 60px;
    height: 60px;
    border: none;
    background: linear-gradient(135deg, var(--accent-primary), #8fa374);
    color: white;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lifted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-medium);
    z-index: 50;
}

.fab svg {
    width: 28px;
    height: 28px;
}

.fab:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(163, 177, 138, 0.4);
}

.fab:active {
    transform: scale(0.95);
}

/* =============================================
   EDIT VIEW
   ============================================= */
.edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.back-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.back-btn svg {
    width: 20px;
    height: 20px;
}

.back-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.back-btn:active {
    transform: scale(0.95);
}

.edit-header h2 {
    color: var(--text-primary);
}

.save-btn {
    padding: 0.625rem 1.25rem;
    border: none;
    background: var(--accent-primary);
    color: white;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.save-btn:hover {
    background: #8fa374;
}

.save-btn:active {
    transform: scale(0.97);
}

/* Form */
.syrup-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    resize: none;
}

.form-group input[type="text"]::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(163, 177, 138, 0.2);
}

/* Rating Input */
.rating-input {
    display: flex;
    gap: 0.5rem;
}

.heart-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.heart-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--heart-empty);
    transition: all var(--transition-fast);
}

.heart-btn:hover svg {
    fill: var(--heart-filled);
    transform: scale(1.1);
}

.heart-btn.active svg {
    fill: var(--heart-filled);
    animation: heartPop 0.3s ease;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Tags Input */
.tags-input-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    transition: all var(--transition-fast);
}

.tags-input-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(163, 177, 138, 0.2);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: var(--accent-primary);
    color: white;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    animation: tagPop 0.2s ease;
}

@keyframes tagPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.tag-remove {
    width: 16px;
    height: 16px;
    border: none;
    background: rgba(255,255,255,0.3);
    color: white;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    transition: background var(--transition-fast);
}

.tag-remove:hover {
    background: rgba(255,255,255,0.5);
}

.tags-input-wrapper input {
    flex: 1;
    min-width: 120px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text-primary);
    outline: none;
}

.tags-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.suggested-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.suggested-tag {
    padding: 0.375rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px dashed var(--border-medium);
    border-radius: var(--radius-lg);
    font-size: 0.8125rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.suggested-tag:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    border-style: solid;
}

/* Ingredients List */
.ingredients-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ingredient-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    animation: fadeInUp 0.2s ease;
}

.ingredient-amount {
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    flex: 0 0 50px;
    padding: 0.75rem 0.5rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text-primary);
    text-align: center;
}

.ingredient-amount:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(163, 177, 138, 0.2);
}

.ingredient-unit {
    width: 75px;
    min-width: 75px;
    max-width: 75px;
    flex: 0 0 75px;
    padding: 0.75rem 0.25rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    font-family: inherit;
    font-size: 0.8125rem;
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%238b7355' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.35rem center;
    padding-right: 1.25rem;
}

.ingredient-unit:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(163, 177, 138, 0.2);
}

.ingredient-name {
    flex: 1 1 auto;
    min-width: 80px;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.ingredient-name:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(163, 177, 138, 0.2);
}

.ingredient-name::placeholder {
    color: var(--text-muted);
}

.remove-ingredient-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-muted);
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.remove-ingredient-btn svg {
    width: 14px;
    height: 14px;
}

.remove-ingredient-btn:hover {
    background: #fce8e6;
    color: #c5221f;
}

.add-ingredient-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem;
    border: 2px dashed var(--border-medium);
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.add-ingredient-btn svg {
    width: 18px;
    height: 18px;
}

.add-ingredient-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(163, 177, 138, 0.05);
}

/* Color Picker */
.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.color-preview {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.color-preview:hover {
    transform: scale(1.05);
}

.color-preview.pulse {
    animation: colorPulse 0.6s ease;
}

@keyframes colorPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(163, 177, 138, 0.7); }
    50% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(163, 177, 138, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(163, 177, 138, 0); }
}

.color-picker {
    position: absolute;
    width: 48px;
    height: 48px;
    opacity: 0;
    cursor: pointer;
}

.color-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-style: italic;
}

.preset-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.preset-color {
    width: 36px;
    height: 36px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.preset-color:hover {
    transform: scale(1.1);
}

.preset-color.active {
    border-color: var(--text-primary);
    box-shadow: var(--shadow-soft);
}

/* =============================================
   DETAIL VIEW
   ============================================= */
.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.detail-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

.action-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.action-btn.danger:hover {
    background: #fce8e6;
    color: #c5221f;
}

.detail-content {
    max-width: 600px;
    margin: 0 auto;
}

.detail-color-header {
    height: 180px;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.detail-color-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

/* Generative art background for detail header */
.detail-art-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.detail-name {
    position: relative;
    color: white;
    font-size: 2rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.detail-rating {
    display: flex;
    gap: 0.375rem;
    margin-bottom: 1.5rem;
}

.detail-rating svg {
    width: 28px;
    height: 28px;
    fill: var(--heart-empty);
}

.detail-rating svg.filled {
    fill: var(--heart-filled);
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.detail-description {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.detail-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.detail-ingredients {
    list-style: none;
}

.detail-ingredient {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.detail-ingredient:last-child {
    border-bottom: none;
}

.ingredient-quantity {
    font-weight: 500;
    color: var(--accent-secondary);
    min-width: 80px;
}

.ingredient-item {
    color: var(--text-primary);
}

.detail-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* =============================================
   SETTINGS VIEW
   ============================================= */
.settings-content {
    max-width: 600px;
    margin: 0 auto;
}

.settings-section {
    margin-bottom: 2rem;
}

.settings-section h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.settings-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: 0.75rem;
}

.settings-option svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.settings-option:hover {
    border-color: var(--accent-primary);
    background: var(--bg-secondary);
}

.settings-option:active {
    transform: scale(0.98);
}

.about-info {
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    text-align: center;
}

.about-info p {
    margin-bottom: 0.25rem;
}

.about-info .version {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.about-info .made-with {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 1rem;
}

/* =============================================
   MODAL
   ============================================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.hidden {
    display: none;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(92, 77, 61, 0.5);
    animation: fadeIn 0.2s ease;
}

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

.modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    max-width: 320px;
    width: 100%;
    box-shadow: var(--shadow-lifted);
    animation: modalPop 0.3s ease;
}

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

.modal-content h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.modal-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.modal-btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-btn.cancel {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.modal-btn.cancel:hover {
    background: var(--bg-primary);
}

.modal-btn.danger {
    background: #c5221f;
    color: white;
}

.modal-btn.danger:hover {
    background: #a31815;
}

/* =============================================
   TOAST
   ============================================= */
.toast {
    position: fixed;
    bottom: calc(5rem + var(--safe-area-bottom));
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--text-primary);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    box-shadow: var(--shadow-lifted);
    z-index: 300;
    opacity: 0;
    transition: all var(--transition-medium);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.hidden {
    display: none;
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.hidden {
    display: none !important;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (min-width: 640px) {
    .syrup-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .view {
        padding: 2rem;
        padding-bottom: calc(6rem + var(--safe-area-bottom));
    }

    .header-content {
        padding: 1rem 2rem;
    }
}

/* =============================================
   PRINT
   ============================================= */
@media print {
    .fab,
    .filter-bar,
    .edit-header,
    .detail-header {
        display: none;
    }
}
