/* 🟢 Alive Academy — VTS Event Calendar Styling */

/* Main calendar container */
#vts-calendar {
    max-width: 100%;
    width: 95%;
    margin: 0 auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
}

/* Full width for internal grid */
.fc {
    width: 100% !important;
}

/* Header toolbar */
.fc-toolbar {
    background-color: #a8cc36;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Toolbar title (month and year) */
.fc-toolbar-title {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.5rem;
}

/* Buttons (prev, next, today, month, list) */
.fc-button {
    background-color: #b7d84c !important;
    border: none !important;
    color: #333333 !important;
    font-weight: 600;
    border-radius: 6px !important;
    text-transform: capitalize;
    transition: background 0.2s ease-in-out;
}

.fc-button:hover {
    background-color: #a8cc36 !important;
    color: #ffffff !important;
}

/* Day grid styling */
.fc-daygrid-day {
    border: 1px solid #eeeeee;
    background: #fafafa;
}

.fc-daygrid-day:hover {
    background: #f9fbe9;
}

/* Day numbers */
.fc-daygrid-day-number {
    color: #444444;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 4px 6px;
}

/* Events inside the grid */
.fc-event {
    background-color: #a8cc36 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 4px 8px;
    color: #ffffff !important;
    font-size: 0.9rem;
    line-height: 1.3;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fc-event:hover {
    background-color: #95b92e !important;
}

/* Tooltip box for event details */
.vts-tooltip {
    position: absolute;
    z-index: 9999;
    background: #ffffff;
    color: #333333;
    border: 1px solid #a8cc36;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: none;
    max-width: 240px;
}

/* Tooltip Register button */
.vts-tooltip .vts-btn.small {
    background: #a8cc36;
    color: #ffffff;
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
    margin-top: 6px;
    transition: background 0.2s;
}

.vts-tooltip .vts-btn.small:hover {
    background: #90b52e;
}

/* List view adjustments */
.fc-list-day-cushion {
    background: #a8cc36 !important;
    color: #ffffff !important;
    font-weight: bold;
}

.fc-list-event:hover {
    background: #f3f7de !important;
}

/* 🧠 Responsive: list view on small screens */
@media (max-width: 768px) {
    #vts-calendar {
        padding: 10px;
        width: 100%;
    }

    .fc {
        font-size: 0.9rem;
    }

    .fc-toolbar-title {
        font-size: 1.2rem;
    }

    /* Auto switch to list view on mobile */
    .fc-view-harness {
        min-height: 600px;
    }

    /* Force FullCalendar into list mode on mobile */
    body:not(.fc-list) #vts-calendar::after {
        content: '';
        display: block;
        height: 0;
    }
}

/* Nice scroll fix for mobile */
.fc-scroller {
    overflow-y: auto !important;
}