/* Isi-Poutine Calendar Styles */

.isipoutine-calendar-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Calendar Widget Styles */
.isipoutine-calendar-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin:auto;
    margin-bottom: 40px;
    max-width: 400px;
}

.calendar-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calendar-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
    flex: 1;
}

.calendar-nav {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #4a90e2;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav:hover {
    color: #357abd;
    transform: scale(1.1);
}

.calendar-nav .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Calendar Grid */
.calendar-grid {
    margin-bottom: 15px;
}

.calendar-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-header-row {
    margin-bottom: 10px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    color: #666;
    padding: 8px 3px;
    font-size: 12px;
    text-transform: uppercase;
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    min-height: 35px;
}

.calendar-day:hover {
    background: #f5f5f5;
    transform: scale(1.05);
}

.calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.calendar-day.empty:hover {
    background: transparent;
    transform: none;
}

.calendar-day.today {
    background: #4a90e2;
    color: #fff;
    font-weight: bold;
}

.calendar-day.today:hover {
    background: #357abd;
}

.calendar-day.has-event {
    background: #fff3cd;
    border-color: #ffc107;
}

.calendar-day.has-event:hover {
    background: #ffe69c;
}

.calendar-day.today.has-event {
    background: #28a745;
}

.calendar-day.today.has-event:hover {
    background: #218838;
}

.day-number {
    font-size: 13px;
    font-weight: 500;
}

.event-indicator {
    position: absolute;
    bottom: 3px;
    width: 5px;
    height: 5px;
    background: #ffc107;
    border-radius: 50%;
}

.calendar-day.today .event-indicator {
    background: #fff;
}

/* Events This Month */
.calendar-events-this-month {
    border-top: 2px solid #e5e5e5;
    padding-top: 15px;
    margin-top: 15px;
}

.calendar-events-this-month h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #333;
}

.calendar-events-this-month .events-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.calendar-events-this-month .event-item {
    padding: 8px;
    margin-bottom: 6px;
    background: #f8f9fa;
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 14px;
}

.calendar-events-this-month .event-date {
    font-weight: 600;
    color: #4a90e2;
    min-width: 55px;
    font-size: 13px;
}

.calendar-events-this-month .event-name {
    font-weight: 500;
    color: #333;
    flex: 1;
    font-size: 14px;
}

.calendar-events-this-month .event-location {
    color: #666;
    font-size: 12px;
}

.calendar-events-this-month .event-location:before {
    content: "📍 ";
}

.no-events-month {
    text-align: center;
    color: #999;
    font-style: italic;
    font-size: 14px;
    margin: 10px 0;
}

/* All Events List */
.isipoutine-events-list h3 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.event-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    gap: 15px;
    transition: all 0.3s ease;
}

.event-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.event-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #4a90e2;
    color: #fff;
    border-radius: 8px;
    padding: 15px 10px;
    min-width: 70px;
    text-align: center;
}

.event-month {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-day {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    margin-top: 5px;
}

/* Multi-day event styles */
.event-card.multi-day-event .event-date-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.event-duration {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-date-range {
    font-size: 18px;
    font-weight: bold;
    margin-top: 5px;
    white-space: nowrap;
}

.event-details {
    flex: 1;
}

.event-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

.event-full-date {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
}

.event-location {
    margin: 0;
    color: #888;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-location .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.no-events {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .isipoutine-calendar-wrapper {
        padding: 10px;
    }
    
    .isipoutine-calendar-widget {
        padding: 15px;
    }
    
    .calendar-day-header {
        font-size: 12px;
        padding: 8px 2px;
    }
    
    .day-number {
        font-size: 14px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .event-card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .calendar-header h3 {
        font-size: 20px;
    }
    
    .calendar-day-header {
        font-size: 10px;
    }
    
    .day-number {
        font-size: 12px;
    }
    
    .calendar-events-this-month .event-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .event-title {
        font-size: 18px;
    }
}
