/* ==========================================================================
   Ingredients Checklist Shelf
   ========================================================================== */


/* Ingredients Checklist Shelf */
.ingredients-panel {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.ingredients-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.ingredients-card:hover {
    border-color: var(--border-highlight);
}

.ingredients-card.all-collected {
    border-color: rgba(52, 211, 153, 0.4);
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.08);
}

.ingredients-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border-subtle);
}

.ingredients-header-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ingredients-icon {
    font-size: 1.15rem;
}

.ingredients-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.ingredients-count-pill {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(147, 51, 234, 0.15);
    border: 1px solid rgba(147, 51, 234, 0.35);
    color: var(--accent-amethyst);
}

.ingredients-count-pill.all-done {
    background: rgba(52, 211, 153, 0.18);
    border-color: rgba(52, 211, 153, 0.4);
    color: var(--accent-emerald);
}

.btn-reset-ingredients {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
}

.ingredients-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: stretch;
}

.ingredient-node {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.65rem;
    min-width: 120px;
    max-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    cursor: pointer;
    user-select: none;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ingredient-node:hover {
    border-color: var(--border-highlight);
    transform: translateY(-1px);
}

.ingredient-node:focus-visible {
    outline: 2px solid var(--accent-amethyst);
    outline-offset: 1px;
}

.ingredient-node.is-base-item {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.06);
}

.ingredient-node.is-grindstone-wiped {
    border-color: #f59e0b !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2) !important;
}

.ingredient-node.collected {
    opacity: 0.5;
    background: rgba(52, 211, 153, 0.04);
    border-color: rgba(52, 211, 153, 0.3);
}

.ingredient-node.collected .wf-node-title,
.ingredient-node.collected .wf-ench-pill {
    text-decoration: line-through;
}

.ingredient-node-top {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ingredient-node-top .chip-checkbox {
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 3px;
    border: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: transparent;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.ingredient-node-top .chip-checkbox.checked {
    background: var(--accent-emerald);
    border-color: var(--accent-emerald);
    color: #0f172a;
}

.wf-ench-pill.curse-pill {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

[data-theme="light"] .ingredient-node {
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .ingredient-node.is-base-item {
    border-color: rgba(2, 132, 199, 0.4);
    background: rgba(2, 132, 199, 0.06);
}
