/**
 * LT Event Calendar - Frontend Styles
 */

/* Calendar Wrapper */
.ltec-calendar-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 700px;
    margin: 0 auto;
}

/* Calendar Container */
.ltec-calendar {
    background: transparent;
    padding: 30px;
    margin-bottom: 30px;
}

/* Calendar Header */
.ltec-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.ltec-month-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c4a52;
    margin: 0;
    text-transform: lowercase;
}

/* Navigation Buttons */
.ltec-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #8bc34a;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.4);
}

.ltec-nav-btn:hover {
    background-color: #7cb342;
    transform: scale(1.05);
}

.ltec-nav-btn:active {
    transform: scale(0.95);
}

.ltec-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ltec-nav-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Calendar Grid */
.ltec-calendar-grid {
    background: transparent;
}

/* Weekdays */
.ltec-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 15px;
}

.ltec-weekday {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #2c4a52;
    padding: 10px 5px;
}

/* Days Grid */
.ltec-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

/* Day Cell */
.ltec-day {
    text-align: center;
    padding: 12px 5px;
    font-size: 16px;
    font-weight: 500;
    color: #2c4a52;
    cursor: default;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
}

/* Other Month Days (greyed out) */
.ltec-day-other {
    color: #8aa8ae;
    opacity: 0.6;
}

/* Today */
.ltec-day-today {
    font-weight: 700;
}

/* Day with Event - Yellow Circle */
.ltec-day-has-event {
    position: relative;
}

.ltec-day-has-event .ltec-day-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: #f9d71c8f;
    border-radius: 50%;
    color: #2c4a52;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(249, 215, 28, 0.4);
}

/* Hover effect for days with events */
.ltec-day-has-event:hover .ltec-day-number {
    transform: scale(1.1);
    cursor: pointer;
}

/* Events List Section */
.ltec-events-list {
    background: transparent;
    padding: 0;
}

.ltec-no-events {
    color: #7a9a9e;
    font-style: italic;
    padding: 20px 0;
    text-align: center;
}

/* Event Items */
.ltec-events {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ltec-event-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fbfb 0%, #f0f5f6 100%);
    border-radius: 12px;
    border-left: 4px solid #8bc34a;
    transition: all 0.3s ease;
}

.ltec-event-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

/* Event Date Badge */
.ltec-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 10px;
    background: #8bc34a;
    border-radius: 10px;
    color: white;
}

.ltec-event-day {
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.ltec-event-month {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* Event Details */
.ltec-event-details {
    flex: 1;
}

.ltec-event-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c4a52;
    margin: 0 0 8px 0;
}

.ltec-event-location {
    font-size: 14px;
    color: #5a7a7e;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ltec-event-location::before {
    content: "\1F4CD";
    font-size: 12px;
}

.ltec-event-description {
    font-size: 14px;
    color: #6a8a8e;
    margin: 0;
    line-height: 1.5;
}

/* Loading State */
.ltec-calendar-wrapper.ltec-loading {
    opacity: 0.6;
    pointer-events: none;
}

.ltec-calendar-wrapper.ltec-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #e8f0f2;
    border-top-color: #8bc34a;
    border-radius: 50%;
    animation: ltec-spin 0.8s linear infinite;
}

@keyframes ltec-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .ltec-calendar {
        padding: 20px 15px;
    }

    .ltec-month-title {
        font-size: 16px;
    }

    .ltec-nav-btn {
        width: 40px;
        height: 40px;
    }

    .ltec-nav-icon svg {
        width: 16px;
        height: 16px;
    }

    .ltec-weekday {
        font-size: 13px;
        padding: 8px 2px;
    }

    .ltec-day {
        font-size: 14px;
        padding: 8px 2px;
        min-height: 38px;
    }

    .ltec-day-has-event .ltec-day-number {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .ltec-event-item {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }

    .ltec-event-date {
        flex-direction: row;
        gap: 8px;
        padding: 8px 15px;
        width: fit-content;
    }

    .ltec-event-day {
        font-size: 20px;
    }

    .ltec-event-month {
        font-size: 12px;
        margin-top: 0;
    }
}

/* Print Styles */
@media print {
    .ltec-nav-btn {
        display: none;
    }

    .ltec-day-has-event .ltec-day-number {
        border: 2px solid #333;
        background: #fff !important;
    }
}
