/* Clean & Modern ICS Calendar Pro Custom Styles */
/* File: assets/ics-calendar-custom.css */

/* Main Calendar Container */
.ics-pro-custom-calendar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
    background: transparent;
}

/* No Events Message */
.ics-no-events {
    color: #f59e0b;
    padding: 24px;
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
    border-radius: 12px;
    text-align: center;
    font-size: 16px;
    margin: 20px 0;
    border: 1px solid #fef3c7;
}

/* Calendar Header */
.calendar-header {
    margin-bottom: 32px;
    text-align: center;
}

.calendar-title {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.calendar-filter-info {
    margin-top: 12px;
}

.filter-label {
    background: #f3f4f6;
    color: #374151;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    display: inline-block;
    font-weight: 500;
    border: 1px solid #e5e7eb;
}

/* Events Grid */
.events-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Event Card - Clean Design */
.event-card {
    background: #ffffff;
    border-radius: 33px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #d1d5db;
}

.event-card[data-featured="true"] {
    border-left: 4px solid #3b82f6;
}

/* Event Image */
.event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-placeholder-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    text-align: center;
}

.placeholder-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.placeholder-text {
    font-size: 16px;
    line-height: 1.4;
    opacity: 0.9;
}

/* Event Content */
.event-content {
    padding: 24px;
}

.event-date-section {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

/* Date Box - Simplified */
.event-date-box {
    flex-shrink: 0;
    text-align: center;
    padding: 12px 8px;
    background: #f9fafb;
    border-radius: 19px;
    border: 1px solid #e5e7eb;
    min-width: 70px;
}

.event-month {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    margin: 0;
}

.event-day {
    font-size: 44px;
    font-weight: 700;
    color: #111827;
    margin: 4px 0 0 0;
    line-height: 1;
}

.event-weekday {
    font-size: 20px;
    color: #f5f5f5;
    text-transform: uppercase;
    margin: 2px 0 0 0;
    font-weight: 400;
}

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

.event-featured {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #3b82f6;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.featured-icon::before {
    font-weight: 900;
    font-size: 10px;
}

/* Categories */
.event-categories {
    margin-bottom: 8px;
}

.event-category-tag {
    display: inline-block;
    background: #f3f4f6;
    color: #4b5563;
    padding: 10px 26px;
    border-radius: 22px;
    font-size: 16px;
    margin-right: 4px;
    margin-bottom: 4px;
    font-weight: 500;
    border: 0px solid #e5e7eb;
}

/* Event Title */
.event-title {
    font-size: 26px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.event-link {
    color: inherit;
    text-decoration: none;
}

.event-link:hover {
    color: #3b82f6;
}

/* Event Meta Information */
.event-time {
    font-size: 17px;
    color: #6b7280;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-time::before {
    font-weight: 900;
    color: #93989f;
    font-size: 20px;
}

.event-venue {
    font-size: 17px;
    color: #6b7280;
    margin-bottom: 3px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

.event-venue::before {
    font-weight: 900;
    color: #93989f;
    font-size: 21px;
    margin-top: -2px;
    flex-shrink: 0;
}

.event-venue-name {
    font-weight: 600;
    color: #111827;
}

.event-venue-address {
    color: #6b7280;
    font-size: 17px;
}

.event-organizer {
    font-size: 17px;
    color: #6b7280;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-organizer::before {
    font-weight: 900;
    color: #93989f;
    font-size: 19px;
}

/* Event Description */
.event-description {
    font-size: 17px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 16px;
}

.event-description p {
    margin: 0 0 8px 0;
}

.event-description p:last-child {
    margin-bottom: 0;
}

/* Event Actions - Clean Buttons */
.event-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.event-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
    border: 1px solid transparent;
}

.event-action-btn.primary {
    background: #f9fafb;
    color: white;
    border-color: #d1d5db;
}

.event-action-btn.primary:hover {
    background: #3a7fbf;
    border-color: #3a7fbf;
    color: #fff;
}

.event-action-btn.primary::after {
    font-weight: 900;
    font-size: 10px;
}

.event-action-btn.secondary {
    background: #f9fafb;
    color: #374151;
    border-color: #d1d5db;
}

.event-action-btn.secondary:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.event-action-btn.secondary::after {
    font-weight: 900;
    font-size: 10px;
}

/* Loading State */
.calendar-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

/* Simple Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ics-pro-custom-calendar {
        padding: 16px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-content {
        padding: 20px;
    }
    
    .calendar-title {
        font-size: 28px;
    }
    
    .event-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .ics-pro-custom-calendar {
        padding: 12px;
    }
    
    .event-content {
        padding: 16px;
    }
    
    .calendar-title {
        font-size: 24px;
    }
    
    .event-date-section {
        flex-direction: column;
        gap: 12px;
    }
    
    .event-date-box {
        align-self: flex-start;
    }
    
    .event-actions {
        flex-direction: column;
    }
}

/* Print Styles */
@media print {
    .ics-pro-custom-calendar {
        max-width: none;
        padding: 0;
    }
    
    .event-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .event-action-btn {
        display: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .ics-pro-custom-calendar {
        color: #f9fafb;
    }
    
    .event-card {
        background: #f0f0f0;
        border-color: #dee1e7;
        color: #f9fafb;
    }
    
    .calendar-title {
        color: #f9fafb;
    }
    
    .event-title {
        color: #f9fafb;
    }
    
    .event-venue-name {
        color: #9b9b9b;
    }
    
    .event-date-box {
        background: #3a7fbf;
        color: #f9fafb;
        border-color: #3a7fbf;
    }
    
    .event-day {
        color: #f9fafb;
    }
    
    .event-actions {
        border-color: #374151;
    }
    
    .event-category-tag {
        background: #4487c7;
        color: #fff;
        border-color: #4b5563;
    }
    
    .filter-label {
        background: #374151;
        color: #d1d5db;
        border-color: #4b5563;
    }
}

/* Elementor Compatibility */
.elementor-widget-container .ics-pro-custom-calendar {
    margin: 0;
}

.elementor-section .ics-pro-custom-calendar {
    width: 100%;
}

.calendar-widget-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.calendar-responsive {
    width: 100%;
    height: auto;
}