/**
 * Jolly Joker Events - Frontend Styles (PRO Version)
 * Modern, Professional Design with Full Image Support
 */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    --jje-primary: #e74c3c;
    --jje-primary-dark: #c0392b;
    --jje-secondary: #3498db;
    --jje-success: #27ae60;
    --jje-warning: #f39c12;
    --jje-dark: #2c3e50;
    --jje-light: #ecf0f1;
    --jje-white: #ffffff;
    --jje-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --jje-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --jje-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --jje-radius: 15px;
}

/* ========================================
   SINGLE EVENT HERO
   ======================================== */
.jje-single-hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-bottom: 50px;
}

.jje-hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
}

.jje-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jje-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
}

.jje-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 60px 0;
}

.jje-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.jje-hero-date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--jje-primary);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.jje-date-day {
    font-size: 36px;
    font-weight: 700;
    color: var(--jje-white);
    line-height: 1;
}

.jje-date-month {
    font-size: 14px;
    font-weight: 600;
    color: var(--jje-white);
    text-transform: uppercase;
    margin-top: 5px;
}

.jje-hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--jje-white);
    margin: 0 0 15px 0;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.jje-hero-artist {
    font-size: 24px;
    color: var(--jje-light);
    margin: 0 0 25px 0;
}

.jje-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 30px;
}

.jje-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--jje-white);
    font-size: 16px;
    font-weight: 500;
}

.jje-hero-cta .jje-btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--jje-primary);
    color: var(--jje-white);
    padding: 18px 35px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--jje-transition);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.jje-hero-cta .jje-btn-hero:hover {
    background: var(--jje-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.6);
}

/* ========================================
   SINGLE EVENT CONTENT
   ======================================== */
.jje-single-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.jje-content-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
}

.jje-content-main {
    min-width: 0;
}

.jje-event-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.jje-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jje-badge-genre {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--jje-white);
}

.jje-badge-status {
    background: var(--jje-light);
    color: var(--jje-dark);
}

.jje-status-upcoming {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: var(--jje-white);
}

.jje-status-past {
    background: #95a5a6;
    color: var(--jje-white);
}

.jje-status-ongoing {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: var(--jje-white);
}

.jje-event-description {
    background: var(--jje-white);
    padding: 40px;
    border-radius: var(--jje-radius);
    box-shadow: var(--jje-shadow);
    margin-bottom: 40px;
}

.jje-event-description h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--jje-dark);
    margin-top: 0;
    margin-bottom: 20px;
}

.jje-event-description p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.jje-event-details-cta {
    text-align: center;
    margin: 50px 0;
}

/* ========================================
   BUTTONS
   ======================================== */
.jje-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--jje-transition);
    border: none;
    cursor: pointer;
}

.jje-btn-primary {
    background: var(--jje-primary);
    color: var(--jje-white);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.jje-btn-primary:hover {
    background: var(--jje-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    color: var(--jje-white);
}

.jje-btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

/* ========================================
   SIDEBAR
   ======================================== */
.jje-content-sidebar {
    position: sticky;
    top: 30px;
    align-self: start;
}

.jje-sidebar-widget {
    background: var(--jje-white);
    padding: 30px;
    border-radius: var(--jje-radius);
    box-shadow: var(--jje-shadow);
    margin-bottom: 30px;
}

.jje-sidebar-widget h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--jje-dark);
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--jje-light);
}

.jje-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.jje-info-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: var(--jje-transition);
}

.jje-info-item:hover {
    background: #e9ecef;
}

.jje-info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jje-primary);
    border-radius: 8px;
    color: var(--jje-white);
}

.jje-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.jje-info-label {
    font-size: 12px;
    font-weight: 600;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jje-info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--jje-dark);
}

.jje-upcoming-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jje-upcoming-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--jje-light);
}

.jje-upcoming-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.jje-upcoming-item:first-child {
    padding-top: 0;
}

.jje-upcoming-thumb {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.jje-upcoming-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--jje-transition);
}

.jje-upcoming-thumb:hover img {
    transform: scale(1.1);
}

.jje-upcoming-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.jje-upcoming-date {
    font-size: 11px;
    font-weight: 700;
    color: var(--jje-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jje-upcoming-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--jje-dark);
    text-decoration: none;
    line-height: 1.4;
    transition: var(--jje-transition);
}

.jje-upcoming-link:hover {
    color: var(--jje-primary);
}

/* ========================================
   EVENT CARDS (GRID/LIST)
   ======================================== */
.jje-events-wrapper {
    margin: 40px 0;
}

.jje-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.jje-layout-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.jje-event-card {
    background: var(--jje-white);
    border-radius: var(--jje-radius);
    overflow: hidden;
    box-shadow: var(--jje-shadow);
    transition: var(--jje-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.jje-event-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--jje-shadow-hover);
}

/* EVENT IMAGE - CRITICAL FOR DISPLAY */
.jje-event-image {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.jje-event-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.jje-event-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--jje-transition);
}

.jje-event-card:hover .jje-event-image img {
    transform: scale(1.08);
}

.jje-event-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.jje-event-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.jje-event-title a {
    color: var(--jje-dark);
    text-decoration: none;
    transition: var(--jje-transition);
}

.jje-event-title a:hover {
    color: var(--jje-primary);
}

.jje-event-date,
.jje-event-venue {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

.jje-event-genre {
    margin-bottom: 20px;
}

.jje-genre-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--jje-white);
    font-size: 11px;
    border-radius: 15px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.jje-event-actions {
    margin-top: auto;
}

.jje-event-actions .jje-btn {
    width: 100%;
    text-align: center;
}

/* List Layout */
.jje-card-list {
    flex-direction: row;
    max-width: 900px;
}

.jje-card-list .jje-event-image {
    width: 350px;
    padding-top: 0;
    min-height: 250px;
}

/* ========================================
   FILTERS
   ======================================== */
.jje-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--jje-white);
    border-radius: var(--jje-radius);
    box-shadow: var(--jje-shadow);
    flex-wrap: wrap;
}

.jje-filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
}

.jje-filter-group label {
    font-weight: 700;
    font-size: 13px;
    color: var(--jje-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jje-filter {
    padding: 12px 16px;
    border: 2px solid var(--jje-light);
    border-radius: 8px;
    background: var(--jje-white);
    font-size: 15px;
    font-weight: 500;
    color: var(--jje-dark);
    cursor: pointer;
    transition: var(--jje-transition);
}

.jje-filter:hover,
.jje-filter:focus {
    border-color: var(--jje-primary);
    outline: none;
}

/* ========================================
   FEATURED EVENTS
   ======================================== */
.jje-featured-events {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .jje-content-container {
        grid-template-columns: 1fr;
    }
    
    .jje-content-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .jje-single-hero {
        height: 500px;
    }
    
    .jje-hero-title {
        font-size: 32px;
    }
    
    .jje-hero-artist {
        font-size: 18px;
    }
    
    .jje-layout-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .jje-card-list {
        flex-direction: column;
    }
    
    .jje-card-list .jje-event-image {
        width: 100%;
        padding-top: 60%;
    }
    
    .jje-filters {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .jje-single-hero {
        height: 400px;
    }
    
    .jje-hero-title {
        font-size: 24px;
    }
    
    .jje-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   WIDGET
   ======================================== */
.widget .jje-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget .jje-widget-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--jje-light);
}

.widget .jje-widget-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget .jje-widget-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.widget .jje-widget-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget .jje-widget-content {
    flex: 1;
}

.widget .jje-widget-date {
    font-size: 10px;
    color: var(--jje-primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.widget .jje-widget-link {
    color: var(--jje-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    display: block;
    transition: var(--jje-transition);
}

.widget .jje-widget-link:hover {
    color: var(--jje-primary);
}

/* ========================================
   NO EVENTS / LOADING
   ======================================== */
.jje-no-events {
    text-align: center;
    padding: 60px 20px;
    color: #95a5a6;
    font-size: 18px;
    font-weight: 500;
}

.jje-loading {
    text-align: center;
    padding: 60px;
    font-size: 18px;
    color: #95a5a6;
}
