/**
 * Public styles for YouOnTV Reels Plugin
 */

.youontv-reels-container {
    width: 100%;
    max-width: 500px;
    height: 100vh;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: #000;
}

.youontv-reels-swiper {
    width: 100%;
    height: 100%;
}

.youontv-reel-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.youontv-reel-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.youontv-reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.youontv-reel-info {
    position: absolute;
    bottom: 80px;
    left: 20px;
    right: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.youontv-reel-info h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: bold;
}

.youontv-reel-description {
    font-size: 14px;
    line-height: 1.4;
    max-height: 100px;
    overflow-y: auto;
}

/* Context Stack Indicator */
.youontv-context-stack-indicator {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 15;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* Context Stack Swiper */
.youontv-context-stack-swiper {
    width: 100%;
    height: 100%;
}

.youontv-context-stack-swiper .swiper-pagination {
    bottom: 20px;
}

.youontv-context-stack-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.youontv-context-stack-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Story Branching Overlay */
.youontv-story-branch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.youontv-story-branch-overlay.active {
    display: flex;
}

.youontv-story-branch-prompt {
    text-align: center;
    color: #fff;
    padding: 20px;
}

.youontv-story-branch-prompt h3 {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: bold;
}

.youontv-story-branch-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.youontv-story-branch-option {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 12px;
    min-width: 150px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.youontv-story-branch-option:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.youontv-story-branch-option .arrow {
    font-size: 32px;
    font-weight: bold;
}

.youontv-story-branch-option .label {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.8;
}

.youontv-story-branch-option .title {
    font-size: 16px;
    font-weight: bold;
}

.youontv-branch-left {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.youontv-branch-right {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Loading Indicator */
.youontv-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 18px;
    z-index: 200;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .youontv-reels-container {
        max-width: 100%;
    }
    
    .youontv-reel-info h3 {
        font-size: 20px;
    }
    
    .youontv-story-branch-option {
        min-width: 120px;
        padding: 15px;
    }
}
