/* Events Calendar Pro - Enhanced Professional Styles */

/* Main Container */
.ecp-calendar-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Professional Controls Section */
.ecp-controls {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    color: white;
}

.ecp-search-container {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.ecp-search-input {
    flex: 1;
    min-width: 300px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ecp-search-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.ecp-search-input::placeholder {
    color: #666;
    font-style: italic;
}

.ecp-search-btn, .ecp-clear-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ecp-search-btn {
    background: #4CAF50;
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.ecp-search-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.ecp-clear-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.ecp-clear-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Filters Section */
.ecp-filters {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.ecp-filters label {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
}

.ecp-category-filter, .ecp-upcoming-filter {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.ecp-category-filter:focus, .ecp-upcoming-filter:focus {
    outline: none;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Loading State */
.ecp-loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
}

.ecp-loading:before {
    content: "⏳";
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Events Grid - Enhanced */
.ecp-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.ecp-event {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #e1e5e9;
    position: relative;
}

.ecp-event:hover, .ecp-event.ecp-event-hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.ecp-event-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.ecp-event-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.ecp-event:hover .ecp-event-header::before {
    right: -30%;
}

.ecp-event-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 8px 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ecp-event-day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.ecp-event-month {
    display: block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.ecp-event-header h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    padding-right: 80px;
}

.ecp-event-time {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.ecp-event-content {
    padding: 24px;
}

.ecp-event-category {
    display: inline-block;
    width: 98%;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

/* Category Colors */
.ecp-event-category.conference { background: #e3f2fd; color: #1976d2; }
.ecp-event-category.workshop { background: #f3e5f5; color: #7b1fa2; }
.ecp-event-category.seminar { background: #e8f5e8; color: #388e3c; }
.ecp-event-category.meeting { background: #fff3e0; color: #f57c00; }
.ecp-event-category.social { background: #fce4ec; color: #c2185b; }
.ecp-event-category.other { background: #f5f5f5; color: #666; }
.ecp-category-craft_lodge { background: #e8eaf6; color: #3f51b5; }
.ecp-category-royal_arch { background: #ffebee; color: #c62828; }


.ecp-event-meta {
    margin-bottom: 16px;
}

.ecp-event-meta-item {
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ecp-event-meta-item strong {
    color: #333;
    min-width: 80px;
    font-weight: 600;
}

.ecp-event-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 15px;
}

.ecp-event-website {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.ecp-event-website a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ecp-event-website a:hover {
    color: #764ba2;
    transform: translateX(4px);
}

/* No Events State */
.ecp-no-events {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 16px;
    margin: 20px 0;
}

.ecp-no-events p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

.ecp-no-events::before {
    content: "📅";
    display: block;
    font-size: 64px;
    margin-bottom: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ecp-controls {
        padding: 20px;
    }
    
    .ecp-search-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ecp-search-input {
        min-width: auto;
        margin-bottom: 12px;
    }
    
    .ecp-search-btn, .ecp-clear-btn {
        flex: 1;
    }
    
    .ecp-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .ecp-filters label {
        margin-bottom: 4px;
    }
    
    .ecp-events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ecp-event-header h3 {
        padding-right: 60px;
        font-size: 18px;
    }
    
    .ecp-event-date-badge {
        padding: 6px 10px;
    }
    
    .ecp-event-day {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .ecp-controls {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .ecp-event-content {
        padding: 20px;
    }
    
    .ecp-event-header {
        padding: 16px;
    }
}

/* Event Actions */
.ecp-event-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}


.ecp-map-info {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 40%;
    overflow-y: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.ecp-map-info:hover {
    opacity: 1;
}

.ecp-map-info-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.ecp-view-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.ecp-view-map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.3);
    color: white;
    text-decoration: none;
}

.ecp-view-map-btn:before {
    content: "🗺️";
    font-size: 16px;
}
