/* ============================================================================
   MON FRIGO — LAMA WORLDS
============================================================================ */

.frigo-main {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0 16px;
}

/* Group buttons on the right */
.action-buttons-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================================
   SECTIONS
============================================================================ */
.frigo-section {
    margin: 25px 0;
    padding: 22px;
    border-radius: 18px;
    background: rgba(14, 30, 46, 0.55);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 200, 255, 0.18);
    box-shadow: 0 0 25px rgba(0, 200, 255, 0.15);
}

.frigo-section h2 {
    font-size: 1.35rem;
    color: #bdeaff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.45);
    margin-bottom: 6px;
}

.section-sub {
    color: #8bb;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* ============================================================================
   INGREDIENTS GRID
============================================================================ */
.ing-section {
    margin-bottom: 20px;
}

.ing-section h3 {
    font-size: 1rem;
    color: #00dfff;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ing-tag {
    padding: 8px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(0, 255, 255, 0.15);
    color: #e8faff;
    cursor: pointer;
    transition: 0.2s;
    user-select: none;
}

.ing-tag:hover {
    background: rgba(0, 255, 255, 0.15);
    border-color: #00dfff;
}

.ing-tag.selected {
    background: linear-gradient(135deg, #00caff, #007bff);
    border-color: transparent;
    color: white;
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.4);
}

/* ============================================================================
   FILTERS
============================================================================ */
.frigo-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.15);
    color: #aaa;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
}

.filter-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    color: #fff;
}

.filter-btn.active {
    background: rgba(0, 200, 255, 0.2);
    border-color: #00dfff;
    color: #00dfff;
    font-weight: 600;
}

.count-badge {
    background: rgba(0, 255, 255, 0.2);
    color: #00dfff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* ============================================================================
   RECIPES
============================================================================ */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.recipe-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 14px;
    padding: 0;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 255, 255, 0.3);
}

.recipe-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.3);
}

.recipe-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.recipe-title {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 4px;
    font-weight: 600;
}

.recipe-match {
    font-size: 0.85rem;
    color: #00dfff;
    margin-bottom: 8px;
}

.recipe-missing {
    font-size: 0.8rem;
    color: #ffaa00;
    margin-bottom: 8px;
}

.recipe-link {
    color: #00dfff;
    text-decoration: none;
    font-size: 0.85rem;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    transition: 0.2s;
}

.recipe-link:hover {
    color: #42e2ff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.empty-msg {
    grid-column: 1 / -1;
    text-align: center;
    color: #8bb;
    font-style: italic;
    padding: 20px;
}

/* ============================================================================
   API QUOTA COUNTER
============================================================================ */
.api-quota-badge {
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 140, 0, 0.15);
    border: 1px solid rgba(255, 140, 0, 0.3);
    color: #ffaa00;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.api-quota-badge.low {
    background: rgba(255, 60, 60, 0.15);
    border-color: rgba(255, 60, 60, 0.3);
    color: #ff6b6b;
}

/* ============================================================================
   LOADING SPINNER
============================================================================ */
.recipes-loading {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.recipes-loading.hidden {
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 255, 255, 0.1);
    border-top-color: #00dfff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ============================================================================
   LOAD MORE BUTTON
============================================================================ */
.load-more-container {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
}

.load-more-container.hidden {
    display: none;
}

.btn-load-more {
    padding: 12px 24px;
    border-radius: 20px;
    background: rgba(0, 200, 255, 0.15);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00dfff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-load-more:hover {
    background: rgba(0, 200, 255, 0.25);
    border-color: #00dfff;
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.3);
}

/* ============================================================================
   SEARCH RECIPES BUTTON
============================================================================ */
.btn-search-recipes {
    padding: 14px 32px;
    border-radius: 25px;
    background: linear-gradient(135deg, #00caff, #007bff);
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 200, 255, 0.4);
    text-transform: none;
}

.btn-search-recipes:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 200, 255, 0.6);
    background: linear-gradient(135deg, #00dfff, #0088ff);
}

.btn-search-recipes:active {
    transform: translateY(0);
}

.btn-search-recipes:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}