/* Events Page Specific Styles */

.events-container {
    padding: 2rem 0;
}

.row {
    margin: 0 -1rem;
}

.col-lg-6, .col-md-12, .col-sm-12 {
    padding: 0 1rem;
}

.event-section {
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out;
}

.event-section:nth-child(2) {
    animation-delay: 0.2s;
}

.event-section:nth-child(3) {
    animation-delay: 0.4s;
}

.event-section-title {
    color: var(--ancient-gold);
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    position: relative;
}

.event-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ancient-gold), transparent);
}

.event-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
    border: 2px solid #d1d5db;
    border-radius: 20px;
    padding: 0;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    height: 450px;
    display: flex;
    flex-direction: column;
    min-width: 260px;
    max-width: 300px;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 12px 36px rgba(0, 0, 0, 0.08);
    border-color: #667eea;
}

.event-card:hover .event-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.event-card:hover .event-title h4 {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.event-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 1.5rem 1rem 1rem 1rem;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.event-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.event-title:hover::before {
    left: 100%;
}

.event-title h4 {
    color: #ffffff;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.3;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.event-time {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    flex-shrink: 0;
}

.time-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 50%, #ff3838 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    min-width: 100px;
}

.time-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.5);
}

.event-description {
    flex: 1;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
}

.event-description p {
    color: #495057;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    padding: 1.2rem 1.5rem;
    border-top: 2px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    gap: 1rem;
}

.event-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #adb5bd, transparent);
}

.event-description {
    color: #e0e0e0;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
    text-align: justify;
}

.event-type {
    display: flex;
    align-items: center;
}

.event-type-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    min-width: 70px;
}

.event-rewards {
    display: flex;
    align-items: center;
}

.reward-badge {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 50%, #74b9ff 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.4), 0 2px 8px rgba(0, 206, 201, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    min-width: 90px;
}

.reward-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #20c997, #28a745);
}

.reward-special {
    background: linear-gradient(135deg, #6f42c1, #8e44ad) !important;
    color: white !important;
}

.reward-special:hover {
    background: linear-gradient(135deg, #8e44ad, #6f42c1) !important;
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.4) !important;
}

.event-type-hourly {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(0, 184, 148, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.event-type-daily {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(253, 203, 110, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.event-type-weekly {
    background: linear-gradient(135deg, #e84393 0%, #fd79a8 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(232, 67, 147, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.timezone-info {
    background: rgba(34, 40, 49, 0.9);
    border: 1px solid var(--ancient-gold);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: center;
    animation: fadeInDown 0.6s ease-out;
}

.timezone-info h4 {
    color: var(--ancient-gold);
    margin-bottom: 0.5rem;
    font-family: 'Cinzel', serif;
}

.timezone-info p {
    color: #e0e0e0;
    margin: 0;
    font-size: 0.95rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .event-card {
        height: 410px;
        min-width: 240px;
        max-width: 280px;
    }
    
    .event-title h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .event-card {
        height: 390px;
        min-width: 220px;
        max-width: 260px;
    }
    
    .event-section-title {
        font-size: 1.5rem;
    }
    
    .event-title h4 {
        font-size: 1rem;
    }
    
    .event-description p {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
    }
    
    .event-footer {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem 1rem;
        align-items: stretch;
    }
    
    .event-rewards, .event-type {
        justify-content: center;
    }
    
    .event-time {
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 576px) {
    .events-container {
        padding: 1rem 0;
    }
    
    .event-card {
        height: 370px;
        min-width: 200px;
        max-width: 240px;
        margin-bottom: 1rem;
    }
    
    .event-title {
        padding: 1rem 0.8rem 0.8rem 0.8rem;
    }
    
    .event-description {
        padding: 0 1rem;
    }
    
    .event-footer {
        padding: 1rem 1rem;
    }
    
    .reward-badge, .event-type-badge, .time-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        min-width: auto;
    }
}

/* Loading animation for event cards */
.event-card {
    animation: slideInFromBottom 0.5s ease-out;
}

.event-card:nth-child(1) { animation-delay: 0.1s; }
.event-card:nth-child(2) { animation-delay: 0.2s; }
.event-card:nth-child(3) { animation-delay: 0.3s; }
.event-card:nth-child(4) { animation-delay: 0.4s; }
.event-card:nth-child(5) { animation-delay: 0.5s; }
.event-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Live Event Animations */
@keyframes skyBlueBurn {
    0% {
        box-shadow: 
            0 0 0 0 rgba(135, 206, 250, 0.8),
            0 0 0 0 rgba(135, 206, 250, 0.6),
            0 0 0 0 rgba(135, 206, 250, 0.4),
            inset 0 0 20px rgba(135, 206, 250, 0.3);
        border-color: #87cefa;
        background: #ffffff !important;
    }
    25% {
        box-shadow: 
            0 0 0 8px rgba(135, 206, 250, 0.6),
            0 0 0 16px rgba(135, 206, 250, 0.4),
            0 0 0 24px rgba(135, 206, 250, 0.2),
            inset 0 0 30px rgba(135, 206, 250, 0.5);
        border-color: #00bfff;
        background: #ffffff !important;
    }
    50% {
        box-shadow: 
            0 0 0 16px rgba(135, 206, 250, 0.4),
            0 0 0 32px rgba(135, 206, 250, 0.2),
            0 0 0 48px rgba(135, 206, 250, 0.1),
            inset 0 0 40px rgba(135, 206, 250, 0.7);
        border-color: #1e90ff;
        background: #ffffff !important;
    }
    75% {
        box-shadow: 
            0 0 0 8px rgba(135, 206, 250, 0.6),
            0 0 0 16px rgba(135, 206, 250, 0.4),
            0 0 0 24px rgba(135, 206, 250, 0.2),
            inset 0 0 30px rgba(135, 206, 250, 0.5);
        border-color: #00bfff;
        background: #ffffff !important;
    }
    100% {
        box-shadow: 
            0 0 0 0 rgba(135, 206, 250, 0.8),
            0 0 0 0 rgba(135, 206, 250, 0.6),
            0 0 0 0 rgba(135, 206, 250, 0.4),
            inset 0 0 20px rgba(135, 206, 250, 0.3);
        border-color: #87cefa;
        background: #ffffff !important;
    }
}

@keyframes liveGlow {
    0%, 100% {
        background: linear-gradient(135deg, #87cefa, #00bfff);
        color: white;
        text-shadow: 0 0 10px rgba(135, 206, 250, 0.8);
    }
    50% {
        background: linear-gradient(135deg, #00bfff, #1e90ff);
        color: white;
        text-shadow: 0 0 15px rgba(135, 206, 250, 1);
    }
}

/* Live Event Styles */
.live-event {
    position: relative;
    border-color: #87cefa !important;
    background: #ffffff !important;
    animation: skyBlueBurn 3s infinite ease-in-out;
    overflow: visible;
}

.live-event .event-time-badge span {
    animation: liveGlow 2s infinite;
    font-weight: bold;
}

.live-event .event-title h4 {
    color: #87cefa !important;
    text-shadow: 0 0 8px rgba(135, 206, 250, 0.6);
}

.live-event .event-description p {
    color: #495057;
    text-shadow: 0 0 5px rgba(135, 206, 250, 0.3);
}

.live-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #dc3545, #e83e8c);
    border-radius: 50%;
    animation: livePulse 2s infinite;
    z-index: 100;
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    border: 2px solid #ffffff;
}

.live-indicator::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc3545, #e83e8c);
    animation: liveRipple 2s infinite;
    z-index: -1;
}

@keyframes livePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 0 8px rgba(220, 53, 69, 0.4);
    }
}

@keyframes liveRipple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

 
 