/**
 * Screen Stage CSS
 * Стили экрана Сцена (видеозвонок)
 */

/* ===== Stage Content ===== */
.screen-content--stage {
    padding: 0;
    overflow: hidden;
}

/* ===== Empty Stage ===== */
.stage-empty {
    text-align: center;
    padding: 40px;
    position: relative;
}

.stage-empty::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(
        circle,
        rgba(212, 175, 55, 0.15) 0%,
        rgba(212, 175, 55, 0.05) 50%,
        transparent 70%
    );
    border-radius: 50%;
    animation: stagePulse 3s ease-in-out infinite;
    z-index: 0;
}

@keyframes stagePulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.stage-empty-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
    animation: iconFloat 4s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

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

.stage-empty-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    text-align: center;
    line-height: 1.4;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
    max-width: 500px;
    font-weight: 400;
}

.stage-empty-actions {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.stage-empty-actions > button {
    flex: 1;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.stage-empty-actions > button.btn--primary {
    background: #d4a853;
    color: #000;
}

.stage-empty-actions > button.btn--danger {
    background: #b54040;
    color: #fff;
}

.stage-empty-text {
    color: #ffffff;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    animation: textFade 2s ease-in-out infinite;
}

@keyframes textFade {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* ===== Scheduled Stage ===== */
.stage-scheduled {
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.stage-scheduled-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.stage-scheduled-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

.stage-scheduled-datetime {
    font-size: 1.3rem;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.stage-scheduled-countdown {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
}

.stage-scheduled-partner {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    display: inline-block;
    min-width: 200px;
}

.stage-scheduled-partner .partner-paired {
    color: var(--text-light);
}

.stage-scheduled-partner .partner-waiting {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.stage-scheduled-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.stage-scheduled-list {
    margin-top: 16px;
    text-align: left;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.scheduled-list-title {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
}

.scheduled-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.scheduled-list-item .item-time {
    color: var(--text-light);
}

.scheduled-list-item .item-status {
    font-size: 0.75rem;
}

.scheduled-list-item .item-status.paired {
    color: var(--accent-gold);
}

.scheduled-list-item .item-status.waiting {
    color: rgba(255, 255, 255, 0.4);
}

/* ===== Announcement Stage ===== */
.stage-announcement {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.announcement-content {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    max-height: 80vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .announcement-content {
        padding: 24px 20px;
    }

    .announcement-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .announcement-partner {
        padding: 14px;
        gap: 14px;
        margin-bottom: 16px;
    }

    .partner-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .announcement-play {
        padding: 12px;
        margin-bottom: 20px;
    }
}

.announcement-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.announcement-partner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.05);
    padding: 14px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.partner-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.partner-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.partner-details {
    flex: 1;
    text-align: left;
}

.partner-name-display {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.partner-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.announcement-play {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.play-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.play-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-light);
}

.announcement-hint {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(212, 175, 55, 0.1);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    text-align: left;
}

.hint-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.hint-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.announcement-timer {
    text-align: center;
    margin: 20px 0;
}

.announcement-timer .timer-hint {
    font-size: 1.2rem;
    color: #ffffff;
    line-height: 1.8;
}

.announcement-timer .timer-countdown {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4CAF50;
    font-family: monospace;
    padding: 0 4px;
}

.announcement-actions {
    display: flex;
    gap: 12px;
}

.announcement-actions .btn {
    flex: 1;
}

/* ===== Preview Videos ===== */
.preview-videos {
    display: none;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-videos.show {
    display: flex;
}

.preview-video-item {
    flex: 1;
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #000;
}

.preview-video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
}

/* ===== Active Stage ===== */
.stage-active {
    width: 100%;
    height: 100%;
    position: relative;
}

.stage-video-partner {
    width: 100%;
    height: 100%;
    background: #000;
    position: relative;
}

.stage-video-partner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-name {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 0.9rem;
}

.stage-video-self {
    position: absolute;
    bottom: 100px;
    right: 20px;
    width: 120px;
    height: 160px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    cursor: grab;
    z-index: 10;
}

.stage-video-self video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

/* ===== Text Overlay ===== */
.stage-text-overlay {
    position: absolute;
    bottom: 80px;
    left: 20px;
    right: 140px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    max-height: 150px;
    overflow-y: auto;
    display: none;
}

.stage-text-overlay.visible {
    display: block;
}

.text-content {
    font-family: var(--font-display);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* ===== Stage Controls ===== */
.stage-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    z-index: 20;
}

.control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.control-btn.muted {
    background: rgba(255, 0, 0, 0.3);
}

.control-btn--danger {
    background: #c0392b;
}

.control-btn--danger:hover {
    background: #e74c3c;
}

/* ===== Viewers ===== */
.stage-viewers {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}
