/* Simple Event Plugin - Frontend Styles */

/* Modern Event Block Card Styles */
.sep-event-display {
    margin: 20px 0;
}

.sep-event-display.layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* Event List Grid - uses CSS variables from PHP for column control */
.sep-events-grid {
    display: grid !important;
    grid-template-columns: repeat(var(--sep-grid-columns, 3), 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .sep-events-grid {
        grid-template-columns: repeat(var(--sep-grid-columns-tablet, 2), 1fr);
    }
}

@media (max-width: 768px) {
    .sep-events-grid {
        grid-template-columns: repeat(var(--sep-grid-columns-mobile, 1), 1fr);
    }
}

.sep-event-display.layout-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* Modern Card Design */
.sep-event-card {
    position: relative;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.sep-event-card:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

/* Accent Border (left side) */
.sep-event-accent-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--accent-color, #ff6b35);
    border-radius: 12px;
}

/* Icon Section */
.sep-event-icon-section {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--accent-color, #ff6b35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sep-event-icon {
    color: white !important;
    font-size: 22px !important;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content Section */
.sep-event-content {
    padding: 24px 24px 16px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sep-event-title {
    margin: 0 0 12px 0;
    font-size: 1.5em;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    padding-right: 70px;
    /* Space for icon */
}

.sep-event-location {
    color: #7f8c8d;
    font-size: 0.95em;
    margin-bottom: 16px;
    font-weight: 500;
}

.sep-event-excerpt {
    color: #5a6c7d;
    line-height: 1.6;
    font-size: 0.9em;
    margin-bottom: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Actions Section (bottom) */
.sep-event-actions {
    padding: 16px 24px 24px 24px;
    border-top: 1px solid #f8f9fa;
    background: #fafbfc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.sep-event-datetime {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85em;
    color: #6c757d;
}

.sep-event-date,
.sep-event-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sep-event-button {
    background: var(--accent-color, #ff6b35);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.sep-event-button:hover {
    background: color-mix(in srgb, var(--accent-color, #ff6b35) 85%, black);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Fallback for browsers that don't support color-mix */
.sep-event-button:hover {
    filter: brightness(0.9);
}

/* No Events Message */
.sep-no-events {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.sep-no-events h3 {
    color: #495057;
    margin-bottom: 8px;
}

/* Block Card Responsive Design */
@media (max-width: 768px) {

    .sep-event-display.layout-grid,
    .sep-event-display.layout-list {
        grid-template-columns: 1fr;
    }

    .sep-event-card {
        min-height: auto;
    }

    .sep-event-content {
        padding: 20px 20px 12px 20px;
    }

    .sep-event-title {
        font-size: 1.3em;
        padding-right: 60px;
    }

    .sep-event-icon-section {
        width: 45px;
        height: 45px;
        top: 16px;
        right: 16px;
    }

    .sep-event-icon {
        font-size: 18px !important;
    }

    .sep-event-actions {
        padding: 12px 20px 20px 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .sep-event-button {
        text-align: center;
        width: 100%;
    }
}

.event-details {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.event-meta {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.event-meta>div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.event-meta strong {
    color: #2c3e50;
    font-weight: 600;
    min-width: 80px;
    flex-shrink: 0;
}

.event-date {
    font-size: 18px;
    color: #2c3e50;
}

.event-duration,
.event-location {
    font-size: 16px;
    color: #495057;
}

/* Map section */
.event-map {
    margin: 24px 0;
    padding: 20px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.event-map h4 {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.map-placeholder {
    /* Background and border removed for cleaner look */
    background: transparent;
    border: none;
    border-radius: 4px;
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.map-placeholder p {
    margin: 8px 0;
}

/* Google Maps container styles */
.google-map-container {
    width: 100% !important;
    display: block !important;
    position: relative !important;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
}

.google-map-container>div {
    width: 100% !important;
    display: block !important;
    position: relative !important;
}

/* Map link styling */
.map-link-info {
    text-align: center;
    margin-top: 8px;
}

.map-link-info a {
    color: #007cba;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.map-link-info a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Improve map section spacing */
.event-map {
    margin: 20px 0;
    padding: 16px;
}

/* Directions section */
.event-directions {
    margin: 24px 0;
    padding: 20px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.event-directions h4 {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.event-directions p {
    color: #495057;
    line-height: 1.6;
    margin: 0;
}

/* Actions section */
.event-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #dee2e6;
}

.calendar-export {
    display: inline-block;
    background: #007cba;
    color: white !important;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    margin-right: 16px;
    margin-bottom: 16px;
}

.calendar-export:hover {
    background: #005a87;
    color: white !important;
}

/* Social sharing */
.social-sharing {
    margin-top: 24px;
}

.social-sharing h4 {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.social-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    color: white !important;
}

.social-button.facebook {
    background: #1877f2;
}

.social-button.facebook:hover {
    background: #166fe5;
}

.social-button.twitter {
    background: #1da1f2;
}

.social-button.twitter:hover {
    background: #0d95e8;
}

.social-button.linkedin {
    background: #0077b5;
}

.social-button.linkedin:hover {
    background: #005885;
}

.social-button.whatsapp {
    background: #25d366;
}

.social-button.whatsapp:hover {
    background: #20bd5a;
}

.social-button.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.social-button.instagram:hover {
    opacity: 0.9;
}

/* Social button loading/sharing state */
.social-button.sharing {
    opacity: 0.7;
    cursor: wait;
    transform: scale(0.98);
    pointer-events: none;
}

.social-button.loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.social-button:active {
    transform: scale(0.95);
}

/* Social button icon spacing */
.social-button i {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Weather widget placeholder */
.weather-widget {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin: 24px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.weather-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.weather-widget h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-color, #ff6b35);
    padding-bottom: 10px;
    display: inline-block;
}

.weather-widget h4 i {
    color: var(--accent-color, #ff6b35);
    margin-right: 8px;
}

.weather-placeholder {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px 20px;
    color: #495057;
    font-size: 16px;
}

/* Event gallery */
.event-gallery {
    margin: 24px 0;
}

.event-gallery h4 {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f8f9fa;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Recurring event indicator */
.recurring-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e7f3ff;
    color: #0073aa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
}

.recurring-indicator::before {
    content: "🔄";
    font-size: 12px;
}

/* Archive view styles */
.events-archive .event-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    transition: box-shadow 0.2s ease;
}

.events-archive .event-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.event-card .event-title {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 600;
}

.event-card .event-title a {
    color: #2c3e50;
    text-decoration: none;
}

.event-card .event-title a:hover {
    color: #007cba;
}

.event-card .event-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 16px;
}

.event-card .event-meta-compact {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: #495057;
    margin-bottom: 16px;
}

.event-card .event-meta-compact>span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-card .read-more {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.event-card .read-more:hover {
    color: #005a87;
}

/* Responsive design */
@media (max-width: 768px) {
    .event-details {
        padding: 16px;
        margin: 16px 0;
    }

    .event-meta {
        gap: 12px;
    }

    .event-meta>div {
        flex-direction: column;
        gap: 4px;
    }

    .event-meta strong {
        min-width: auto;
    }

    .social-buttons {
        flex-direction: column;
    }

    .social-button {
        text-align: center;
    }

    .event-card .event-meta-compact {
        flex-direction: column;
        gap: 8px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .event-details {
        padding: 12px;
    }

    .event-map,
    .event-directions {
        padding: 16px;
    }

    .calendar-export {
        display: block;
        text-align: center;
        margin-right: 0;
    }
}

/* View Selector Styles - Boxed Layout */
.sep-view-controls {
    display: flex;
    gap: 4px;
    background: #f6f7f7;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #dcdcde;
    width: fit-content;
    margin-left: auto; /* Push to right by default, but we'll center it in some cases */
}

.sep-view-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: #646970; /* Standard WP gray for inactive */
    border-radius: 12px; /* More rounded pill-style as in image */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.sep-view-btn:hover {
    background: #ffffff;
    color: #2271b1 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.sep-view-btn.active {
    background: #2271b1;
    color: white !important;
    font-weight: 600;
}

/* Header Centering Refinements for all views */
.sep-monthly-header, 
.sep-weekly-header, 
.sep-daily-header {
    display: flex;
    flex-direction: column; /* Stack by default on mobile */
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    text-align: center;
}

@media (min-width: 769px) {
    .sep-monthly-header, 
    .sep-weekly-header, 
    .sep-daily-header {
        flex-direction: row; /* Side-by-side on desktop */
        justify-content: space-between;
    }

    /* Date/Title container center refinement */
    .sep-monthly-title, 
    .sep-weekly-title, 
    .sep-daily-title {
        flex: 1;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .sep-view-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        max-width: 340px; /* Slightly wider for the airy look of the image */
        justify-content: center;
        box-sizing: border-box;
        margin: 0 auto 30px;
        gap: 12px; /* Increased gap as seen in image */
        padding: 12px; /* Breathable padding inside the container */
        background: #f6f7f7; /* Off-white container as in image */
        border: 1px solid #dcdcde;
        border-radius: 16px;
    }
    
    .sep-view-btn {
        padding: 14px 10px;
        font-size: 16px;
        flex: 1 1 auto;
        min-width: 0;
        text-align: center;
        border-radius: 12px;
    }

    .sep-view-btn.active {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }
}

/* 
 * Mobile Breakout: Force calendar to use full screen width by negating theme root padding.
 * Only applies on screens smaller than 768px.
 */
@media (max-width: 768px) {
    .sep-monthly-calendar-container,
    .sep-weekly-calendar-container,
    .sep-daily-calendar-container,
    .sep-list-calendar-container {
        margin-left: calc(-1 * var(--wp--preset--spacing--50, 30px)) !important;
        margin-right: calc(-1 * var(--wp--preset--spacing--50, 30px)) !important;
        width: calc(100% + (2 * var(--wp--preset--spacing--50, 30px))) !important;
        max-width: 100vw !important;
        border-radius: 0 !important; /* Edge-to-edge looks better without corners */
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
        box-sizing: border-box !important;
        box-shadow: none !important;
    }

    /* Ensure parent containers don't clip the breakout */
    .sep-event-calendar-block,
    .wp-block-simple-event-plugin-event-display {
        overflow: visible !important;
    }
}

/* Unified Event Card Standard - Preferred styling for all views */
.sep-event-card-standard {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-left: 4px solid #2271b1;
    border-radius: 6px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all 0.2s ease;
    text-decoration: none !important;
    color: #2c3338;
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
}

.sep-event-card-standard:hover {
    border-color: var(--event-accent);
    box-shadow: none !important;
    transform: translateY(-1px);
}

.sep-event-card-standard .sep-card-date-time {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
    flex-shrink: 0;
}

.sep-event-card-standard .sep-card-date,
.sep-event-card-standard .sep-card-time {
    font-weight: 700;
    color: #2c3338;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sep-event-card-standard .sep-card-time {
    font-weight: 600;
    font-size: 14px;
}

.sep-event-card-standard .sep-card-date i,
.sep-event-card-standard .sep-card-time i,
.sep-event-card-standard .sep-card-location i {
    color: var(--event-accent, #2271b1);
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.sep-event-card-standard .sep-card-main {
    flex-grow: 1;
}

.sep-event-card-standard .sep-card-title {
    margin: 0 0 6px 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #1d2327 !important;
    text-shadow: none !important;
}

.sep-event-card-standard:hover .sep-card-title {
    color: var(--event-accent) !important;
}

.sep-event-card-standard .sep-card-location {
    color: #2c3338;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sep-event-card-standard .sep-card-action {
    flex-shrink: 0;
}

.sep-event-card-standard .sep-card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f1;
    color: #2c3338;
    transition: all 0.2s ease;
}

.sep-event-card-standard:hover .sep-card-link {
    background: var(--event-accent);
    color: #ffffff;
}

/* Mobile Layout for Standard Card */
@media (max-width: 768px) {
    .sep-event-card-standard {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }
    
    .sep-event-card-standard .sep-card-date-time {
        flex-direction: row;
        justify-content: flex-start;
        gap: 16px;
        border-bottom: 1px solid #f0f0f1;
        padding-bottom: 10px;
        min-width: auto;
    }
    
    .sep-event-card-standard .sep-card-action {
        display: none;
    }
    
    .sep-event-card-standard .sep-card-title {
        font-size: 16px !important;
    }
}

/* Single Event Detail View Styles */
.sep-event-single-details {
    background: #ffffff;
    border-radius: 16px; /* Blueprint: 16px */
    border: 3px solid var(--accent-color, #ff6b35);
    box-shadow: none;
    overflow: hidden;
    margin: 0 auto 20px;
    max-width: 1100px;
    width: 90%;
    padding: 0;
}

.sep-event-single-header {
    background: var(--accent-color, #ff6b35);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 9px 9px 0 0;
    margin: -3px -3px 0 -3px;
}

.sep-event-single-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}

.sep-event-single-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    z-index: 2;
    position: relative;
    line-height: 1;
    /* Ensure no line-height issues */
}

/* Ensure the icon itself is centered and has no extra spacing */
.sep-event-single-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.sep-event-header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2;
    position: relative;
}

.sep-event-single-title {
    color: white;
    font-size: 38px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

/* Two Column Layout Wrapper */
.sep-event-two-column-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 0;
    padding-bottom: 5px;
    /* Prevent bottom border cutoff */
}

.sep-event-single-meta-compact {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 0;
    margin: 0;
    border: none;
    display: flex;
    flex-direction: column;
}

/* Calendar button in row layout - wrapper */
.sep-calendar-row {
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    align-items: center;
}

.sep-action-button-compact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--accent-color, #ff6b35);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    flex: 1;
    min-width: 0;
    justify-content: center;
}

.sep-action-button-compact:hover {
    background: rgba(255, 107, 53, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}

/* Social Sharing Section Below Calendar Button */
.sep-sharing-section-below {
    padding: 16px 0 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sep-sharing-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.sep-sharing-label .sep-meta-icon {
    font-size: 24px;
    min-width: 32px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color, #ff6b35);
    flex-shrink: 0;
}

.sep-sharing-label .sep-meta-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

.sep-sharing-buttons-below {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding-left: 0;
}

.sep-sharing-buttons-below .social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.sep-sharing-buttons-below .social-button {
    flex: 0 0 40px;
    min-width: 40px;
    max-width: 40px;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 18px;
}

.sep-sharing-buttons-below .social-button i {
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sep-sharing-buttons-below .social-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Inline Sharing Buttons - Uses .sep-compact-meta-item layout structure */
.sep-sharing-buttons-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.sep-sharing-buttons-inline .social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.sep-sharing-buttons-inline .social-button {
    flex: 0 0 40px;
    min-width: 40px;
    max-width: 40px;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 18px;
}

.sep-sharing-buttons-inline .social-button i {
    font-size: 18px;
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sep-sharing-buttons-inline .social-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sep-compact-meta-item {
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    align-items: flex-start;
}

.sep-compact-meta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sep-compact-meta-item:first-child {
    padding-top: 0;
}

.sep-meta-icon {
    font-size: 32px;
    min-width: 32px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color, #ff6b35);
    flex-shrink: 0;
    margin-top: 2px;
}

.sep-meta-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.sep-meta-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

.sep-meta-value {
    font-size: 17px;
    color: #2c3e50;
    line-height: 1.4;
    font-weight: 500;
}

.sep-event-single-actions {
    padding: 25px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 12px 12px;
}

.sep-actions-row {
    margin-bottom: 20px;
}

.sep-action-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--accent-color, #ff6b35);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.sep-action-button:hover {
    background: rgba(255, 107, 53, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}

.sep-event-single-sharing {
    margin-top: 20px;
}

.sep-sharing-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.sep-sharing-icon {
    font-size: 20px;
}

.sep-sharing-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Section Icons Styles */
.sep-section-icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 18px;
    color: var(--accent-color, #ff6b35);
    vertical-align: middle;
}

/* Right Column Wrapper */
.sep-event-right-column {
    background: #ffffff;
    border-top: 1px solid #e9ecef;
    padding: 25px 25px 25px 0;
}

/* Weather widget in right column */
/* Weather widget in right column */
.sep-event-right-column .weather-widget {
    padding: 25px;
    background: #ffffff;
    margin: 0 0 24px 0;
    border-bottom: none;
    text-align: left;
    box-shadow: none;
}

.sep-event-right-column .weather-widget h4 {
    border-bottom: none;
    padding-bottom: 0;
    display: block;
}

.sep-event-right-column .weather-widget .weather-placeholder {
    text-align: left;
}

/* Intermediate sections styling */
.sep-event-right-column .event-map {
    padding: 25px;
    background: #ffffff;
    margin: 0 0 24px 0;
}

.sep-event-right-column .event-directions {
    padding: 25px;
    background: #ffffff;
    border-top: none;
    margin: 0 0 24px 0;
}

.sep-event-right-column .event-directions:last-child {
    margin-bottom: 0;
}

.sep-event-right-column .event-directions {
    border-bottom-right-radius: 9px;
    border-bottom-left-radius: 9px;
}

.sep-event-right-column .weather-widget h4,
.sep-event-right-column .event-map h4,
.sep-event-right-column .event-directions h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

h4 .sep-section-icon {
    font-size: 20px;
}

.sep-sharing-title .sep-section-icon {
    font-size: 20px;
}

/* Single event mobile styles */
@media (max-width: 768px) {

    /* Stack columns on mobile */
    .sep-event-two-column-wrapper {
        grid-template-columns: 1fr;
    }

    .sep-event-single-meta-compact {
        border-right: none;
    }

    .sep-event-single-details {
        width: 100% !important; /* Force edge-to-edge */
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
    }

    .sep-event-single-header {
        padding: 15px 10px; /* Reduced for more space */
        background: #ffffff !important;
        color: #2c3e50 !important;
        border-left: 8px solid var(--accent-color, #ff6b35) !important; /* Stronger accent bar */
        margin: 0;
        border-radius: 0;
        gap: 10px;
        box-sizing: border-box !important;
    }

    .sep-event-single-icon {
        background: var(--accent-color, #ff6b35) !important;
        width: 44px; /* Slightly smaller for more horizontal space */
        height: 44px;
        font-size: 18px;
        opacity: 0.1;
        color: var(--accent-color, #ff6b35) !important;
        border: none;
        flex-shrink: 0;
    }

    .sep-event-single-title {
        color: #2c3e50 !important;
        font-size: 24px !important; /* Balanced for space */
        font-weight: 800 !important;
        text-shadow: none !important;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .sep-event-header-content {
        gap: 6px;
    }

    .sep-event-single-meta-compact {
        padding: 5px 10px; /* Minimized */
        background: transparent !important;
        box-sizing: border-box !important;
    }

    .sep-compact-meta-item {
        gap: 10px;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0 !important;
        flex-direction: row !important;
        align-items: center !important;
        box-sizing: border-box !important;
        width: 100%;
        overflow: visible; /* Changed from hidden to allow flex wrap items to be seen */
    }

    .sep-meta-value {
        font-size: 16px !important;
        font-weight: 500 !important;
        color: #2c3e50 !important;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: break-word;
        min-width: 0; /* Allow shrinking to prevent cutoff */
        flex: 1;
    }

    .sep-calendar-buttons {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100%;
        padding: 4px 0;
    }

    .sep-action-button-compact {
        padding: 10px 12px !important; /* Narrower buttons */
        font-size: 13px !important;
        border-radius: 8px !important;
        flex: 1 1 auto; /* Allow shrinking */
        text-align: center;
        white-space: nowrap;
    }

    .sep-calendar-button span {
        display: inline-block;
    }

    @media (min-width: 480px) {
        .sep-calendar-buttons {
            grid-template-columns: 1fr 1fr; /* 2x1 grid on medium-ish phones */
        }
    }

    .sep-action-button-compact {
        padding: 14px 16px;
        font-size: 14px;
        border-radius: 12px; /* Blueprint style pills */
    }

    .sep-sharing-section-below {
        padding: 12px 0;
    }

    .sep-sharing-label {
        gap: 12px;
        margin-bottom: 10px;
    }

    .sep-sharing-label .sep-meta-icon {
        font-size: 22px;
        min-width: 28px;
        width: 28px;
        height: 28px;
    }

    .sep-sharing-buttons-below {
        padding-left: 0;
        gap: 6px;
        flex-direction: row;
    }

    .sep-sharing-buttons-below .social-buttons {
        gap: 6px;
        flex-direction: row;
    }

    .sep-sharing-buttons-below .social-button {
        flex: 0 0 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 16px;
    }

    .sep-sharing-buttons-inline {
        gap: 6px;
        flex-direction: row;
    }

    .sep-sharing-buttons-inline .social-buttons {
        gap: 6px;
        flex-direction: row;
    }

    .sep-sharing-buttons-inline .social-button {
        flex: 0 0 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        width: 36px !important;
        height: 36px !important;
    }

    .sep-sharing-buttons-inline .social-button i {
        font-size: 16px;
        margin: 0 !important;
    }

    .sep-event-single-actions {
        padding: 20px;
    }

    .sep-action-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .sep-sharing-buttons {
        justify-content: center;
    }

    .sep-section-icon {
        font-size: 16px;
    }

    h4 .sep-section-icon {
        font-size: 18px;
    }

    /* Center right column content on mobile */
    .sep-event-right-column {
        padding: 10px 10px; /* Minimized */
        background: #fafafa !important;
        border-top: 4px solid #ffffff; 
        box-sizing: border-box !important;
    }

    .sep-event-right-column .weather-widget,
    .sep-event-right-column .event-map,
    .sep-event-right-column .event-directions {
        padding: 12px;
        margin: 0 0 10px 0;
        background: #ffffff;
        border: 1px solid #f0f0f0;
        border-radius: 12px;
        border-left: 6px solid var(--accent-color, #ff6b35) !important; /* Consistent strong accent */
        box-sizing: border-box !important;
    }

    .sep-event-right-column h4 {
        margin-bottom: 15px;
        font-size: 18px;
    }
}

/* Overrides to break out of theme containers on mobile for the single-event plugin */
@media (max-width: 768px) {
    .single-events .container,
    .single-events .event-single-wrapper,
    .single-events .entry-content,
    .single-events article.event-single,
    .single-events .event-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Hide page title and author info on single event pages */
.single-events .entry-title,
.single-events .page-title,
.single-events h1.entry-title,
.single-events h1.page-title,
.single-events .post-title,
.single-events .entry-header .entry-title {
    display: none !important;
}

.single-events .entry-meta,
.single-events .post-meta,
.single-events .byline,
.single-events .posted-on,
.single-events .author-info,
.single-events .entry-header .entry-meta {
    display: none !important;
}

/* Reduce gap between header and event content */
.single-events .entry-content {
    margin-top: 10px !important;
    padding-top: 0 !important;
}

.single-events .entry-header {
    margin-bottom: 10px !important;
}

.single-events .sep-event-display {
    margin-top: 0 !important;
}

/* Event Category Icons */
.sep-event-categories .sep-meta-label .fas {
    color: #666;
    margin-right: 6px;
}

.sep-category-link {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    transition: all 0.2s ease;
}

.sep-category-link:hover {
    background-color: #f5f5f5;
    color: #0073aa;
    text-decoration: none;
}

.sep-category-link .fas {
    color: inherit;
    margin-right: 4px;
    font-size: 0.9em;
}

/* Category display in event meta */
.sep-event-categories {
    margin: 8px 0;
}

.sep-event-categories .sep-meta-label {
    font-weight: 600;
    color: #333;
    margin-right: 8px;
}

/* Responsive category display */
@media (max-width: 768px) {
    .sep-category-link {
        margin-right: 4px;
        margin-bottom: 4px;
        font-size: 0.9em;
    }
}

/* ============================================
   EVENT LIST BLOCK - New Layouts (Nov 2025)
   Aktiv! im Sommer Edition
   ============================================ */

/* Main Container */
.sep-event-list-block {
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: var(--wp--style--block-gap, var(--sep-list-gap, 24px));
    --sep-columns: 3;
}

.sep-event-list-block.columns-1 {
    --sep-columns: 1;
}

.sep-event-list-block.columns-2 {
    --sep-columns: 2;
}

.sep-event-list-block.columns-3 {
    --sep-columns: 3;
}

.sep-event-list-block.columns-4 {
    --sep-columns: 4;
}

/* Cards Layout - Grid */
.sep-event-list-block.layout-cards {
    display: grid;
    gap: var(--wp--style--block-gap, var(--sep-list-gap, 24px));
    grid-template-columns: repeat(var(--sep-columns), minmax(0, 1fr));
}

/* Masonry Layout - Pinterest Style */
.sep-event-list-block.layout-masonry {
    column-count: var(--sep-columns);
    column-gap: var(--wp--style--block-gap, var(--sep-list-gap, 24px));
}

.sep-event-list-block.layout-masonry .sep-event-list-item {
    break-inside: avoid;
    margin-bottom: var(--wp--style--block-gap, var(--sep-list-gap, 24px));
}

/* List + Compact Layouts */
/* List & Compact Layouts */
.sep-event-list-block.layout-list,
.sep-event-list-block.layout-compact {
    display: flex;
    flex-direction: column;
    gap: var(--wp--style--block-gap, var(--sep-list-gap, 24px));
}

.sep-event-list-block.layout-list .sep-event-list-item:not(:last-child),
.sep-event-list-block.layout-compact .sep-event-list-item:not(:last-child) {
    margin-bottom: var(--wp--style--block-gap, var(--sep-list-gap, 24px)) !important;
}

.sep-event-list-item {
    width: 100%;
}

/* Shared Card Overrides */
.sep-event-card.context-list {
    height: auto !important;
    min-height: 0 !important;
    padding: clamp(24px, 3vw, 32px) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12) !important;
}

.sep-event-card.context-list .sep-card-content {
    gap: 18px !important;
}

.sep-event-card.context-list .sep-card-meta {
    gap: 12px !important;
}

.sep-event-card.context-list .sep-meta-item {
    background: rgba(255, 255, 255, 0.18) !important;
}

.sep-event-card.context-list.card-style-classic .sep-meta-item,
.sep-event-card.context-list.card-style-minimal .sep-meta-item {
    background: rgba(102, 126, 234, 0.12) !important;
}

/* Compact Variant */
.sep-event-list-block.layout-compact .sep-event-card.context-list {
    padding: 22px !important;
    gap: 16px !important;
}

.sep-event-list-block.layout-compact .sep-card-meta {
    flex-direction: row !important;
    flex-wrap: wrap;
}

.sep-event-list-block.layout-compact .sep-meta-item {
    flex: 1 1 45%;
    min-width: 220px;
}

/* Responsive Layouts */
@media (max-width: 1024px) {
    .sep-event-list-block.layout-cards.columns-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sep-event-list-block.layout-masonry.columns-4 {
        column-count: 3;
    }
}

@media (max-width: 768px) {

    .sep-event-list-block.layout-cards.columns-3,
    .sep-event-list-block.layout-cards.columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sep-event-list-block.layout-masonry.columns-3,
    .sep-event-list-block.layout-masonry.columns-4 {
        column-count: 2;
    }

    .sep-event-card.context-list {
        padding: 24px !important;
    }
}

@media (max-width: 480px) {
    .sep-event-list-block.layout-cards {
        grid-template-columns: 1fr;
    }

    .sep-event-list-block.layout-masonry {
        column-count: 1;
    }

    .sep-event-card.context-list {
        padding: 20px !important;
    }
}

/* Loading & Empty States */
.sep-event-list-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.sep-event-list-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #666;
}

.sep-event-list-empty .icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Weather Icons */
.weather-icon.sunny {
    color: #FFD700;
}

.weather-icon.cloudy {
    color: #95A5A6;
}

.weather-icon.rainy {
    color: #3498DB;
}

.weather-icon.snowy {
    color: #ECF0F1;
}

.weather-icon.stormy {
    color: #7F8C8D;
}

/* Season Badge - Summer Vibes! */
.sep-season-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(255, 165, 0, 0.3);
}

/* Accessibility */
.sep-event-card.context-list:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 4px;
}

/* Print Styles */
@media print {
    .sep-event-list-block {
        display: block !important;
    }

    .sep-event-card.context-list {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 20px;
    }
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .sep-hide-on-mobile {
        display: none !important;
    }
}
/* ============================================
   CALENDAR VIEW HEADERS (Unification)
   ============================================ */

.sep-view-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.sep-title-section {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.sep-header-spacer {
    /* Balance the switcher on the right */
    display: block;
}

.sep-view-controls {
    margin-left: auto;
    display: flex;
    gap: 4px;
}

.sep-date-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 0 !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    color: var(--accent-color, #ff6b35) !important;
    text-shadow: none !important;
    line-height: 1.2 !important;
}

.sep-date-label {
    text-align: center;
    min-width: 250px;
}

.sep-nav-prev, .sep-nav-next {
    cursor: pointer;
    font-size: 32px;
    color: #50575e;
    user-select: none;
    transition: all 0.2s ease;
    padding: 0 10px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sep-nav-prev:hover, .sep-nav-next:hover {
    color: var(--accent-color, #ff6b35);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .sep-view-header {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .sep-header-spacer {
        display: none;
    }
    
    .sep-title-section {
        width: 100%;
    }
    
    .sep-date-selector {
        font-size: 24px !important;
        gap: 15px;
        width: 100%;
        justify-content: center;
    }
    
    .sep-date-label {
        min-width: auto;
        flex: 1;
    }
    
    .sep-nav-prev, .sep-nav-next {
        font-size: 28px;
    }
}
