/* Frontend Calendar Styles */

.tch-calendar-frontend {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.tch-calendar-frontend .tch-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
}

.tch-calendar-frontend .tch-calendar-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

.tch-calendar-frontend .tch-nav-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    transition: all 0.2s ease;
}

.tch-calendar-frontend .tch-nav-btn:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

.tch-calendar-frontend .tch-calendar-grid {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.tch-calendar-frontend .tch-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #333;
}

.tch-calendar-frontend .tch-calendar-weekdays div {
    text-align: center;
    font-weight: 600;
    padding: 15px 10px;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tch-calendar-frontend .tch-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.tch-calendar-frontend .tch-calendar-day {
    min-height: 90px;
    background: #fff;
    border: 1px solid #eee;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.tch-calendar-frontend .tch-calendar-day:hover {
    background: #f9f9f9;
}

.tch-calendar-frontend .tch-calendar-day.selected {
    background: #f0f7ff;
    border-color: #2196F3;
}

.tch-calendar-frontend .tch-calendar-day.other-month {
    background: #fafafa;
}

.tch-calendar-frontend .tch-calendar-day.other-month .tch-day-number {
    color: #ccc;
}

.tch-calendar-frontend .tch-calendar-day.today {
    background: #fffdf0;
}

.tch-calendar-frontend .tch-calendar-day.today .tch-day-number {
    background: #333;
    color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tch-calendar-frontend .tch-day-number {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
}

.tch-calendar-frontend .tch-day-events {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tch-calendar-frontend .tch-day-event {
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 3px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tch-calendar-frontend .tch-day-event-more {
    font-size: 11px;
    color: #666;
    padding: 2px 0;
}

.tch-calendar-frontend .tch-day-has-events::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #4CAF50;
    border-radius: 50%;
}

/* Event Details Section */
.tch-event-details {
    margin-top: 30px;
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.tch-event-details h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.tch-event-details h3 span {
    color: #2196F3;
}

.tch-calendar-frontend .tch-event-item {
    background: #f9f9f9;
    border-left: 4px solid #4CAF50;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
    transition: transform 0.2s ease;
}

.tch-calendar-frontend .tch-event-item:hover {
    transform: translateX(5px);
}

.tch-calendar-frontend .tch-event-item:last-child {
    margin-bottom: 0;
}

.tch-calendar-frontend .tch-event-item h4 {
    margin: 0 0 10px 0;
    font-size: 17px;
    color: #333;
}

.tch-calendar-frontend .tch-event-time {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tch-calendar-frontend .tch-event-time::before {
    content: '🕐';
    font-size: 12px;
}

.tch-calendar-frontend .tch-event-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.tch-calendar-frontend .tch-no-events {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 30px 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .tch-calendar-frontend .tch-calendar-header h2 {
        font-size: 18px;
    }
    
    .tch-calendar-frontend .tch-nav-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .tch-calendar-frontend .tch-calendar-day {
        min-height: 60px;
        padding: 5px;
    }
    
    .tch-calendar-frontend .tch-calendar-weekdays div {
        font-size: 10px;
        padding: 10px 2px;
        letter-spacing: 0;
    }
    
    .tch-calendar-frontend .tch-day-number {
        font-size: 12px;
    }
    
    .tch-calendar-frontend .tch-day-event {
        display: none;
    }
    
    .tch-calendar-frontend .tch-day-has-events::after {
        display: block;
    }
}

@media (max-width: 480px) {
    .tch-calendar-frontend .tch-calendar-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .tch-calendar-frontend .tch-calendar-header h2 {
        order: -1;
    }
}
