/* ACE Recipes Plugin Styles
   Minimal custom CSS - relies on Bootstrap 5 for theming */

/* ============================================
   Recipe Icons
   ============================================ */
.recipe-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.recipe-icon-large {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.recipe-icon-tiny {
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: middle;
}

.recipe-icon-wrapper {
    flex-shrink: 0;
}

.recipe-icon-placeholder {
    width: 48px;
    height: 48px;
    background-color: var(--bs-tertiary-bg, #f8f9fa);
}

/* ============================================
   Recipe Cards
   ============================================ */
.recipe-card {
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.recipe-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.recipe-preview,
.recipe-result {
    font-size: 0.875rem;
}

/* ============================================
   Success Meter
   ============================================ */
.success-meter-container {
    min-width: 200px;
}

.progress-bar span {
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Calculator Cards
   ============================================ */
.calculator-result-card {
    border-left: 4px solid var(--bs-primary);
}

.calculator-result-card.success-high {
    border-left-color: var(--bs-success);
}

.calculator-result-card.success-medium {
    border-left-color: var(--bs-warning);
}

.calculator-result-card.success-low {
    border-left-color: var(--bs-danger);
}

/* ============================================
   Tinkering Tables
   ============================================ */
.tinkering-table .table-active {
    font-weight: bold;
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

.salvage-reference-table {
    font-size: 0.875rem;
}

.salvage-reference-table th {
    position: sticky;
    top: 0;
    background-color: var(--bs-body-bg);
    z-index: 1;
}

/* ============================================
   Recipe Detail Page
   ============================================ */
.recipe-detail-header {
    border-bottom: 3px solid var(--bs-primary);
}

.ingredient-item {
    transition: background-color 0.15s ease-in-out;
}

.ingredient-item:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

/* Interactive calculator in recipe detail */
.inline-calculator {
    background-color: var(--bs-tertiary-bg, #f8f9fa);
    border-radius: 0.5rem;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 767.98px) {
    .recipe-icon-large {
        width: 40px;
        height: 40px;
    }
    
    .recipe-card .card-title {
        font-size: 1rem;
    }
}

/* ============================================
   Dark Mode Adjustments
   ============================================ */
[data-bs-theme="dark"] .recipe-icon-placeholder {
    background-color: var(--bs-secondary-bg);
}

[data-bs-theme="dark"] .inline-calculator {
    background-color: var(--bs-secondary-bg);
}

[data-bs-theme="dark"] .salvage-reference-table th {
    background-color: var(--bs-body-bg);
}
