/* Room Page Specific Styles */

/* ========== PREMIUM ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(229, 9, 20, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(229, 9, 20, 0.8), 0 0 30px rgba(229, 9, 20, 0.6);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

:root {
    --sidebar-width: 350px;
    --control-bar-width: 70px;
}

/* Layout & Container */
.room-container {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #050505;
    background-image: radial-gradient(circle at 10% 20%, rgba(229, 9, 20, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 107, 53, 0.05) 0%, transparent 20%);
    position: relative;
    overflow: hidden;
}

/* Entry Screen */
.entry-card {
    background: rgba(22, 22, 22, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3.5rem;
    width: 100%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 40px 80px -12px rgba(0, 0, 0, 0.8);
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.entry-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    font-family: var(--font-heading, sans-serif);
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.entry-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

/* Avatar Selection */
.avatar-grid {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.avatar-option {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid transparent;
    padding: 3px;
    background: rgba(255, 255, 255, 0.03);
}

.avatar-option img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #1a1a1a;
}

.avatar-option:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.avatar-option.selected {
    border-color: var(--accent-red);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
    transform: translateY(-5px) scale(1.05);
    background: transparent;
}

/* Room Interface Grid */
.room-interface {
    display: none;
    width: 100vw;
    height: 100vh;
    grid-template-columns: var(--control-bar-width) 1fr var(--sidebar-width);
    grid-template-rows: 70px 1fr;
    background: #000;
}

/* Header */
.room-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 10, 10, 0.95);
    z-index: 50;
}

.room-title-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.room-name-display {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

/* Left Control Bar */
.left-controls {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    background: #0a0a0a;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    gap: 1.5rem;
}

.control-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: scale(1.1);
}

.control-btn.active {
    background: rgba(229, 9, 20, 0.15);
    color: var(--accent-red);
    border-color: rgba(229, 9, 20, 0.3);
}

/* Main Content */
.room-main {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: #000;
    overflow-y: auto;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: #080808;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    padding: 1rem;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.5);
}

.service-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: grayscale(0.2);
    transition: all 0.3s ease;
}

.service-card:hover .service-logo {
    filter: grayscale(0);
    transform: scale(1.1);
}

.service-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Sidebar */
.room-sidebar {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    background: #0c0c0c;
    display: flex;
    flex-direction: column;
}

.sidebar-tabs {
    display: flex;
    padding: 0.5rem;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tab-btn {
    flex: 1;
    padding: 0.8rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.chat-area {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-behavior: smooth;
}

/* Chat Messages */
.message {
    display: flex;
    gap: 0.8rem;
    max-width: 100%;
}

.my-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #222;
}

.message-content {
    max-width: 80%;
    display: flex;
    flex-direction: column;
}

.my-message .message-content {
    align-items: flex-end;
}

.message-sender {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.message-text {
    background: rgba(255, 255, 255, 0.06);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border-top-left-radius: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #eee;
}

.my-message .message-text {
    background: var(--accent-red);
    color: #fff;
    border-radius: 12px;
    border-top-right-radius: 0;
}

.chat-input-area {
    padding: 1.5rem;
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    gap: 0.8rem;
}

/* Modals */
.modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: fadeIn 0.5s ease !important;
    cursor: default !important;
    pointer-events: all !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.service-modal-card {
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 3rem !important;
    border-radius: 24px !important;
    max-width: 450px !important;
    text-align: center !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative !important;
    z-index: 12001 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.service-modal-card::before {
    content: '';
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(229, 9, 20, 0.5), transparent) !important;
    animation: shimmer 3s ease-in-out infinite !important;
}

.service-modal-card h3 {
    color: #fff !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1) !important;
}

.service-modal-card p {
    color: #b0b0b0 !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 2.5rem !important;
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.service-icon-wrapper {
    font-size: 4rem !important;
    margin-bottom: 2rem !important;
    filter: drop-shadow(0 0 15px rgba(229, 9, 20, 0.3)) !important;
}

.modal-actions {
    display: flex !important;
    justify-content: center !important;
    gap: 1rem !important;
    margin-top: 2rem !important;
}

.modal-actions .btn-primary {
    background: linear-gradient(135deg, #E50914 0%, #ff4b4b 100%) !important;
    color: white !important;
    border: none !important;
    padding: 1rem 2rem !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    box-shadow: 0 10px 25px rgba(229, 9, 20, 0.4) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.modal-actions .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 35px rgba(229, 9, 20, 0.6) !important;
    background: linear-gradient(135deg, #ff4b4b 0%, #E50914 100%) !important;
}

@keyframes shimmer {
    0% {
        opacity: 0.3;
        transform: translateX(-100%);
    }

    50% {
        opacity: 1;
        transform: translateX(100%);
    }

    100% {
        opacity: 0.3;
        transform: translateX(100%);
    }
}

/* Premium Modal Styles */
.premium-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    border: 2px solid transparent !important;
    background-clip: padding-box !important;
    position: relative !important;
    overflow: hidden !important;
}

.premium-modal::before {
    content: '';
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(45deg, #E50914, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7, #dfe6e9, #74b9ff) !important;
    background-size: 400% 400% !important;
    animation: gradientShift 8s ease infinite !important;
    opacity: 0.3 !important;
    z-index: -1 !important;
}

.premium-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 2rem !important;
}

.premium-icon {
    font-size: 3rem !important;
    filter: drop-shadow(0 0 20px rgba(229, 9, 20, 0.5)) !important;
}

.premium-badge {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: linear-gradient(135deg, #ffd700, #ffed4e) !important;
    color: #000 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
    font-weight: 800 !important;
    font-size: 0.8rem !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4) !important;
    animation: pulse 2s infinite !important;
}

.premium-content {
    margin-bottom: 2rem !important;
}

.premium-title {
    font-size: 2rem !important;
    font-weight: 900 !important;
    margin-bottom: 1rem !important;
    background: linear-gradient(135deg, #fff, #e0e0e0) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3) !important;
}

.premium-subtitle {
    color: #b0b0b0 !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
}

.premium-features {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
    margin-bottom: 2rem !important;
}

.feature-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    padding: 1rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

.feature-item i {
    color: #E50914 !important;
    font-size: 1.2rem !important;
}

.feature-item span {
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}

.premium-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

.premium-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.8rem !important;
    padding: 1.2rem 2rem !important;
    border: none !important;
    border-radius: 16px !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.premium-btn.primary {
    background: linear-gradient(135deg, #E50914, #ff4b4b, #ff6b6b) !important;
    color: #fff !important;
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.4) !important;
}

.premium-btn.primary:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 15px 40px rgba(229, 9, 20, 0.6) !important;
}

.premium-btn.primary::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
    transition: left 0.5s ease !important;
}

.premium-btn.primary:hover::before {
    left: 100% !important;
}

.premium-note {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    color: #888 !important;
    font-size: 0.85rem !important;
}

.premium-note i {
    color: #4ecdc4 !important;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50% !important;
    }

    50% {
        background-position: 100% 50% !important;
    }

    100% {
        background-position: 0% 50% !important;
    }
}

.service-icon-large {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.youtube-anim {
    color: #FF0000;
    animation: pulse 2s infinite;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Settings Modal */
.settings-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.settings-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.settings-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2rem;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.settings-modal.open .settings-card {
    transform: translateY(0);
}

/* Animations */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.white-theme p {
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.white-theme .modal-actions {
    flex-direction: column;
    /* Stack buttons */
    gap: 0.8rem;
    margin-top: 0;
}

.white-theme .btn-primary {
    background: linear-gradient(135deg, #E50914 0%, #ff4b4b 100%);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(229, 9, 20, 0.4);
    border: none;
    padding: 1rem;
    width: 100%;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
}

.white-theme .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(229, 9, 20, 0.5);
}

.white-theme .btn-outline {
    background: #f5f5f7;
    border: none;
    color: #666;
    padding: 1rem;
    width: 100%;
    border-radius: 12px;
    font-weight: 600;
}

.white-theme .btn-outline:hover {
    background: #eee;
    color: #333;
}

@media (max-width: 900px) {
    .room-interface {
        grid-template-columns: 1fr;
        grid-template-rows: 60px auto 1fr;
    }

    .left-controls {
        display: none;
    }

    .room-sidebar {
        display: none;
    }

    /* Simplified mobile for now */
}

/* Site Lockdown Overlay */
.site-lockdown {
    position: fixed;
    inset: 0;
    z-index: 9999;
    /* Below modal-overlay (12000) */
    background: rgba(0, 0, 0, 0.6);
    /* Darker for more visibility */
    cursor: not-allowed;
    backdrop-filter: grayscale(100%) blur(4px);
}

/* Beta Warning Modal */
.beta-modal-card {
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    padding: 3rem;
    border-radius: 24px;
    max-width: 550px;
    text-align: center;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: scaleIn 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Blur Effect for Restricted Room */
.blur-content {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

.beta-badge {
    background: rgba(229, 9, 20, 0.15);
    color: #E50914;
    border: 1px solid rgba(229, 9, 20, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.beta-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.beta-text {
    color: #888;
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.beta-close-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: #444;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
    background: transparent;
    border: none;
    padding: 0.5rem;
}

.beta-close-icon:hover {
    color: #fff;
}


/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}