/* ============================================
   WEEKEND MENU LOADER - ESTILOS RESPONSIVE PARA PÁGINA PRINCIPAL
   Sistema de Accordion Profesional
   ============================================ */

/* Accordion de categoría */
.weekend-category-accordion {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.weekend-category-accordion:hover {
    box-shadow: 0 4px 12px rgba(201, 151, 91, 0.15);
}

/* Header del accordion (clickeable) */
.weekend-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    background: linear-gradient(to right, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    gap: 20px;
}

.weekend-accordion-header:hover {
    background: linear-gradient(to right, #fff8f0 0%, #ffffff 100%);
}

.weekend-category-accordion.active .weekend-accordion-header {
    border-bottom-color: #f0f0f0;
    background: #ffffff;
}

.accordion-title-wrapper {
    flex: 1;
}

.weekend-category-title {
    font-size: 22px;
    color: #2c3e50;
    margin: 0 0 6px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weekend-category-description {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.5;
}

.accordion-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.accordion-toggle i {
    font-size: 18px;
    color: #c9975b;
    transition: transform 0.3s ease;
}

.weekend-category-accordion.active .accordion-toggle i {
    transform: rotate(180deg);
}

.item-count {
    font-size: 13px;
    color: #7f8c8d;
    font-weight: 500;
    white-space: nowrap;
}

/* Contenido colapsable del accordion */
.weekend-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

/* Grid de items dentro del accordion */
.weekend-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    padding: 24px;
}

/* Card de item del menú */
.weekend-menu-item {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
}

.weekend-menu-item:hover {
    border-color: #c9975b;
    box-shadow: 0 3px 10px rgba(201, 151, 91, 0.1);
    transform: translateY(-2px);
}

.weekend-item-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.weekend-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.weekend-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.weekend-item-price {
    font-size: 18px;
    font-weight: bold;
    color: #c9975b;
    white-space: nowrap;
}

.weekend-item-description {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Sin items */
.weekend-no-items {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* RESPONSIVE DESIGN */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .weekend-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 14px;
        padding: 20px;
    }

    .weekend-accordion-header {
        padding: 18px 20px;
    }

    .weekend-category-title {
        font-size: 20px;
    }

    .weekend-category-description {
        font-size: 13px;
    }

    .weekend-item-name {
        font-size: 15px;
    }

    .weekend-item-price {
        font-size: 17px;
    }
}

/* Mobile (hasta 767px) */
@media (max-width: 767px) {
    .weekend-category-accordion {
        margin-bottom: 12px;
        border-radius: 8px;
    }

    .weekend-accordion-header {
        padding: 16px 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .accordion-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .weekend-category-title {
        font-size: 18px;
    }

    .weekend-category-description {
        font-size: 13px;
    }

    .weekend-items-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    .weekend-menu-item {
        padding: 14px;
    }

    .weekend-item-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .weekend-item-name {
        font-size: 15px;
    }

    .weekend-item-price {
        font-size: 17px;
        align-self: flex-end;
    }

    .weekend-item-description {
        font-size: 13px;
    }
}

/* Mobile pequeño (hasta 480px) */
@media (max-width: 480px) {
    .weekend-accordion-header {
        padding: 14px 16px;
    }

    .weekend-category-title {
        font-size: 16px;
    }

    .weekend-category-description {
        font-size: 12px;
    }

    .accordion-toggle i {
        font-size: 16px;
    }

    .item-count {
        font-size: 12px;
    }

    .weekend-items-grid {
        padding: 14px;
        gap: 10px;
    }

    .weekend-menu-item {
        padding: 12px;
    }

    .weekend-item-name {
        font-size: 14px;
    }

    .weekend-item-price {
        font-size: 16px;
    }

    .weekend-item-description {
        font-size: 12px;
    }

    .weekend-no-items {
        padding: 30px 15px;
        font-size: 13px;
    }
}

/* Animación suave para el accordion */
@media (prefers-reduced-motion: no-preference) {
    .weekend-accordion-content {
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .accordion-toggle i {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Print styles */
@media print {
    .weekend-category-accordion {
        break-inside: avoid;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    .weekend-accordion-header {
        background: transparent !important;
        border-bottom: 1px solid #ddd !important;
    }

    .accordion-toggle {
        display: none;
    }

    .weekend-accordion-content {
        max-height: none !important;
        overflow: visible !important;
    }

    .weekend-items-grid {
        display: block;
    }

    .weekend-menu-item {
        margin-bottom: 15px;
        break-inside: avoid;
    }
}
