/* Events page specific styles */
.concerts-grid {
    a {
        text-decoration: none;
        color: inherit;
    }
}

/* Week Navigation Container */
.week-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.1) 0%, rgba(42, 82, 152, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Navigation Buttons */
.nav-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    min-width: 140px;
    justify-content: center;
}

.nav-button:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
}

.nav-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(30, 60, 114, 0.3);
}

.nav-button.prev {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.nav-button.next {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
}

/* Date Picker Container */
.date-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Week Picker Input */
.week-picker {
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(45, 45, 45, 0.9) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    min-width: 160px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.week-picker:focus {
    outline: none;
    border-color: #DC143C;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.2);
    background: linear-gradient(135deg, rgba(26, 26, 26, 1) 0%, rgba(45, 45, 45, 1) 100%);
}

.week-picker:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9) 0%, rgba(50, 50, 50, 0.9) 100%);
}

/* Week picker calendar icon styling */
.week-picker::-webkit-calendar-picker-indicator {
    background-color: #ffffff;
    border-radius: 4px;
    cursor: pointer;
    filter: invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.week-picker::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    filter: invert(1) sepia(1) saturate(5) hue-rotate(315deg);
}

/* Week Info Display */
.week-info {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1) 0%, rgba(139, 0, 0, 0.1) 100%);
    border-radius: 8px;
    border: 1px solid rgba(220, 20, 60, 0.2);
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* No Events Message */
.no-events {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.5) 0%, rgba(26, 26, 26, 0.5) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .week-navigation {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .nav-button {
        min-width: 120px;
        padding: 10px 16px;
        font-size: 14px;
    }

    .week-picker {
        min-width: 140px;
        padding: 10px 12px;
        font-size: 14px;
    }

    .week-info {
        font-size: 16px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .week-navigation {
        gap: 10px;
        padding: 10px;
    }

    .nav-button {
        min-width: 100px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .week-picker {
        min-width: 120px;
        padding: 8px 10px;
        font-size: 13px;
    }
}


/* Junie rule: When adding new UI controls (buttons, inputs, links), always add matching CSS styling here to ensure consistency, accessibility, and responsiveness. */

/* Date Picker Form Layout */
.date-picker form {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Date Submit Button */
.date-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    min-width: 140px;
}

.date-submit:hover {
    background: linear-gradient(135deg, #e61a46 0%, #9b0000 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.35);
}

.date-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(220, 20, 60, 0.3);
}

.date-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.35), 0 6px 20px rgba(220, 20, 60, 0.35);
}

.date-submit:disabled,
.date-submit[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
    filter: grayscale(10%);
}

/* Responsive tweaks for date picker and submit button */
@media (max-width: 768px) {
    .date-picker form {
        gap: 8px;
    }

    .date-submit {
        min-width: 120px;
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .date-picker form {
        flex-direction: column;
        width: 100%;
    }

    .date-submit {
        width: 100%;
        min-width: 0;
        padding: 9px 14px;
        font-size: 13px;
    }
}

/* Bottom cross-navigation link styles (added to satisfy the UI Styling Rule: new UI controls require CSS) */
.bottom-link-row {
    display: flex;
    justify-content: center;
    margin: 28px 0 10px;
}

.view-all-link,
.back-to-week-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.25) 0%, rgba(42, 82, 152, 0.25) 100%);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.25s ease;
}

.view-all-link:hover,
.back-to-week-link:hover {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.4) 0%, rgba(42, 82, 152, 0.4) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(30, 60, 114, 0.35);
}

.view-all-link:active,
.back-to-week-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(30, 60, 114, 0.25);
}

.view-all-link:focus-visible,
.back-to-week-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.35), 0 6px 16px rgba(30, 60, 114, 0.35);
}

@media (max-width: 768px) {
    .bottom-link-row {
        margin: 22px 0 8px;
    }

    .view-all-link,
    .back-to-week-link {
        padding: 9px 14px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .bottom-link-row {
        margin: 18px 0 6px;
    }

    .view-all-link,
    .back-to-week-link {
        width: calc(100% - 32px);
        justify-content: center;
    }
}
