/* Agenda Plugin CSS Styles v3.1 */

/* Main Container */
.agenda-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.agenda-overzicht {
    margin-top: 20px;
}

/* Agenda Items - Modern Card Layout */
.agenda-item {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.agenda-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* Agenda Item Content Layout */
.agenda-item-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 120px;
}

/* Featured Image */
.agenda-featured-image {
    flex: 0 0 200px;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.agenda-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.agenda-featured-image:hover img {
    transform: scale(1.05);
}

.agenda-featured-image a {
    display: block;
    height: 100%;
    text-decoration: none;
}

/* Agenda Item Details */
.agenda-item-details {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.agenda-item h3 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 1.3em;
    line-height: 1.3;
    font-weight: 600;
}

.agenda-item h3 a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.agenda-item h3 a:hover {
    color: #005177;
}

/* Meta Information */
.agenda-meta {
    margin-bottom: 12px;
}

.agenda-datum {
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
    font-size: 0.95em;
}

.agenda-tijd {
    color: #888;
    margin-bottom: 6px;
    font-size: 0.9em;
}

.agenda-gehele-dag {
    color: #28a745;
    font-style: italic;
}

.agenda-locatie {
    color: #555;
    margin-bottom: 0;
    font-size: 0.9em;
}

/* Excerpt */
.agenda-excerpt {
    color: #666;
    line-height: 1.5;
    margin: 0 0 15px 0;
    font-size: 0.95em;
}

/* Lees verder link */
.agenda-lees-verder {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e1e5e9;
}

.agenda-lees-verder-link {
    display: inline-block;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.agenda-lees-verder-link:hover {
    color: #005177;
    background: #e3f2fd;
    border-color: #0073aa;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.2);
}

/* Category Colors */
.agenda-item[data-categorie="muziek-festivals"] {
    border-left: 4px solid #e74c3c;
}

.agenda-item[data-categorie="theater-cultuur"] {
    border-left: 4px solid #9b59b6;
}

.agenda-item[data-categorie="kinderen"] {
    border-left: 4px solid #f39c12;
}

.agenda-item[data-categorie="markt"] {
    border-left: 4px solid #27ae60;
}

.agenda-item[data-categorie="sport"] {
    border-left: 4px solid #3498db;
}

.agenda-item[data-categorie="lezing-workshops"] {
    border-left: 4px solid #1abc9c;
}

/* Komende Activiteiten */
.komende-activiteiten {
    margin-top: 30px;
}

.komende-activiteiten h3 {
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .agenda-container {
        padding: 10px;
    }
    
    /* Mobile Layout - Stack vertically */
    .agenda-item-content {
        flex-direction: column;
        min-height: auto;
    }
    
    .agenda-featured-image {
        flex: none;
        height: 200px;
        order: -1; /* Image first on mobile */
    }
    
    .agenda-item-details {
        padding: 15px;
    }
    
    .agenda-item h3 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    
    .agenda-meta {
        margin-bottom: 10px;
    }
    
    .agenda-datum,
    .agenda-tijd,
    .agenda-locatie {
        font-size: 0.9em;
        margin-bottom: 4px;
    }
    
    .agenda-excerpt {
        font-size: 0.9em;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .agenda-lees-verder {
        padding-top: 12px;
    }
    
    .agenda-lees-verder-link {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
        font-size: 15px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .agenda-container {
        padding: 8px;
    }
    
    .agenda-item {
        margin-bottom: 15px;
        border-radius: 8px;
    }
    
    .agenda-featured-image {
        height: 160px;
    }
    
    .agenda-item-details {
        padding: 12px;
    }
    
    .agenda-item h3 {
        font-size: 1.1em;
        line-height: 1.2;
    }
    
    .agenda-meta {
        margin-bottom: 8px;
    }
    
    .agenda-datum,
    .agenda-tijd,
    .agenda-locatie {
        font-size: 0.85em;
        margin-bottom: 3px;
    }
    
    .agenda-excerpt {
        font-size: 0.85em;
        margin-bottom: 10px;
    }
    
    .agenda-lees-verder {
        padding-top: 10px;
    }
    
    .agenda-lees-verder-link {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Elementor Widget Specific Styles */
.elementor-agenda-widget {
    width: 100%;
}

.elementor-agenda-widget .agenda-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: end;
}

.elementor-agenda-widget .agenda-date-section,
.elementor-agenda-widget .agenda-category-section,
.elementor-agenda-widget .agenda-search-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.elementor-agenda-widget .agenda-date-picker,
.elementor-agenda-widget .agenda-category-filter,
.elementor-agenda-widget .agenda-search {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    background: #ffffff;
    transition: border-color 0.3s ease;
}

.elementor-agenda-widget .agenda-date-picker:focus,
.elementor-agenda-widget .agenda-category-filter:focus,
.elementor-agenda-widget .agenda-search:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.elementor-agenda-widget .agenda-selected-date-section,
.elementor-agenda-widget .agenda-upcoming-events-section {
    margin-bottom: 40px;
}

.elementor-agenda-widget .agenda-selected-date-section h3,
.elementor-agenda-widget .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;
}

.elementor-agenda-widget .agenda-selected-date-section h3::after,
.elementor-agenda-widget .agenda-upcoming-events-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #007cba;
}

.elementor-agenda-widget .agenda-upcoming-events-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #007cba;
}

.elementor-agenda-widget .agenda-upcoming-events-section h3 {
    color: #007cba;
    border-bottom-color: #007cba;
}

.elementor-agenda-widget .agenda-upcoming-events-section h3::after {
    background: #005a87;
}

/* Responsive adjustments for Elementor widget */
@media (max-width: 768px) {
    .elementor-agenda-widget .agenda-filters {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 15px;
    }
    
    .elementor-agenda-widget .agenda-selected-date-section,
    .elementor-agenda-widget .agenda-upcoming-events-section {
        margin-bottom: 30px;
    }
    
    .elementor-agenda-widget .agenda-selected-date-section h3,
    .elementor-agenda-widget .agenda-upcoming-events-section h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .elementor-agenda-widget .agenda-upcoming-events-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .elementor-agenda-widget .agenda-filters {
        padding: 12px;
        gap: 12px;
    }
    
    .elementor-agenda-widget .agenda-date-section,
    .elementor-agenda-widget .agenda-category-section,
    .elementor-agenda-widget .agenda-search-section {
        gap: 6px;
    }
    
    .elementor-agenda-widget .agenda-date-picker,
    .elementor-agenda-widget .agenda-category-filter,
    .elementor-agenda-widget .agenda-search {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .elementor-agenda-widget .agenda-selected-date-section h3,
    .elementor-agenda-widget .agenda-upcoming-events-section h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .elementor-agenda-widget .agenda-upcoming-events-section {
        padding: 15px;
    }
}

/* ========================================
   VERKEERSKALENDER STYLING
   ======================================== */

.verkeer-kalender,
.komende-verkeer {
    margin: 20px 0;
}

.verkeer-item {
    background: #fff;
    border: 2px solid #e74c3c;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.1);
    transition: all 0.3s ease;
}

.verkeer-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.2);
    border-color: #c0392b;
}

.verkeer-item-content {
    display: flex;
    align-items: stretch;
}

.verkeer-featured-image {
    flex: 0 0 200px;
    position: relative;
    overflow: hidden;
}

.verkeer-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.verkeer-featured-image:hover img {
    transform: scale(1.05);
}

.verkeer-item-details {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.verkeer-item h3 {
    margin: 0 0 15px 0;
    font-size: 1.4em;
    color: #2c3e50;
}

.verkeer-item h3 a {
    color: #e74c3c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.verkeer-item h3 a:hover {
    color: #c0392b;
}

.verkeer-meta {
    margin-bottom: 15px;
    font-size: 0.95em;
    color: #555;
}

.verkeer-datum {
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 8px;
}

.verkeer-tijd {
    margin-bottom: 8px;
}

.verkeer-tijd strong {
    color: #e74c3c;
}

.verkeer-gehele-dag {
    color: #27ae60;
    font-style: italic;
}

.verkeer-gehele-dag strong {
    color: #27ae60;
}

.verkeer-locatie {
    margin-bottom: 8px;
}

.verkeer-locatie strong {
    color: #e74c3c;
}

.verkeer-excerpt {
    margin: 0 0 15px 0;
    line-height: 1.6;
    color: #666;
    flex: 1;
}

.verkeer-lees-verder {
    margin-top: auto;
}

.verkeer-lees-verder-link {
    display: inline-block;
    padding: 8px 16px;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.verkeer-lees-verder-link:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.komende-verkeer h3 {
    color: #e74c3c;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Verkeerskalender Mobile Responsive */
@media (max-width: 768px) {
    .verkeer-item-content {
        flex-direction: column;
    }
    
    .verkeer-featured-image {
        flex: none;
        height: 200px;
    }
    
    .verkeer-item-details {
        padding: 15px;
    }
    
    .verkeer-item h3 {
        font-size: 1.2em;
    }
    
    .verkeer-meta {
        font-size: 0.9em;
    }
}
