/* ========================================
   Events Manager Pro - Frontend Styles
   ======================================== */

/* Archive Header */
.emp-archive-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.emp-archive-header {
    text-align: center;
    margin-bottom: 50px;
}

.emp-archive-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 15px;
    color: var(--emp-heading-color, #667eea);
}

.emp-archive-description {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* View Toggle */
.emp-view-toggle {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
}

/* Content Header - Below View Toggle */
.emp-content-header {
    margin-bottom: 35px;
}

.emp-content-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--emp-primary-color, #667eea);
    display: inline-block;
    color: var(--emp-heading-color, #333);
}

.emp-view-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

.emp-view-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.emp-view-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #fff;
}

.emp-view-btn.active:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: #fff !important;
    border-color: transparent;
}

.emp-view-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Event Filter Tabs */
.emp-event-filter {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 35px 0;
    flex-wrap: wrap;
    background: #f8f9fa;
    padding: 6px;
    border-radius: 12px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.emp-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.emp-filter-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.emp-filter-btn.active {
    background: #667eea;
    color: #fff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* View Content */
.emp-view-content {
    display: none;
}

.emp-view-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Titles */
.emp-section {
    margin-bottom: 60px;
}

.emp-section-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--emp-primary-color, #667eea);
    display: inline-block;
    color: var(--emp-heading-color, #333);
}

/* Events Grid */
.emp-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.emp-shortcode-grid {
    margin: 30px 0;
}

/* Event Card */
.emp-event-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.emp-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.emp-event-card.past-event {
    opacity: 0.75;
}

.emp-event-card.past-event:hover {
    opacity: 1;
}

.emp-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Card Image - Full Width Top */
.emp-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.emp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.emp-card-link:hover .emp-card-image img {
    transform: scale(1.05);
}

.emp-placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: rgba(255, 255, 255, 0.3);
}

.emp-placeholder-image .dashicons {
    font-size: 60px;
    width: 60px;
    height: 60px;
}

/* Card Body */
.emp-card-body {
    padding: 14px 16px 16px;
    background: #fff;
}

/* Card Meta - Horizontal Layout */
.emp-card-meta {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* Card Date */
.emp-card-date {
    text-align: center;
    min-width: 40px;
    flex-shrink: 0;
}

.emp-card-month {
    display: block;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--emp-primary-color, #667eea);
    margin-bottom: 4px;
    font-weight: 600;
}

.emp-card-day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #111;
}

/* Card Main */
.emp-card-main {
    flex: 1;
}

.emp-card-time {
    font-size: 14px;
    color: #777;
    margin-bottom: 6px;
    font-weight: 500;
}

.emp-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin: 0;
    line-height: 1.4;
}

.emp-card-link:hover .emp-card-title {
    color: var(--emp-primary-color, #667eea);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .emp-events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .emp-events-grid {
        grid-template-columns: 1fr;
    }
    
    .emp-card-body {
        padding: 12px 14px 14px;
    }
    
    .emp-card-meta {
        gap: 10px;
    }
    
    .emp-card-image {
        height: 200px;
    }
    
    .emp-event-filter {
        gap: 8px;
    }
    
    .emp-filter-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .emp-view-toggle {
        gap: 10px;
    }
    
    .emp-view-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}

/* No Events Message */
.emp-no-events,
.emp-no-events-message {
    text-align: center;
    padding: 80px 20px;
    background: #f9f9f9;
    border-radius: 16px;
    margin: 40px 0;
}

.emp-no-events .emp-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
}

.emp-no-events h3 {
    font-size: 24px;
    margin: 0 0 10px;
    color: #333;
}

.emp-no-events p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Past Events Grid */
.emp-events-grid.past-events {
    margin-top: 30px;
}

/* Events Slider/Banner */
.emp-events-slider {
    position: relative;
    margin: 40px 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.emp-slider-wrapper {
    position: relative;
    height: 500px;
}

.emp-slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.emp-slider-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.emp-banner-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.emp-banner-image {
    width: 100%;
    height: 100%;
}

.emp-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.emp-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.emp-banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px;
    color: #fff;
    z-index: 2;
}

.emp-banner-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.emp-banner-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 15px;
    line-height: 1.2;
}

.emp-banner-description {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 25px;
    max-width: 600px;
    opacity: 0.95;
}

.emp-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.emp-banner-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.emp-banner-cta .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.emp-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.emp-slider-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.emp-slider-prev {
    left: 30px;
}

.emp-slider-next {
    right: 30px;
}

.emp-slider-nav .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.emp-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.emp-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.emp-slider-dot:hover,
.emp-slider-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Upcoming Events List */
.emp-upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.emp-upcoming-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.emp-upcoming-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.emp-upcoming-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: #fff;
    padding: 10px;
}

/* Fix for red bar issue on cards without time */
.emp-event-card,
.emp-card-link,
.emp-card-body {
    border-bottom: none !important;
    border-color: transparent !important;
}

.emp-event-card.emp-no-time,
.emp-event-card.emp-no-time .emp-card-body,
.emp-event-card.emp-no-time .emp-card-link {
    border-bottom: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); /* Ensure shadow is preserved but no border */
}

.emp-date-day {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.emp-date-month {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.emp-upcoming-details {
    flex: 1;
}

.emp-upcoming-details h4 {
    margin: 0 0 8px;
    font-size: 16px;
}

.emp-upcoming-details h4 a {
    color: #333;
    text-decoration: none;
}

.emp-upcoming-details h4 a:hover {
    color: #667eea;
}

.emp-upcoming-time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.emp-upcoming-time .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #667eea;
}

/* Single Event Page */
.emp-single-event-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.emp-event-header {
    margin-bottom: 50px;
}

.emp-event-featured-image {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.emp-event-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.emp-event-header-content {
    max-width: 900px;
}

.emp-event-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 30px;
    line-height: 1.2;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.emp-event-quick-info {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 16px;
    border-left: 5px solid #667eea;
}

.emp-info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.emp-info-item .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #667eea;
    flex-shrink: 0;
    margin-top: 2px;
}

.emp-info-item strong {
    display: block;
    margin-bottom: 3px;
    color: #333;
}

.emp-event-short-description {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    border: 2px solid #f0f0f0;
}

.emp-event-content {
    max-width: 900px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.emp-event-content h2,
.emp-event-content h3,
.emp-event-content h4 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #333;
}

.emp-event-content p {
    margin-bottom: 20px;
}

.emp-event-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .emp-archive-title {
        font-size: 32px;
    }
    
    .emp-events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .emp-section-title {
        font-size: 24px;
    }
    
    .emp-view-toggle {
        flex-direction: column;
    }
    
    .emp-view-btn {
        width: 100%;
        justify-content: center;
    }
    
    .emp-slider-wrapper {
        height: 400px;
    }
    
    .emp-banner-content {
        padding: 30px;
    }
    
    .emp-banner-title {
        font-size: 28px;
    }
    
    .emp-banner-description {
        font-size: 16px;
    }
    
    .emp-slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .emp-slider-prev {
        left: 15px;
    }
    
    .emp-slider-next {
        right: 15px;
    }
    
    .emp-event-title {
        font-size: 32px;
    }
    
    .emp-event-quick-info {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
}
