/**
 * EA Work Calendar - Style frontendu (publiczny kalendarz)
 */

.eawc-public-calendar-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.eawc-public-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.eawc-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.eawc-legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

#eawc-public-calendar {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Customizacja FullCalendar */
#eawc-public-calendar .fc-toolbar-title {
    font-size: 1.4em;
}

#eawc-public-calendar .fc-event {
    cursor: pointer;
    padding: 3px 6px;
    font-size: 12px;
    border-radius: 4px;
    transition: transform 0.15s ease;
}

#eawc-public-calendar .fc-event:hover {
    transform: scale(1.02);
}

#eawc-public-calendar .fc-day-today {
    background-color: #fffde7 !important;
}

#eawc-public-calendar .fc-day-past .fc-event {
    opacity: 0.5;
}

/* Responsive header */
#eawc-public-calendar .fc-header-toolbar {
    flex-wrap: wrap;
    gap: 10px;
}

/* Info box */
.eawc-public-info {
    margin-top: 20px;
    padding: 20px;
    background: #e3f2fd;
    border-radius: 8px;
    text-align: center;
}

.eawc-public-info p {
    margin: 0 0 15px 0;
}

.eawc-public-info .button {
    display: inline-block;
    padding: 12px 30px;
    background: #1976d2;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.2s;
}

.eawc-public-info .button:hover {
    background: #1565c0;
    color: #fff;
}

/* Tooltip */
.eawc-tooltip {
    position: fixed;
    z-index: 10000;
    background: #333;
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 13px;
    pointer-events: none;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.eawc-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333;
}

.eawc-tooltip-content strong {
    display: block;
    margin-bottom: 4px;
}

/* Mobile */
@media (max-width: 600px) {
    .eawc-public-calendar-wrap {
        padding: 10px;
    }
    
    .eawc-public-legend {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    #eawc-public-calendar {
        padding: 10px;
    }
    
    #eawc-public-calendar .fc-toolbar-title {
        font-size: 1.1em;
    }
    
    #eawc-public-calendar .fc-header-toolbar {
        flex-direction: column;
    }
}
