/**
 * Event Listings Pro - Frontend Styles
 * v1.0.22 - Unified button styling & consistent layout
 */

/* =====================================================
   CSS Variables (set via inline styles from PHP)
   ===================================================== */
:root {
    --elp-date-color: #c41e3a;
    --elp-button-color: #c41e3a;
}

/* =====================================================
   Main Container
   ===================================================== */
.elp-event-listings {
    margin: 0 auto 40px;
    font-family: inherit;
}

/* =====================================================
   Month Navigation Header
   ===================================================== */
.elp-month-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.elp-month-header {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    max-width: 600px;
}

.elp-header-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ccc 20%, #ccc 80%, transparent);
}

.elp-month-heading {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #333;
    white-space: nowrap;
}

.elp-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 24px;
    color: #666;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s;
}

.elp-nav-arrow:hover {
    color: #333;
    border-color: #999;
    background: #f5f5f5;
}

/* =====================================================
   Events List
   ===================================================== */
.elp-events-list {
    display: flex;
    flex-direction: column;
}

.elp-event-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.elp-event-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 30px 20px;
    border-bottom: 1px solid #e5e5e5;
    transition: background 0.2s;
}

.elp-event-item:first-child {
    border-top: 1px solid #e5e5e5;
}

/* =====================================================
   Date Block
   ===================================================== */
.elp-event-date-block {
    flex-shrink: 0;
    width: 100px;
    text-align: center;
    line-height: 1.2;
}

.elp-date-day {
    display: block;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.elp-date-month {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #666;
    margin-top: 4px;
}

.elp-date-weekday {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* Multi-day event date block */
.elp-event-date-block.elp-multi-day .elp-date-day {
    font-size: 32px;
    letter-spacing: -1px;
}

/* =====================================================
   Event Content
   ===================================================== */
.elp-event-content {
    flex: 1;
    min-width: 0;
}

.elp-event-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.elp-event-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #222;
}

.elp-event-title a {
    color: inherit;
    text-decoration: none;
}

/* =====================================================
   Badges
   ===================================================== */
.elp-badge {
    display: inline-block;
    padding: 5px 12px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 3px;
    white-space: nowrap;
}

/* =====================================================
   Event Meta
   ===================================================== */
.elp-event-meta {
    font-size: 15px;
    line-height: 1.6;
}

.elp-event-location {
    margin-bottom: 2px;
}

.elp-event-time {
    /* Color inherited from parent .elp-event-meta */
}

/* =====================================================
   Unified Button Styles - Solid rounded style
   ===================================================== */
.elp-event-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.elp-more-info-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    transition: filter 0.2s;
}

.elp-more-info-btn:hover {
    filter: brightness(1.1);
}

.elp-jump-btn {
    display: inline-block;
    padding: 12px 30px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    transition: filter 0.2s;
}

.elp-jump-btn:hover {
    filter: brightness(1.1);
}

.elp-ticket-button {
    display: inline-block;
    padding: 12px 28px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    transition: filter 0.2s;
}

.elp-ticket-button:hover {
    filter: brightness(1.1);
}

.elp-btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    transition: filter 0.2s;
    border: none;
}

.elp-btn-primary {
    color: #fff !important;
}

.elp-btn-primary:hover {
    filter: brightness(1.1);
}

/* =====================================================
   No Events / Coming Up Next Preview
   ===================================================== */
.elp-no-events-wrap {
    text-align: center;
}

.elp-no-events {
    text-align: center;
    padding: 40px 20px 20px;
    color: #888;
    font-size: 16px;
    margin: 0;
}

.elp-next-preview {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.elp-next-preview-heading {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #666;
    margin: 0 0 20px 0;
}

.elp-next-preview .elp-event-item {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 20px;
}

.elp-next-preview .elp-event-item:first-child {
    border-top: 1px solid #e5e5e5;
}

.elp-jump-to-month {
    text-align: center;
}

/* =====================================================
   All Events View - Month Headers
   ===================================================== */
.elp-all-events .elp-month-header-row {
    margin: 50px 0 10px 0;
    padding: 0;
}

.elp-all-events .elp-month-header-row:first-child {
    margin-top: 0;
}

.elp-all-events .elp-month-header-row h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #333;
}

/* =====================================================
   Single Event Page
   ===================================================== */
.elp-single-event {
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 600px;
}

.elp-single-event-header {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.elp-single-date-block {
    flex-shrink: 0;
    width: 100px;
    text-align: center;
    line-height: 1.2;
}

.elp-single-date-block .elp-date-day {
    display: block;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.elp-single-date-block .elp-date-month {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #666;
    margin-top: 4px;
}

.elp-single-date-block .elp-date-weekday {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 2px;
}

.elp-single-title-wrap {
    flex: 1;
}

.elp-single-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.elp-single-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #222;
    flex: 1;
}

.elp-back-button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #666;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s;
}

.elp-back-button:hover {
    color: #333;
    border-color: #999;
    background: #f5f5f5;
}

.elp-back-arrow {
    font-size: 16px;
}

.elp-single-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.elp-single-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 50px;
    align-items: start;
}

.elp-single-left-column {
    /* Contains image and details */
}

.elp-single-right-column {
    /* Contains description */
}

.elp-single-image {
    margin-bottom: 30px;
}

.elp-single-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.elp-single-details {
    padding: 0;
}

.elp-detail-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.elp-detail-label {
    flex: 0 0 100px;
    font-weight: 600;
}

.elp-detail-value {
    flex: 1;
}

.elp-single-action {
    margin-top: 30px;
}

.elp-single-action .elp-ticket-button {
    padding: 15px 40px;
    font-size: 16px;
}

.elp-single-description {
    line-height: 1.8;
}

.elp-single-description p {
    margin-bottom: 1em;
}

/* =====================================================
   Next Event Widget
   ===================================================== */
.elp-next-event-widget {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.elp-next-event-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.elp-next-event-row {
    display: flex;
    align-items: center;
}

.elp-next-event-label {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.4;
    align-self: stretch;
}

.elp-next-event-date-block {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    line-height: 1.2;
    padding: 20px 10px;
}

.elp-next-event-date-block .elp-date-day {
    display: block;
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
}

.elp-next-event-date-block .elp-date-month {
    display: block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: #666;
    margin-top: 3px;
    text-transform: uppercase;
}

.elp-next-event-date-block .elp-date-weekday {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 2px;
}

.elp-next-event-info {
    flex: 1;
    min-width: 0;
    padding: 20px 25px;
}

.elp-next-event-widget .elp-next-event-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #222;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.elp-next-event-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.elp-meta-item {
    display: inline-flex;
    align-items: center;
}

.elp-meta-item:not(:last-child)::after {
    content: "·";
    margin-left: 10px;
    color: #999;
}

.elp-countdown {
    flex-shrink: 0;
    display: flex;
    gap: 15px;
    padding: 20px 15px;
}

.elp-countdown-item {
    text-align: center;
}

.elp-countdown-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.elp-countdown-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 1px;
}

.elp-next-event-arrow {
    flex-shrink: 0;
    padding: 20px 20px 20px 5px;
    opacity: 0.4;
    transition: opacity 0.2s, transform 0.2s;
}

.elp-next-event-link:hover .elp-next-event-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.elp-next-event-footer {
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
}

/* =====================================================
   Responsive - Tablet
   ===================================================== */
@media (max-width: 768px) {
    .elp-month-navigation {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .elp-month-header {
        flex-basis: 100%;
        order: -1;
        justify-content: center;
        margin-bottom: 5px;
    }
    
    .elp-event-item {
        flex-direction: column;
        gap: 20px;
        padding: 25px 15px;
    }
    
    .elp-event-date-block {
        width: 100%;
        display: flex;
        align-items: baseline;
        gap: 10px;
        text-align: left;
    }
    
    .elp-date-day {
        font-size: 36px;
    }
    
    .elp-date-month,
    .elp-date-weekday {
        display: inline;
        margin: 0;
    }
    
    .elp-event-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .elp-event-action {
        width: 100%;
    }
    
    .elp-more-info-btn {
        width: 100%;
        text-align: center;
        display: block;
    }
    
    .elp-next-preview {
        padding: 0 10px 30px;
    }
    
    .elp-jump-btn {
        display: block;
        width: 100%;
    }
    
    .elp-single-event-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .elp-single-date-block {
        width: 100%;
        display: flex;
        align-items: baseline;
        gap: 10px;
        text-align: left;
    }
    
    .elp-single-date-block .elp-date-day {
        font-size: 36px;
    }
    
    .elp-single-date-block .elp-date-month,
    .elp-single-date-block .elp-date-weekday {
        display: inline;
        margin: 0;
    }
    
    .elp-single-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .elp-back-button {
        align-self: flex-start;
    }
    
    .elp-single-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .elp-single-action .elp-ticket-button {
        width: 100%;
        text-align: center;
        display: block;
    }
    
    .elp-next-event-row {
        flex-wrap: wrap;
    }
    
    .elp-next-event-label {
        flex-direction: row;
        gap: 6px;
        width: 100%;
        padding: 12px 20px;
    }
    
    .elp-countdown {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .elp-countdown-number {
        font-size: 24px;
    }
    
    .elp-next-event-date-block {
        padding: 15px 10px 15px 20px;
    }
    
    .elp-next-event-date-block .elp-date-day {
        font-size: 32px;
    }
    
    .elp-next-event-info {
        flex: 1;
        padding: 15px 20px 15px 10px;
    }
    
    .elp-next-event-arrow {
        display: none;
    }
    
    .elp-next-event-footer {
        padding: 20px;
    }
    
    .elp-next-event-footer .elp-btn,
    .elp-next-event-footer .elp-ticket-button {
        display: block;
        width: 100%;
    }
}

/* =====================================================
   Responsive - Mobile
   ===================================================== */
@media (max-width: 480px) {
    .elp-event-item {
        padding: 20px 12px;
    }
    
    .elp-date-day {
        font-size: 30px;
    }
    
    .elp-event-title {
        font-size: 16px;
    }
    
    .elp-countdown {
        gap: 10px;
    }
    
    .elp-countdown-number {
        font-size: 20px;
    }
    
    .elp-single-title {
        font-size: 22px;
    }
    
    .elp-detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .elp-detail-label {
        flex: none;
    }
}
