/* ========================================
   WEEKLY BUFFET PRICING - KAISERGARTEN
   Premium Asian-Inspired Calendar Design
   ======================================== */

/* Main Container */
.weekly-buffet-overview-section {
    margin: 2.5rem 0;
    padding: 0;
    background: transparent;
    position: relative;
}

/* Section Header with Decorative Elements */
.section-header-centered {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-header-centered::before,
.section-header-centered::after {
    content: '龍';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: rgba(196, 30, 58, 0.08);
    font-family: serif;
}

.section-header-centered::before {
    left: 10%;
}

.section-header-centered::after {
    right: 10%;
    content: '鳳';
}

.section-header-centered h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.section-header-centered h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), var(--primary-color), transparent);
    border-radius: 2px;
}

.section-header-centered p {
    font-size: 0.95rem;
    color: #666;
    margin: 0.75rem 0 0;
    font-weight: 400;
}

/* Widget Container */
.buffet-weekly-pricing-widget {
    margin: 0;
    padding: 0;
    background: transparent;
}

.buffet-weekly-pricing-widget .weekly-overview,
.buffet-weekly-pricing-widget .weekly-overview-only {
    background: transparent;
    margin: 0;
}

.buffet-weekly-pricing-widget .weekly-overview-header {
    display: none;
}

/* ========================================
   THE PRICE TABLE - CALENDAR CARD DESIGN
   ======================================== */

.buffet-weekly-pricing-widget .price-table {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.04),
        0 10px 20px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(196, 30, 58, 0.08);
    position: relative;
}

/* Top Decorative Banner */
.buffet-weekly-pricing-widget .price-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 25%,
        var(--primary-color) 50%,
        var(--secondary-color) 75%,
        var(--primary-color) 100%
    );
    background-size: 200% 100%;
    animation: shimmerBorder 4s linear infinite;
}

@keyframes shimmerBorder {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Table Header - Dark Elegant Style */
.buffet-weekly-pricing-widget .price-table-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: none;
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr;
    align-items: center;
    padding: 1.1rem 1.5rem !important;
    position: relative;
}

.buffet-weekly-pricing-widget .price-table-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(250, 183, 0, 0.5), transparent);
}

.buffet-weekly-pricing-widget .price-table-header > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #ffffff !important;
}

.buffet-weekly-pricing-widget .price-table-header > div:first-child {
    justify-content: flex-start;
    color: #ffffff !important;
}

.buffet-weekly-pricing-widget .price-table-header .table-cell {
    color: #ffffff !important;
}

.buffet-weekly-pricing-widget .price-table-header > div:first-child::before {
    content: '📅';
    font-size: 1rem;
}

.buffet-weekly-pricing-widget .price-table-header > div:nth-child(2)::before {
    content: '☀️';
    font-size: 0.9rem;
}

.buffet-weekly-pricing-widget .price-table-header > div:nth-child(3)::before {
    content: '🌙';
    font-size: 0.9rem;
}

/* Table Rows - Alternating Pattern */
.buffet-weekly-pricing-widget .price-table-row {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    padding: 0.95rem 1.5rem !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.buffet-weekly-pricing-widget .price-table-row:nth-child(even) {
    background: linear-gradient(90deg, rgba(248, 249, 250, 0.8), rgba(255, 255, 255, 0.9));
}

.buffet-weekly-pricing-widget .price-table-row:last-child {
    border-bottom: none;
    border-radius: 0 0 20px 20px;
}

/* Row Hover - Elegant Reveal */
.buffet-weekly-pricing-widget .price-table-row:hover {
    background: linear-gradient(90deg, rgba(250, 183, 0, 0.08), rgba(196, 30, 58, 0.04));
    transform: scale(1.01);
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.buffet-weekly-pricing-widget .price-table-row:hover .price-cell {
    transform: scale(1.05);
}

/* TODAY Row - Premium Highlight */
.buffet-weekly-pricing-widget .price-table-row.today {
    background: linear-gradient(90deg, 
        rgba(196, 30, 58, 0.06) 0%,
        rgba(250, 183, 0, 0.1) 50%,
        rgba(196, 30, 58, 0.06) 100%
    );
    border-left: 4px solid var(--primary-color);
    padding-left: calc(1.5rem - 4px) !important;
    position: relative;
}

.buffet-weekly-pricing-widget .price-table-row.today::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 0;
}

.buffet-weekly-pricing-widget .price-table-row.today::after {
    content: 'HEUTE';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), #a01729);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(196, 30, 58, 0.3);
}

/* Day Cell - Typography Focus */
.buffet-weekly-pricing-widget .table-cell {
    color: #333;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.buffet-weekly-pricing-widget .day-cell {
    font-weight: 700;
    gap: 0.6rem;
    justify-content: flex-start;
    text-align: left;
    color: #1a1a2e;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

/* Today Badge - Animated Dot */
.buffet-weekly-pricing-widget .today-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-right: 0.5rem;
    position: relative;
    animation: todayPulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.4);
}

@keyframes todayPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.5);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(196, 30, 58, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(196, 30, 58, 0);
    }
}

/* Price Cells - Premium Number Display */
.buffet-weekly-pricing-widget .price-cell {
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    font-variant-numeric: tabular-nums;
    position: relative;
}

/* Lunch Price - Gold Accent */
.buffet-weekly-pricing-widget .price-table-row .price-cell:first-of-type {
    color: #b8860b;
}

/* Dinner Price - Red Accent */
.buffet-weekly-pricing-widget .price-table-row .price-cell:last-of-type {
    color: var(--primary-color);
}

/* Today Row Price Styling */
.buffet-weekly-pricing-widget .price-table-row.today .price-cell {
    font-weight: 900;
}

/* Loading State */
.buffet-weekly-pricing-widget .loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
}

.buffet-weekly-pricing-widget .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(196, 30, 58, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

@media (max-width: 768px) {
    .weekly-buffet-overview-section {
        margin: 1.5rem 0;
    }
    
    .section-header-centered {
        margin-bottom: 1.5rem;
    }
    
    .section-header-centered::before,
    .section-header-centered::after {
        display: none;
    }
    
    .section-header-centered h3 {
        font-size: 1.35rem;
    }
    
    .section-header-centered p {
        font-size: 0.85rem;
    }
    
    .buffet-weekly-pricing-widget .price-table {
        border-radius: 16px;
    }
    
    .buffet-weekly-pricing-widget .price-table-header {
        padding: 0.9rem 1rem !important;
        font-size: 0.7rem;
        letter-spacing: 1px;
        grid-template-columns: 1.8fr 1fr 1fr;
    }
    
    .buffet-weekly-pricing-widget .price-table-header > div:first-child::before,
    .buffet-weekly-pricing-widget .price-table-header > div:nth-child(2)::before,
    .buffet-weekly-pricing-widget .price-table-header > div:nth-child(3)::before {
        font-size: 0.8rem;
    }
    
    .buffet-weekly-pricing-widget .price-table-row {
        padding: 0.85rem 1rem !important;
        grid-template-columns: 1.8fr 1fr 1fr;
    }
    
    .buffet-weekly-pricing-widget .price-table-row.today {
        padding-left: calc(1rem - 4px) !important;
    }
    
    .buffet-weekly-pricing-widget .price-table-row.today::after {
        right: 0.5rem;
        font-size: 0.5rem;
        padding: 0.2rem 0.4rem;
    }
    
    .buffet-weekly-pricing-widget .day-cell {
        font-size: 0.9rem;
    }
    
    .buffet-weekly-pricing-widget .price-cell {
        font-size: 1rem;
    }
    
    .buffet-weekly-pricing-widget .today-badge {
        width: 8px;
        height: 8px;
        margin-right: 0.4rem;
    }
}

@media (max-width: 480px) {
    .weekly-buffet-overview-section {
        margin: 1rem 0;
    }
    
    .section-header-centered {
        margin-bottom: 1rem;
    }
    
    .section-header-centered h3 {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }
    
    .section-header-centered h3::after {
        width: 40px;
        height: 2px;
        bottom: -6px;
    }
    
    .section-header-centered p {
        font-size: 0.8rem;
    }
    
    .buffet-weekly-pricing-widget .price-table {
        border-radius: 12px;
        box-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.04),
            0 4px 12px rgba(0, 0, 0, 0.06);
    }
    
    .buffet-weekly-pricing-widget .price-table::before {
        height: 4px;
    }
    
    .buffet-weekly-pricing-widget .price-table-header {
        padding: 0.75rem 0.85rem !important;
        font-size: 0.65rem;
        letter-spacing: 0.8px;
        gap: 0.3rem;
    }
    
    .buffet-weekly-pricing-widget .price-table-header > div {
        gap: 0.3rem;
    }
    
    .buffet-weekly-pricing-widget .price-table-header > div:first-child::before,
    .buffet-weekly-pricing-widget .price-table-header > div:nth-child(2)::before,
    .buffet-weekly-pricing-widget .price-table-header > div:nth-child(3)::before {
        font-size: 0.7rem;
    }
    
    .buffet-weekly-pricing-widget .price-table-row {
        padding: 0.7rem 0.85rem !important;
        gap: 0.3rem;
    }
    
    .buffet-weekly-pricing-widget .price-table-row.today {
        padding-left: calc(0.85rem - 4px) !important;
    }
    
    .buffet-weekly-pricing-widget .price-table-row.today::after {
        display: none; /* Hide label on very small screens */
    }
    
    .buffet-weekly-pricing-widget .day-cell {
        font-size: 0.85rem;
        font-weight: 600;
    }
    
    .buffet-weekly-pricing-widget .price-cell {
        font-size: 0.95rem;
        font-weight: 700;
    }
    
    .buffet-weekly-pricing-widget .today-badge {
        width: 6px;
        height: 6px;
        margin-right: 0.3rem;
    }
    
    /* Hover disabled on mobile */
    .buffet-weekly-pricing-widget .price-table-row:hover {
        transform: none;
        box-shadow: none;
    }
    
    .buffet-weekly-pricing-widget .price-table-row:hover .price-cell {
        transform: none;
    }
}

@media (max-width: 360px) {
    .buffet-weekly-pricing-widget .price-table-header {
        padding: 0.65rem 0.7rem !important;
        font-size: 0.6rem;
    }
    
    .buffet-weekly-pricing-widget .price-table-row {
        padding: 0.6rem 0.7rem !important;
    }
    
    .buffet-weekly-pricing-widget .day-cell {
        font-size: 0.8rem;
    }
    
    .buffet-weekly-pricing-widget .price-cell {
        font-size: 0.9rem;
    }
}

/* ========================================
   ACCESSIBILITY & MOTION PREFERENCES
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .buffet-weekly-pricing-widget .price-table::before {
        animation: none;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    }
    
    .buffet-weekly-pricing-widget .today-badge {
        animation: none;
    }
    
    .buffet-weekly-pricing-widget .price-table-row {
        transition: none;
    }
    
    .buffet-weekly-pricing-widget .price-cell {
        transition: none;
    }
}

@media (prefers-contrast: high) {
    .buffet-weekly-pricing-widget .price-table {
        border: 2px solid #000;
    }
    
    .buffet-weekly-pricing-widget .price-table-row {
        border-bottom: 1px solid #000;
    }
    
    .buffet-weekly-pricing-widget .price-table-row.today {
        border-left-width: 6px;
    }
    
    .buffet-weekly-pricing-widget .day-cell,
    .buffet-weekly-pricing-widget .price-cell {
        color: #000;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .weekly-buffet-overview-section {
        margin: 1rem 0;
        page-break-inside: avoid;
    }
    
    .section-header-centered::before,
    .section-header-centered::after {
        display: none;
    }
    
    .buffet-weekly-pricing-widget .price-table {
        box-shadow: none;
        border: 1px solid #333;
    }
    
    .buffet-weekly-pricing-widget .price-table::before {
        display: none;
    }
    
    .buffet-weekly-pricing-widget .price-table-header {
        background: #333;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .buffet-weekly-pricing-widget .price-table-row.today::after {
        background: #333;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .buffet-weekly-pricing-widget .today-badge {
        animation: none;
    }
}