/* Zen Live Stream — Frontend Styles (v5.3.0) */

.dla-live-wrap {
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.dla-live-title { font-size: 24px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.4px; }
.dla-live-desc { margin-top: 12px; color: #5c6268; line-height: 1.55; }

/* Player */
.dla-player-wrap { position: relative; background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; }
.dla-offline-wrap { width: 100%; height: 100%; }

/* Offline HTML iframe sandbox + scale-to-fit from 1920x1080 */
.dla-offline-frame-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0a1128;
}
.dla-offline-frame {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 1920px !important;
    height: 1080px !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    transform-origin: top left;
    transform: scale(0.5);
    pointer-events: none;
    background: transparent;
}

/* Unmute overlay */
.dla-unmute-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.4); cursor: pointer; z-index: 10; transition: opacity .3s; backdrop-filter: blur(2px); }
.dla-unmute-overlay.hidden { display: none; }
.dla-unmute-btn { background: rgba(0,0,0,0.85); color: #fff; padding: 12px 24px; border-radius: 30px; font-size: 16px; font-weight: 500; }

/* Viewer counter */
.dla-viewer-counter { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,0.7); color: #fff; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; z-index: 5; backdrop-filter: blur(8px); }
.dla-viewer-counter.hidden { display: none; }

/* ════════════════════════════════════════════════════════════
   ADMIN BAR — Zen design, glassmorphism, teal accents
   ════════════════════════════════════════════════════════════ */
.dla-admin-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    margin-top: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.78));
    border: 1px solid rgba(15,118,110,0.12);
    border-radius: 12px;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(15,118,110,0.05), inset 0 1px 0 rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
}

.dla-btn-small {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    font-family: 'Geist', sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    color: #1e2a32;
    background: rgba(15,118,110,0.05);
    border: 1px solid rgba(15,118,110,0.14);
    border-radius: 8px;
    cursor: pointer;
    transition: all 150ms ease;
    line-height: 1.2;
    letter-spacing: -0.1px;
}
.dla-btn-small:hover {
    background: rgba(15,118,110,0.10);
    border-color: rgba(15,118,110,0.22);
    transform: translateY(-1px);
}
.dla-btn-small:active { transform: translateY(0); }

.dla-btn-small.on {
    background: rgba(20,184,166,0.12);
    color: #0f766e;
    border-color: rgba(20,184,166,0.32);
    box-shadow: 0 1px 3px rgba(15,118,110,0.08);
}

.dla-btn-success {
    background: linear-gradient(180deg, #14b8a6, #0f766e);
    color: #fff;
    border-color: #0f766e;
    box-shadow: 0 2px 6px rgba(15,118,110,0.25), inset 0 1px 0 rgba(255,255,255,0.18);
}
.dla-btn-success:hover {
    background: linear-gradient(180deg, #5DCAA5, #14b8a6);
    border-color: #14b8a6;
    box-shadow: 0 4px 12px rgba(15,118,110,0.30), inset 0 1px 0 rgba(255,255,255,0.18);
}

.dla-btn-danger {
    background: linear-gradient(180deg, #f43f5e, #e11d48);
    color: #fff;
    border-color: #e11d48;
    box-shadow: 0 2px 6px rgba(225,29,72,0.25), inset 0 1px 0 rgba(255,255,255,0.18);
}
.dla-btn-danger:hover {
    background: linear-gradient(180deg, #fb7185, #f43f5e);
    border-color: #f43f5e;
    box-shadow: 0 4px 12px rgba(225,29,72,0.30), inset 0 1px 0 rgba(255,255,255,0.18);
}

/* REAL viewer badge — pulsing live indicator with tooltip */
.dla-real-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px 5px 9px;
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: 11.5px;
    font-weight: 500;
    color: #0f766e;
    background: rgba(20,184,166,0.08);
    border: 1px solid rgba(20,184,166,0.22);
    border-radius: 20px;
    cursor: help;
    position: relative;
    letter-spacing: 0.02em;
}
.dla-real-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #14b8a6;
    box-shadow: 0 0 0 0 rgba(20,184,166,0.6);
    animation: dla-pulse 2s ease-out infinite;
}
@keyframes dla-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(20,184,166,0.6); }
    70%  { box-shadow: 0 0 0 6px rgba(20,184,166,0); }
    100% { box-shadow: 0 0 0 0 rgba(20,184,166,0); }
}
.dla-real-badge #dla-real-num {
    font-weight: 600;
    color: #0a0f12;
}

/* Tooltip on REAL badge — explains what the count means */
.dla-real-badge:hover::after {
    content: 'Vizitatori unici care au pingat în ultimele 30s';
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: #0a0f12;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-family: 'Geist', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
.dla-real-badge:hover::before { animation-play-state: paused; }

/* Chat */
.dla-chat-wrap {
    margin-top: 16px;
    border: 1px solid rgba(15,118,110,0.12);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.dla-chat-header {
    padding: 11px 16px;
    background: linear-gradient(180deg, #1e2a32, #0a0f12);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: -0.1px;
}
.dla-chat-messages {
    height: 280px;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dla-chat-msg {
    background: rgba(15,118,110,0.04);
    border: 1px solid rgba(15,118,110,0.08);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.45;
}
.dla-chat-name { font-weight: 600; color: #0f766e; }
.dla-chat-input-wrap {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid rgba(15,118,110,0.10);
    background: rgba(15,118,110,0.02);
}
.dla-chat-input-wrap input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid rgba(15,118,110,0.18);
    border-radius: 8px;
    font-family: 'Geist', sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color 150ms, box-shadow 150ms;
}
.dla-chat-input-wrap input:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20,184,166,0.15);
}
.dla-chat-input-wrap button {
    appearance: none;
    padding: 9px 18px;
    background: linear-gradient(180deg, #14b8a6, #0f766e);
    color: #fff;
    border: 1px solid #0f766e;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Geist', sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: all 150ms;
}
.dla-chat-input-wrap button:hover {
    background: linear-gradient(180deg, #5DCAA5, #14b8a6);
}
