/* Calendar Container */
.ecp-calendar-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Calendar Header */
.ecp-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.ecp-calendar-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.ecp-calendar-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.ecp-calendar-selects {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ecp-month-select,
.ecp-year-select {
    padding: 10px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ecp-month-select {
    min-width: 130px;
    height: 40px;
}

.ecp-year-select {
    min-width: 90px;
    height: 40px;
}

.ecp-month-select:hover,
.ecp-year-select:hover {
    background: white;
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ecp-month-select:focus,
.ecp-year-select:focus {
    outline: none;
    border-color: #ffd700;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.ecp-calendar-nav {
    display: flex;
    gap: 10px;
}

.ecp-nav-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ecp-nav-btn:hover {
    background: white;
    color: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Search Bar */
.ecp-search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ecp-search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ecp-search-btn {
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Calendar Grid */
.ecp-calendar-grid {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.ecp-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

.ecp-weekday {
    padding: 12px;
    text-align: center;
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

.ecp-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e0e0e0;
}

.ecp-day {
    background: white;
    min-height: 100px;
    padding: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.ecp-day:hover {
    background: #f9f9f9;
}

.ecp-day-number {
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.ecp-day.other-month .ecp-day-number {
    color: #ccc;
}

.ecp-day.today {
    background: #e3f2fd;
}

.ecp-day-events {
    margin-top: 4px;
}

.ecp-event-item {
    padding: 4px 6px;
    margin: 2px 0;
    background: #0073aa;
    color: white;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ecp-event-item:hover {
    background: #005177;
}

/* Event List */
.ecp-event-list {
    max-width: 900px;
    margin: 0 auto;
}

.ecp-event-card {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ecp-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ecp-event-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.ecp-event-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

/* Event Popup */
.ecp-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.ecp-popup-overlay.active {
    display: flex;
}

.ecp-popup-content {
    background: white;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
}

.ecp-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    background: none;
    border: none;
    padding: 5px 10px;
}

.ecp-popup-body {
    padding: 30px;
}

.ecp-popup-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
}

.ecp-share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.ecp-share-btn {
    padding: 10px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.ecp-share-btn:hover {
    background: #f5f5f5;
}

/* Frontend Form */
.ecp-frontend-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ecp-form-group {
    margin-bottom: 20px;
}

.ecp-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.ecp-form-input,
.ecp-form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ecp-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.ecp-form-submit {
    width: 100%;
    padding: 12px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.ecp-form-submit:hover {
    background: #005177;
}

.ecp-load-more {
    text-align: center;
    margin-top: 20px;
}

.ecp-load-more-btn {
    padding: 12px 30px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ecp-calendar-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ecp-calendar-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .ecp-calendar-weekdays,
    .ecp-calendar-days {
        grid-template-columns: repeat(7, 1fr);
    }
    
    .ecp-day {
        min-height: 80px;
        padding: 4px;
    }
    
    .ecp-weekday {
        padding: 8px 4px;
        font-size: 12px;
    }
    
    .ecp-event-item {
        font-size: 10px;
    }
    
    .ecp-calendar-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .ecp-calendar-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ecp-calendar-selects {
        width: 100%;
    }
    
    .ecp-month-select,
    .ecp-year-select {
        flex: 1;
    }
    
    .ecp-calendar-nav {
        width: 100%;
    }
    
    .ecp-nav-btn {
        flex: 1;
    }
    
    .ecp-day {
        min-height: 60px;
    }
    
    .ecp-weekday {
        font-size: 10px;
    }
}