/* Agenda Plugin CSS Styles */

/* Main Container */
.agenda-overzicht {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Date Picker Styles */
.agenda-date-picker {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    background: #ffffff;
    color: #333333;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.agenda-date-picker:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* Filter Section */
.agenda-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333333;
    font-size: 14px;
}

.agenda-category-filter,
.agenda-search {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    max-width: 250px;
    background: #ffffff;
    transition: border-color 0.3s ease;
}

.agenda-category-filter:focus,
.agenda-search:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

/* Action Buttons */
.agenda-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.agenda-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ffffff;
}

.agenda-btn-primary {
    background: #007cba;
}

.agenda-btn-primary:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.agenda-btn-success {
    background: #28a745;
}

.agenda-btn-success:hover {
    background: #1e7e34;
    transform: translateY(-1px);
}

.agenda-btn-info {
    background: #17a2b8;
}

.agenda-btn-info:hover {
    background: #138496;
    transform: translateY(-1px);
}

/* Agenda Items */
.agenda-item {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.agenda-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.agenda-item h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    line-height: 1.3;
}

.agenda-item h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.agenda-item h3 a:hover {
    color: #007cba;
}

.agenda-datum {
    font-size: 16px;
    font-weight: 500;
    color: #007cba;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.agenda-datum::before {
    content: "📅";
    font-size: 14px;
}

.agenda-tijd {
    font-size: 16px;
    font-weight: 500;
    color: #28a745;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.agenda-tijd::before {
    content: "🕐";
    font-size: 14px;
}

.agenda-locatie {
    font-size: 16px;
    color: #666666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.agenda-locatie strong {
    color: #333333;
    font-weight: 600;
}

.agenda-contact {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e1e5e9;
    font-size: 14px;
}

.agenda-contact a {
    color: #007cba;
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.agenda-contact a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Category Badges */
.agenda-item[data-categorie="cultuur"] {
    border-left: 4px solid #e83e8c;
}

.agenda-item[data-categorie="sport"] {
    border-left: 4px solid #28a745;
}

.agenda-item[data-categorie="educatie"] {
    border-left: 4px solid #ffc107;
}

.agenda-item[data-categorie="zaken"] {
    border-left: 4px solid #17a2b8;
}

.agenda-item[data-categorie="overig"] {
    border-left: 4px solid #6c757d;
}

/* Loading States */
.agenda-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666666;
}

.agenda-loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 50%;
    border-top-color: #007cba;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* No Results */
.agenda-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666666;
    font-style: italic;
}

/* Share Modal Styles */
.agenda-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.agenda-overlay.active {
    display: block;
    opacity: 1;
}

.agenda-share-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    opacity: 0;
    transition: all 0.3s ease;
}

.agenda-share-modal.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.agenda-share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0 20px;
    border-bottom: 1px solid #e1e5e9;
}

.agenda-share-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333333;
}

.agenda-close-share {
    background: none;
    border: none;
    font-size: 24px;
    color: #666666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.agenda-close-share:hover {
    background: #f8f9fa;
    color: #333333;
}

.agenda-share-content {
    padding: 20px;
}

.agenda-share-social h4,
.agenda-share-calendar h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333333;
}

.agenda-share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 25px;
}

.agenda-share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: #ffffff;
    color: #333333;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.agenda-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #007cba;
}

.agenda-share-icon {
    font-size: 24px;
}

.agenda-share-facebook:hover {
    background: #1877f2;
    color: #ffffff;
    border-color: #1877f2;
}

.agenda-share-twitter:hover {
    background: #1da1f2;
    color: #ffffff;
    border-color: #1da1f2;
}

.agenda-share-linkedin:hover {
    background: #0077b5;
    color: #ffffff;
    border-color: #0077b5;
}

.agenda-share-whatsapp:hover {
    background: #25d366;
    color: #ffffff;
    border-color: #25d366;
}

.agenda-share-calendar {
    border-top: 1px solid #e1e5e9;
    padding-top: 20px;
}

.agenda-share-calendar p {
    margin: 0 0 15px 0;
    color: #666666;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .agenda-overzicht {
        padding: 15px;
    }
    
    .agenda-filters {
        padding: 15px;
    }
    
    .agenda-actions {
        flex-direction: column;
    }
    
    .agenda-btn {
        width: 100%;
        justify-content: center;
    }
    
    .agenda-item {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .agenda-item h3 {
        font-size: 18px;
    }
    
    .agenda-date-picker,
    .agenda-category-filter,
    .agenda-search {
        max-width: 100%;
    }

    .agenda-share-modal {
        width: 95%;
        max-height: 90vh;
    }

    .agenda-share-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .agenda-overzicht {
        padding: 10px;
    }
    
    .agenda-filters {
        padding: 10px;
    }
    
    .agenda-item {
        padding: 12px;
    }
    
    .agenda-item h3 {
        font-size: 16px;
    }
    
    .agenda-datum,
    .agenda-tijd,
    .agenda-locatie {
        font-size: 14px;
    }

    .agenda-share-buttons {
        grid-template-columns: 1fr;
    }
}

/* Elementor Widget Specific Styles */
.elementor-agenda-widget {
    width: 100%;
}

.elementor-agenda-widget .agenda-date-section {
    margin-bottom: 20px;
}

.elementor-agenda-widget .agenda-date-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333333;
}

.elementor-agenda-widget .agenda-filters-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.elementor-agenda-widget .filter-group {
    flex: 1;
    min-width: 200px;
}

.elementor-agenda-widget .agenda-content {
    margin-top: 20px;
}

/* Accessibility */
.agenda-btn:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.agenda-date-picker:focus,
.agenda-category-filter:focus,
.agenda-search:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.agenda-share-btn:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .agenda-item {
        border: 2px solid #000;
    }
    
    .agenda-btn {
        border: 2px solid #000;
    }

    .agenda-share-modal {
        border: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .agenda-item,
    .agenda-btn,
    .agenda-share-btn {
        transition: none;
    }
    
    .agenda-loading::after {
        animation: none;
    }

    .agenda-overlay,
    .agenda-share-modal {
        transition: none;
    }
}

/* New Widget Sections */
.agenda-selected-date-section,
.agenda-upcoming-events-section {
    margin-bottom: 40px;
}

.agenda-selected-date-section h3,
.agenda-upcoming-events-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e5e9;
    position: relative;
}

.agenda-selected-date-section h3::after,
.agenda-upcoming-events-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #007cba;
}

.agenda-upcoming-events-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #007cba;
}

.agenda-upcoming-events-section h3 {
    color: #007cba;
    border-bottom-color: #007cba;
}

.agenda-upcoming-events-section h3::after {
    background: #005a87;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .agenda-selected-date-section,
    .agenda-upcoming-events-section {
        margin-bottom: 30px;
    }
    
    .agenda-selected-date-section h3,
    .agenda-upcoming-events-section h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .agenda-upcoming-events-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .agenda-selected-date-section h3,
    .agenda-upcoming-events-section h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .agenda-upcoming-events-section {
        padding: 15px;
    }
}
