/* Member Minder Pro Calendar Styles */
.mmpro-calendar {
    /* Base block styles */
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    font-family: inherit;
}

/* Elements */
.mmpro-calendar__container {
    max-width: 100%;
    margin: 0 auto;
}

.mmpro-calendar__toolbar {
    margin-bottom: 1em;
}

.mmpro-calendar__title {
    margin: 0;
    line-height: 1.4;
}

.mmpro-calendar__button {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 0.4em 0.65em;
}

/* Modifiers */
.mmpro-calendar__button--active {
    background-color: #e9ecef;
    border-color: #ddd;
}

.mmpro-calendar__button:hover {
    background-color: #e9ecef;
}

/* Event elements */
.mmpro-calendar__event {
    border-radius: 3px;
    border: 1px solid #3788d8;
    background-color: #3788d8;
    cursor: pointer;
    padding: 2px 5px;
    margin-bottom: 2px;
    transition: background-color 0.2s ease;
}

.mmpro-calendar__event:hover {
    opacity: 0.9;
}

/* Event type modifiers */
.mmpro-calendar__event--district {
    background-color: rgb(248, 248, 255);
}

.mmpro-calendar__event--club {
    background-color: rgb(159, 197, 232);
}

.mmpro-calendar__event--multi-district {
    background-color: rgb(249, 222, 222);
}

/* List view elements */
.mmpro-calendar__list-cell {
    padding: 8px;
}

/* Removed - using consistent hover style instead */

/* Color key elements */
.mmpro-calendar__color-key {
    margin: 1em 0;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.75em;  
    font-weight: 600;  
    color: hsla(0, 0%, 29%, 0.5);
}

.mmpro-calendar__color-key-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7em;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.mmpro-calendar__color-key-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.mmpro-calendar__color-box {
    display: inline-flex;
    align-items: center;
    padding: .08em .6em;
    border-radius: 4px;
    white-space: nowrap;
    border: 1px solid hsl(200, 50%, 45%);
    /* Ensure text color from inline styles is used */
    color: inherit;
}

/* Icon styles */
.mmpro-calendar__icon {
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
    vertical-align: middle;
    line-height: 1;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .mmpro-calendar__toolbar {
        flex-direction: column;
        gap: 1em;
    }
    
    .mmpro-calendar__title {
        font-size: 1.2em !important;
    }

    .mmpro-calendar__color-key-container {
        gap: 0.5em;
        justify-content: center;
    }
    
    .mmpro-calendar__color-box {
        font-size: 0.85em;
        padding: 3px 6px;
        min-height: 20px;
    }
}

/* FullCalendar overrides */
.mmpro-calendar .fc-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5em;
}

.mmpro-calendar .fc-button-group > .fc-button {
    position: relative;
    flex: 1 1 auto;
}

/* Ensure proper icon alignment */
.mmpro-calendar .fc-button .fc-icon {
    vertical-align: middle;
    line-height: 1;
}

/* Style view buttons */
.mmpro-calendar .fc-button-group > .fc-button {
    position: relative;
    flex: 1 1 auto;
}

/* Ensure proper spacing between buttons */
.mmpro-calendar .fc-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5em;
}

.mmpro-calendar .fc-toolbar-title {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mmpro-calendar .fc-toolbar {
        flex-direction: column;
        gap: 1em;
    }
    
    .mmpro-calendar .fc-toolbar-title {
        font-size: 1.2em;
    }
}

/* Event styling */
.mmpro-calendar .fc-event {
    border-radius: 3px;
    padding: 2px 5px;
    margin-bottom: 2px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    /* Ensure text color is not overridden by theme */
    color: inherit;
}

/* Ensure event title and content use the event's text color */
.mmpro-calendar .fc-event-title,
.mmpro-calendar .fc-event-title-container,
.mmpro-calendar .fc-event-time,
.mmpro-calendar .fc-list-event-title,
.mmpro-calendar .fc-list-event-time {
    color: inherit;
}

/* Ensure list view events use inline styles for colors */
.mmpro-calendar .fc-list-event td {
    background-color: inherit;
}

/* Apply background color to the entire list event row */
.mmpro-calendar .fc-list-event {
    background-color: inherit;
}

.mmpro-calendar .fc-event:hover {
    filter: brightness(90%);
}

/* Override FullCalendar's default list view hover background */
.fc-unthemed .fc-list-item:hover td {
    background-color: transparent !important;
}

/* Apply hover effect to the row itself since it has the inline background color */
.mmpro-calendar .fc-list-event:hover {
    filter: brightness(90%);
}

/* Ensure td elements don't interfere with the hover effect */
.mmpro-calendar .fc-list-event td {
    background-color: transparent !important;
}

/* Ensure the event dot in list view inherits the filter effect */
.mmpro-calendar .fc-list-event:hover .fc-list-event-dot {
    filter: inherit;
}

/* Accessibility */
.a11y-sr-only {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Tooltip styling - Moved to tooltip.css for better organization */
/* All tooltip styles are now handled in css/tooltip.css */ 
