/* ═══════════════════════════════════════════════════════════════
   Skyrim Alchemy Helper - shadcn/ui inspired dark theme
   with Elder Scrolls aesthetic
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables (shadcn-style tokens) ─────────────────────── */
:root {
    --background: #0a0a0c;
    --foreground: #e8e0d4;
    --card: #131318;
    --card-foreground: #e8e0d4;
    --popover: #131318;
    --popover-foreground: #e8e0d4;
    --primary: #c8a84e;
    --primary-foreground: #0a0a0c;
    --secondary: #1e1e26;
    --secondary-foreground: #e8e0d4;
    --muted: #1a1a22;
    --muted-foreground: #8a8478;
    --accent: #2a2520;
    --accent-foreground: #c8a84e;
    --destructive: #7f1d1d;
    --destructive-foreground: #fca5a5;
    --border: #2a2a35;
    --input: #1e1e26;
    --ring: #c8a84e;
    --radius: 0.5rem;

    /* Effect colors */
    --positive: #4ade80;
    --negative: #f87171;
    --neutral: #a78bfa;

    /* Skyrim specific */
    --gold: #c8a84e;
    --gold-dim: #8a7535;
    --parchment: #d4c5a0;
    --leather: #3d2b1f;

    /* Sidebar */
    --sidebar-width: 260px;

    /* Fonts */
    --font-display: 'Cinzel', serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.02em;
}

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

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--background);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--muted-foreground);
}

/* ── shadcn-style Components ─────────────────────────────────── */

/* Card */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}
.btn-primary:hover:not(:disabled) {
    background: #b89840;
    border-color: #b89840;
}

.btn-secondary {
    background: var(--secondary);
    color: var(--secondary-foreground);
    border-color: var(--border);
}
.btn-secondary:hover:not(:disabled) {
    background: var(--accent);
}

.btn-ghost {
    background: transparent;
    color: var(--foreground);
}
.btn-ghost:hover {
    background: var(--accent);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border-color: var(--border);
}
.btn-outline:hover {
    background: var(--accent);
    border-color: var(--gold-dim);
}

.btn-full {
    width: 100%;
}

.btn svg, .btn i {
    width: 16px;
    height: 16px;
}

/* Input */
.input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-family: var(--font-body);
    background: var(--input);
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus {
    border-color: var(--ring);
    box-shadow: 0 0 0 2px rgba(200, 168, 78, 0.15);
}
.input::placeholder {
    color: var(--muted-foreground);
}

/* Select */
.select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-family: var(--font-body);
    background: var(--input);
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8478' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}
.select:focus {
    border-color: var(--ring);
    box-shadow: 0 0 0 2px rgba(200, 168, 78, 0.15);
}

/* Checkbox */
.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    color: var(--muted-foreground);
}
.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Alert */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.alert-error {
    background: var(--destructive);
    color: var(--destructive-foreground);
    border: 1px solid #991b1b;
}

/* Badge / Tag */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    border: 1px solid transparent;
}
.badge-positive {
    background: rgba(74, 222, 128, 0.1);
    color: var(--positive);
    border-color: rgba(74, 222, 128, 0.2);
}
.badge-negative {
    background: rgba(248, 113, 113, 0.1);
    color: var(--negative);
    border-color: rgba(248, 113, 113, 0.2);
}
.badge-neutral {
    background: rgba(167, 139, 250, 0.1);
    color: var(--neutral);
    border-color: rgba(167, 139, 250, 0.2);
}
.badge-gold {
    background: rgba(200, 168, 78, 0.1);
    color: var(--gold);
    border-color: rgba(200, 168, 78, 0.2);
}
.badge-category {
    background: var(--secondary);
    color: var(--muted-foreground);
    border-color: var(--border);
    text-transform: capitalize;
}

/* Form */
.form-group {
    margin-bottom: 1rem;
}
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--foreground);
}

/* Text utility */
.text-muted {
    color: var(--muted-foreground);
}

/* ── Login Page ──────────────────────────────────────────────── */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.login-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(200, 168, 78, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(100, 80, 40, 0.05) 0%, transparent 50%),
        var(--background);
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    padding: 1rem;
}

.login-card {
    text-align: center;
}

.login-header {
    margin-bottom: 2rem;
}

.login-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    color: var(--gold);
}

.potion-icon, .potion-icon-sm {
    width: 100%;
    height: 100%;
}

.login-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.login-form {
    text-align: left;
}

.login-form .input {
    text-align: center;
    font-size: 1.25rem;
    letter-spacing: 0.3em;
    padding: 0.75rem;
}

.login-form .btn {
    margin-top: 0.5rem;
    padding: 0.75rem;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.05em;
}

/* ── App Layout ──────────────────────────────────────────────── */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 50;
    transition: transform 0.2s ease;
}

.sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
}

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

.potion-icon-sm {
    width: 32px;
    height: 32px;
    color: var(--gold);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gold);
}

.sidebar-nav {
    flex: 1;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--muted-foreground);
    background: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s ease;
    width: 100%;
    text-align: left;
    text-decoration: none;
}
.nav-item:hover {
    background: var(--accent);
    color: var(--foreground);
}
.nav-item.active {
    background: var(--accent);
    color: var(--gold);
    font-weight: 500;
}
.nav-item i, .nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 0.5rem;
    border-top: 1px solid var(--border);
}

.nav-logout {
    color: var(--muted-foreground);
}
.nav-logout:hover {
    color: var(--destructive-foreground);
    background: rgba(127, 29, 29, 0.3);
}

/* Mobile header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    align-items: center;
    justify-content: space-between;
    padding: 0 0.75rem;
    z-index: 40;
}

.mobile-title {
    font-family: var(--font-display);
    color: var(--gold);
    font-weight: 600;
}

/* Main content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    padding: 2rem;
}

/* ── Pages ───────────────────────────────────────────────────── */
.page {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
}
.page.active {
    display: block;
}

.page-header {
    margin-bottom: 1.5rem;
}
.page-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

/* Toolbar */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.search-group {
    position: relative;
    flex: 1;
    min-width: 200px;
}
.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--muted-foreground);
    pointer-events: none;
}
.search-input {
    padding-left: 2.25rem;
}

.filter-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

/* ── Ingredient Cards Grid ───────────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.ingredient-card {
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
}
.ingredient-card:hover {
    border-color: var(--gold-dim);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ingredient-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.ingredient-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    background: var(--secondary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.ingredient-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ingredient-img-placeholder {
    font-size: 1.75rem;
    opacity: 0.5;
}

.ingredient-card-info h3 {
    font-size: 1rem;
    font-family: var(--font-display);
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.ingredient-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.ingredient-card-effects {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.effect-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.effect-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.effect-dot-positive { background: var(--positive); }
.effect-dot-negative { background: var(--negative); }
.effect-dot-neutral { background: var(--neutral); }

.harvest-info {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.harvest-info span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ── Effects List ────────────────────────────────────────────── */
.effects-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.effect-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
}
.effect-card:hover {
    border-color: var(--gold-dim);
}

.effect-card-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.effect-type-indicator {
    width: 4px;
    height: 32px;
    border-radius: 2px;
    flex-shrink: 0;
}
.effect-type-positive { background: var(--positive); }
.effect-type-negative { background: var(--negative); }
.effect-type-neutral { background: var(--neutral); }

.effect-card-info h3 {
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--foreground);
    font-weight: 500;
}

.effect-card-ingredients {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.effect-card-count {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    white-space: nowrap;
}

/* ── Brew Page ───────────────────────────────────────────────── */
.brew-controls {
    margin-bottom: 1.5rem;
}
.brew-controls h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.brew-effect-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.brew-effect-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: var(--secondary);
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.15s ease;
}
.brew-effect-btn:hover {
    border-color: var(--gold-dim);
}
.brew-effect-btn.selected {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.75rem;
    min-height: 32px;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    background: rgba(200, 168, 78, 0.15);
    color: var(--gold);
    border: 1px solid rgba(200, 168, 78, 0.3);
    border-radius: 9999px;
}
.selected-tag button {
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-size: 1rem;
}

.brew-options {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}
.brew-options .form-group {
    margin-bottom: 0;
    min-width: 180px;
}

.brew-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recipe-card {
    transition: all 0.15s ease;
}
.recipe-card:hover {
    border-color: var(--gold-dim);
}

.recipe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.recipe-header h3 {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--foreground);
}

.recipe-ingredients {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.recipe-ingredient {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.recipe-ingredient-icon {
    font-size: 1.25rem;
}

.recipe-effects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.recipe-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
    margin-top: 0.75rem;
}

/* ── Modal ───────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1rem;
}
.modal-overlay.active {
    display: flex;
}

.modal {
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 1;
}

.modal-ingredient-header {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.modal-ingredient-img {
    width: 96px;
    height: 96px;
    border-radius: var(--radius);
    background: var(--secondary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.modal-ingredient-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-img-placeholder {
    font-size: 2.5rem;
    opacity: 0.5;
}

.modal-ingredient-info h2 {
    font-size: 1.375rem;
    margin-bottom: 0.25rem;
}

.modal-ingredient-info .ingredient-meta {
    margin-top: 0.5rem;
}

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

.modal-section h3 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
    font-family: var(--font-body);
    margin-bottom: 0.75rem;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid var(--border);
}

.modal-effect-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-effect-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: var(--secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.modal-effect-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.modal-effect-order {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.modal-shared-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.modal-shared-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.85rem;
    background: var(--secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.15s ease;
}
.modal-shared-item:hover {
    border-color: var(--gold-dim);
}

.modal-shared-ingredient {
    color: var(--foreground);
}
.modal-shared-effect {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.modal-properties {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
}

.modal-property {
    padding: 0.75rem;
    background: var(--secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
}

.modal-property-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    margin-bottom: 0.25rem;
}

.modal-property-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
}
.modal-property-value.yes { color: var(--positive); }
.modal-property-value.no { color: var(--muted-foreground); }

/* ── Loading & Empty States ──────────────────────────────────── */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--muted-foreground);
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--muted-foreground);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* ── Separate Mode Results ───────────────────────────────────── */
.separate-effect-group {
    margin-bottom: 1.5rem;
}
.separate-effect-group h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }

    .mobile-header {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: calc(56px + 1rem);
    }

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

    .toolbar {
        flex-direction: column;
    }

    .search-group {
        width: 100%;
    }

    .filter-group {
        width: 100%;
    }

    .brew-options {
        flex-direction: column;
    }

    .modal {
        max-height: 90vh;
    }

    .modal-ingredient-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .modal-properties {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Sidebar overlay on mobile ───────────────────────────────── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 45;
}
.sidebar-overlay.active {
    display: block;
}

/* ── Effect detail panel within effects page ─────────────────── */
.effect-detail-panel {
    margin-top: 0.5rem;
    padding: 1rem;
    background: var(--secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.effect-ingredient-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ingredient-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s ease;
}
.ingredient-chip:hover {
    border-color: var(--gold-dim);
    color: var(--gold);
}

.ingredient-chip .chip-order {
    font-size: 0.7rem;
    color: var(--muted-foreground);
    background: var(--muted);
    padding: 0 0.375rem;
    border-radius: 4px;
}
