/* Calendar Styles */
.calendar-section {
    min-height: 100vh;
    padding: 100px 20px 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.calendar-section .section-header {
    margin-bottom: 40px;
}

.calendar-section .section-title {
    color: white;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.calendar-section .title-underline {
    background: white;
}

.calendar-description {
    color: white;
    font-size: 18px;
    margin-top: 20px;
    text-align: center;
}

/* Calendar Controls */
.calendar-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.calendar-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--vivid-purple);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.calendar-nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.current-month {
    font-size: 32px;
    font-weight: 700;
    color: white;
    min-width: 250px;
    text-align: center;
}

/* Calendar Grid */
.calendar-grid {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    margin-bottom: 40px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.calendar-weekday {
    text-align: center;
    font-weight: 700;
    color: #666;
    padding: 10px;
    font-size: 14px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    aspect-ratio: 1;
    border-radius: 15px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.calendar-day.other-month {
    opacity: 0.3;
    pointer-events: none;
}

.calendar-day.empty-day {
    background: transparent;
    pointer-events: none;
}

.calendar-day.today {
    background: var(--gradient-4);
    color: white;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,230,118,0.4);
}

.calendar-day.available {
    background: #E8F5E9;
    border: 2px solid var(--vivid-green);
}

.calendar-day.available:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,230,118,0.3);
}

.calendar-day.booked {
    background: var(--gradient-3);
    color: white;
    border: none;
}

.calendar-day.booked:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(224,64,251,0.4);
}

.calendar-day.booked-past {
    background: linear-gradient(135deg, #9E9E9E 0%, #757575 100%);
    color: white;
    border: none;
    opacity: 0.8;
    cursor: pointer;
}

.calendar-day.booked-past:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    opacity: 1;
}

.calendar-day.past {
    background: #f5f5f5;
    opacity: 0.5;
    pointer-events: none;
}

.day-number {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.day-event {
    font-size: 11px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Calendar Legend */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
}

.legend-color {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-block;
}

.legend-color.available {
    background: #E8F5E9;
    border: 2px solid var(--vivid-green);
}

.legend-color.booked {
    background: var(--gradient-3);
}

.legend-color.today {
    background: var(--gradient-4);
}

/* Upcoming Bookings */
.upcoming-bookings {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    margin-bottom: 40px;
}

.upcoming-bookings h3 {
    font-size: 28px;
    margin-bottom: 30px;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bookings-list {
    display: grid;
    gap: 20px;
}

.booking-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s;
    cursor: pointer;
}

.booking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.booking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.booking-card h4 {
    font-size: 22px;
    color: #333;
    margin-bottom: 5px;
}

.booking-card .creator-name {
    font-size: 16px;
    color: #666;
    font-weight: 600;
}

.booking-date {
    background: var(--vivid-purple);
    color: white;
    padding: 8px 15px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
}

.booking-card .sns-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--vivid-blue);
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s;
}

.booking-card .sns-link:hover {
    color: var(--vivid-purple);
}

.booking-card .sns-link i {
    font-size: 18px;
}

/* Calendar CTA */
.calendar-cta {
    text-align: center;
}

.calendar-cta .cta-button {
    background: white;
    color: var(--vivid-purple);
    padding: 20px 50px;
    font-size: 18px;
}

.calendar-cta .cta-button:hover {
    background: var(--gradient-3);
    color: white;
}

/* Modal for Booking Details */
.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.booking-modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    position: relative;
    animation: slideInUp 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--vivid-red);
    color: white;
    transform: rotate(90deg);
}

.booking-modal h3 {
    font-size: 28px;
    margin-bottom: 20px;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.booking-modal .detail-item {
    margin-bottom: 20px;
}

.booking-modal .detail-label {
    font-weight: 700;
    color: #666;
    margin-bottom: 5px;
}

.booking-modal .detail-value {
    font-size: 18px;
    color: #333;
}

.booking-modal .sns-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--gradient-2);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    margin-top: 20px;
    transition: all 0.3s;
}

.booking-modal .sns-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(41,121,255,0.4);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .calendar-controls {
        gap: 15px;
    }
    
    .current-month {
        font-size: 24px;
        min-width: 180px;
    }
    
    .calendar-grid {
        padding: 15px;
    }
    
    .calendar-day {
        padding: 5px;
    }
    
    .day-number {
        font-size: 14px;
    }
    
    .day-event {
        font-size: 9px;
    }
    
    .calendar-legend {
        gap: 15px;
    }
    
    .legend-item {
        font-size: 14px;
    }
    
    .legend-color {
        width: 20px;
        height: 20px;
    }
    
    .booking-card-header {
        flex-direction: column;
        gap: 10px;
    }
}

/* Empty State */
.empty-bookings {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-bookings i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #ccc;
}

.empty-bookings p {
    font-size: 18px;
}
