/* ======================== */
/* STREAMPLAN WIDGET - 2025 DESIGN */
/* ======================== */

.compact-streamplan {
    background: #212529;
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 1px solid #343a40;
    border-left: 3px solid #6441A4;
}

.streamplan-header {
    background: #343a40;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid #495057;
}

.streamplan-title h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #f8f9fa;
    margin-bottom: 0.25rem;
}

.streamplan-dates {
    font-size: 0.9rem;
    color: #adb5bd;
}

.streamplan-actions {
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .streamplan-actions {
        margin-top: 0;
    }
}

/* Stream Widget Container - Horizontal Scroll Layout */
.stream-widget-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 15px 0;
}

.stream-widget-scroll {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 5px 15px;
}

.stream-widget-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.stream-widget-cards {
    display: flex;
    gap: 15px;
    cursor: grab;
    min-width: min-content;
}

.stream-widget-cards:active {
    cursor: grabbing;
}

/* Stream widget card */
.stream-widget-card {
    flex: 0 0 180px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #2c3034;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stream-widget-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Stream time block */
.stream-time-block {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(100, 65, 164, 0.85);
    padding: 4px 8px;
    border-bottom-right-radius: 8px;
    z-index: 10;
    color: white;
    font-weight: bold;
    text-align: center;
}

.stream-day {
    font-size: 0.7rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
}

.stream-time {
    font-size: 0.95rem;
    line-height: 1;
}

/* Stream category image */
.stream-category-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.stream-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.stream-widget-card:hover .stream-category-image img {
    transform: scale(1.05);
}

.twitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
                rgba(100, 65, 164, 0.3), 
                rgba(100, 65, 164, 0.7));
    z-index: 1;
}

.game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 25px 10px 10px;
    color: white;
    z-index: 2;
}

.game-name {
    font-weight: bold;
    font-size: 0.9rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

/* Stream footer with streamer info */
.stream-widget-footer {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.streamer-info {
    font-size: 0.9rem;
    font-weight: 500;
    color: #f8f9fa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 85%;
}

.streamer-info .user-link {
    color: #f8f9fa;
    text-decoration: none;
    transition: color 0.2s;
}

.streamer-info .user-link:hover {
    color: #9147FF;
}

/* Live indicator */
.live-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 3;
    animation: pulse-live 1.5s infinite;
    display: flex;
    align-items: center;
    gap: 3px;
}

.live-indicator .pulse-dot {
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    display: inline-block;
}

@keyframes pulse-live {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Scroll indicators */
.scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(100, 65, 164, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    transition: opacity 0.3s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-indicator.left {
    left: 10px;
}

.scroll-indicator.right {
    right: 10px;
}

.scroll-indicator:hover {
    background: rgba(100, 65, 164, 0.95);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .stream-widget-card {
        flex: 0 0 150px;
    }
    
    .stream-category-image {
        height: 200px;
    }
}