/* Calendar Styles for Leland LightHouse */

.calendar-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.calendar-view-toggle {
    display: flex;
    gap: 10px;
}

.calendar-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.calendar-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.calendar-legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

/* FullCalendar Custom Styles */
.fc {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.fc .fc-toolbar-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d3557;
}

.fc .fc-button-primary {
    background-color: #1d3557;
    border-color: #1d3557;
}

.fc .fc-button-primary:hover {
    background-color: #457b9d;
    border-color: #457b9d;
}

.fc .fc-button-primary:disabled {
    background-color: #a8dadc;
    border-color: #a8dadc;
}

.fc .fc-button-active {
    background-color: #e63946 !important;
    border-color: #e63946 !important;
}

/* Event styling */
.fc-event {
    cursor: pointer;
    border: none;
    border-radius: 3px;
}

.fc-event-title {
    font-weight: 500;
}

.fc-event.event-recurring {
    background-color: #457b9d;
    border-left: 3px solid #1d3557;
}

.fc-event.event-single {
    background-color: #e63946;
    border-left: 3px solid #c1121f;
}

/* Event Tooltip */
.event-tooltip {
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    max-width: 300px;
    display: none;
}

.event-tooltip.show {
    display: block;
}

.event-tooltip-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d3557;
    margin-bottom: 8px;
}

.event-tooltip-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.event-tooltip-location {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-tooltip-description {
    font-size: 0.85rem;
    color: #333;
    line-height: 1.4;
    margin-bottom: 10px;
}

.event-tooltip-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.event-tooltip-badge.recurring {
    background-color: #457b9d;
    color: white;
}

.event-tooltip-badge.single {
    background-color: #e63946;
    color: white;
}

/* Responsive styles */
@media (max-width: 768px) {
    .calendar-container {
        padding: 10px;
    }

    .fc .fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }

    .fc .fc-toolbar-title {
        font-size: 1.2rem;
    }

    .fc .fc-button {
        padding: 0.3rem 0.5rem;
        font-size: 0.85rem;
    }

    .event-tooltip {
        max-width: 250px;
    }
}

/* List View Styles */
.event-list-view {
    display: none;
}

.event-list-view.active {
    display: block;
}

.event-list-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: box-shadow 0.2s;
}

.event-list-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.event-list-date {
    background: #1d3557;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 10px;
}

.event-list-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d3557;
    margin-bottom: 8px;
}

.event-list-location {
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-list-description {
    color: #333;
    line-height: 1.5;
    margin-bottom: 10px;
}
