/* Live Events Sidebar Styles */

.events-sidebar {
    background: linear-gradient(145deg, #0d1b2a 0%, #1b263b 50%, #0d1b2a 100%);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.events-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.15), rgba(0, 212, 255, 0.1));
}

.events-header h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
}

.pulse-badge {
    animation: pulse-glow 1.5s ease-in-out infinite;
    font-size: 0.7rem;
    padding: 4px 10px;
}

@keyframes pulse-glow {
    0%, 100% { 
        opacity: 1; 
        box-shadow: 0 0 5px rgba(220, 53, 69, 0.5); 
    }
    50% { 
        opacity: 0.7; 
        box-shadow: 0 0 15px rgba(220, 53, 69, 0.8); 
    }
}

/* Search Box */
.events-search {
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.events-search .input-group-text {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-right: none;
    color: rgba(255,255,255,0.5);
}

.events-search .form-control {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-left: none;
    color: #fff;
    font-size: 0.85rem;
}

.events-search .form-control::placeholder {
    color: rgba(255,255,255,0.4);
}

.events-search .form-control:focus {
    background: rgba(255,255,255,0.08);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: none;
}

.events-list {
    overflow-y: auto;
    flex: 1;
    padding: 12px;
}

.event-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.event-card:hover {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.9) 0%, rgba(26, 32, 44, 0.95) 100%);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.event-card.is-live {
    border-left: 4px solid #dc3545;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.event-card.is-live:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(26, 32, 44, 0.95) 100%);
}

.event-time {
    font-size: 0.8rem;
    color: #00d4ff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-time .live-dot {
    width: 10px;
    height: 10px;
    background: #dc3545;
    border-radius: 50%;
    animation: blink 1s infinite;
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.6);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.event-league {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.event-match {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 8px 0;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

.event-channels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.event-channel-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(0, 212, 255, 0.2) 100%);
    color: #a5b4fc;
    border-radius: 12px;
    white-space: nowrap;
    border: 1px solid rgba(102, 126, 234, 0.3);
    font-weight: 500;
    transition: all 0.2s ease;
}

.event-channel-badge:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5) 0%, rgba(0, 212, 255, 0.3) 100%);
    border-color: rgba(102, 126, 234, 0.5);
    cursor: pointer;
}

.event-channel-expand {
    font-size: 0.7rem;
    padding: 4px 10px;
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border-radius: 12px;
    border: 1px solid rgba(255, 193, 7, 0.3);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.event-channel-expand:hover {
    background: rgba(255, 193, 7, 0.3);
    border-color: rgba(255, 193, 7, 0.5);
}

.event-channels-hidden {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255,255,255,0.1);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.events-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,0.5);
}

.events-empty i {
    font-size: 52px;
    opacity: 0.3;
}

.events-empty p {
    font-size: 0.9rem;
}

/* No results state */
.no-results {
    text-align: center;
    padding: 30px 15px;
    color: rgba(255,255,255,0.5);
}

.no-results i {
    font-size: 36px;
    opacity: 0.4;
    margin-bottom: 10px;
    display: block;
}

/* Mobile: Horizontal scroll layout (default) */
@media (max-width: 991px) {
    .events-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 20px;
    }
    
    .events-list {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding: 12px 15px;
    }
    
    .event-card {
        min-width: 280px;
        flex-shrink: 0;
        margin-bottom: 0;
    }
    
    .events-search {
        padding: 10px 12px;
    }
}

/* Mobile Events Section - Above Search */
.mobile-events-section {
    margin-bottom: 15px;
}

.mobile-events-section .events-sidebar {
    position: relative;
    top: 0;
    max-height: none;
}

/* Mobile: Vertical layout when activated (stays until refresh) */
@media (max-width: 991px) {
    body.events-vertical-mode .mobile-events-section .events-list {
        display: flex;
        flex-direction: column;
        overflow-x: visible;
        overflow-y: auto;
        max-height: 50vh;
    }
    
    body.events-vertical-mode .mobile-events-section .event-card {
        min-width: 100%;
        width: 100%;
    }
}
