/**
 * Live Page Styles
 * Specific styles for the Twitch live streaming page
 */

/* Live Badge (appears when stream is active) */
.live-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInSlide 0.5s ease-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated red dot for live indicator */
.live-dot {
    width: 10px;
    height: 10px;
    background: #ff0000;
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Live text */
.live-text {
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Live uptime info */
.live-uptime {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 500;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* Twitch Container Positioning */
#twitch-container {
    position: relative;
}

/* Offline Message Improvements */
.offline-message {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(20, 20, 35, 0.95) 100%);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.offline-content {
    text-align: center;
    padding: 40px;
    max-width: 500px;
}

.offline-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 24px;
    opacity: 0.6;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.offline-content h3 {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 16px;
    font-weight: 600;
}

.offline-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    line-height: 1.6;
}

#offline-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

#next-live-date {
    font-size: 15px;
    color: rgba(59, 130, 246, 0.9);
    font-weight: 500;
    margin-bottom: 24px;
}

/* Offline Schedule Section */
.offline-schedule {
    margin: 24px 0 32px 0;
    width: 100%;
}

.offline-schedule-intro {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
}

.offline-schedule-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.offline-schedule-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.offline-schedule-box:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.offline-schedule-day {
    font-size: 18px;
    font-weight: 700;
    color: rgba(59, 130, 246, 1);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offline-schedule-time {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    line-height: 1.4;
}

/* Button Styles for Offline Message */
.btn-youtube {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #ff0000;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-youtube:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .live-badge {
        top: 10px;
        left: 10px;
        padding: 6px 12px;
        border-radius: 20px;
    }

    .live-text {
        font-size: 12px;
    }

    .live-uptime {
        display: none; /* Hide uptime on mobile for space */
    }

    .offline-message {
        min-height: 300px;
    }

    .offline-content {
        padding: 24px;
    }

    .offline-icon {
        font-size: 48px;
    }

    .offline-content h3 {
        font-size: 22px;
    }

    .offline-content p {
        font-size: 14px;
    }

    /* Responsive offline schedule */
    .offline-schedule-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 300px;
    }

    .offline-schedule-box {
        padding: 14px;
    }

    .offline-schedule-day {
        font-size: 16px;
    }

    .offline-schedule-time {
        font-size: 13px;
    }
}

/* Loading State */
.twitch-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 12px;
}

.twitch-loading::after {
    content: "Chargement du stream...";
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}
