/* Modern Restaurant Menu Design */
:root {
    --primary-color: #334756; /* Darker blue for headers */
    --accent-color: #F17F29; /* Warmer orange accent */
    --light-color: #F9F7F3; /* Warmer off-white background */
    --dark-color: #2C3333; /* Darker text color for better contrast */
    --neutral-color: #EDEDED; /* Slightly darker neutral */
    --success-color: #4CAF50; /* Keeping this as is */
    --font-main: 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-headings: 'Playfair Display', Georgia, serif;
    --highlight-bg: #F8F0E5; /* For highlighted sections */
}

body {
    font-family: var(--font-main);
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 10px;
}

/* Update page header for better composition */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1D3E53 100%);
    color: white;
    padding: 25px 0 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    position: relative;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--accent-color);
}

/* Make logo text stand out more */
.logo-text {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    margin: 0;
    padding: 8px 0 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    position: relative;
}

.logo-text:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: 5px;
    left: calc(50% - 40px);
    border-radius: 2px;
}

/* Enhanced styling for subtitle text (Päivälle/Viikolle) */
.subtitle {
    margin: 12px auto 0;
    padding: 6px 20px;
    font-weight: 500;
    font-size: 1.25rem;
    letter-spacing: 1px;
    color: white;
    position: relative;
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    animation: fadeIn 0.5s;
}

.subtitle:before {
    content: '✦';
    margin-right: 10px;
    color: var(--accent-color);
    font-size: 0.9em;
}

.subtitle:after {
    content: '✦';
    margin-left: 10px;
    color: var(--accent-color);
    font-size: 0.9em;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.weather-display {
    position: absolute;
    top: 15px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.weather-display:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.temperature {
    margin: 0;
    font-size: 1.2rem;
}

/* Replace view toggle with button toggle */
.view-toggle {
    display: flex;
    justify-content: center;
    margin: 20px auto;
    max-width: 350px;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    user-select: none;
}

.view-button {
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-main);
}

.view-button.active {
    background-color: var(--accent-color);
    color: white;
    font-weight: 700;
}

.view-button:not(.active) {
    background-color: #eaeaea;
    color: var(--dark-color);
}

.view-button:first-child {
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    border-right: 1px solid rgba(0,0,0,0.05);
}

.view-button:last-child {
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    border-left: 1px solid rgba(0,0,0,0.05);
}

/* Remove old switch styles - they're no longer needed */
.switch, .slider, .toggle-label {
    /* These styles can be removed, but keeping them doesn't cause issues */
    display: none;
}

.day-buttons {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    gap: 10px;
    flex-wrap: wrap;
}

.day-button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background-color: var(--neutral-color);
    color: var(--dark-color);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}

.day-button:hover {
    background-color: #e5e5e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.day-button.active {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 8px rgba(241, 127, 41, 0.3);
    border-color: var(--accent-color);
}

/* Restaurant menu styling */
.menu-section {
    margin-bottom: 20px;
}

/* Accordion styling */
.accordion {
    background-color: white;
    color: var(--dark-color);
    cursor: pointer;
    padding: 18px 20px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: 0.3s;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    font-family: var(--font-headings);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 8px;
}

.accordion:after {
    content: '\002B';
    color: var(--accent-color);
    font-weight: bold;
    float: right;
    margin-left: 5px;
}

.accordion.active {
    border-radius: 8px 8px 0 0;
    background-color: var(--primary-color);
    color: white;
    border-left-color: var(--accent-color);
}

.accordion.active:after {
    content: "\2212";
    color: white;
}

.accordion:hover {
    background-color: #f0f0f0;
}

.accordion.active:hover {
    background-color: var(--primary-color);
}

.panel {
    padding: 0;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.panel-content {
    padding: 20px;
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: auto; /* For tables that might be too wide */
}

/* Menu content styling */
.menu-item {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px dashed #e0e0e0;
    transition: background-color 0.2s;
    padding: 10px;
    border-radius: 6px;
}

.menu-item:hover {
    background-color: var(--highlight-bg);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item h4 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
    font-family: var(--font-headings);
}

.price {
    float: right;
    color: var(--accent-color);
    font-weight: 700;
}

.menu-description {
    color: #666;
    margin: 5px 0;
    font-size: 0.9rem;
}

/* Day header in menus */
.day-header {
    color: var(--primary-color);
    font-family: var(--font-headings);
    font-size: 1.4rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
    font-weight: 700;
}

/* Loading indicator */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.loading:after {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid #ccc;
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .weather-display {
        position: static;
        margin: 10px auto;
        display: inline-block;
    }
    
    .day-buttons {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .day-button {
        flex: 0 0 auto;
    }
    
    .accordion {
        font-size: 1rem;
    }

    .view-toggle {
        margin: 15px auto;
        padding: 5px;
    }
    
    .toggle-label {
        font-size: 0.85rem;
    }
}

/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&family=Playfair+Display:wght@400;700&display=swap');
