/**
 * AUDICOM TELECOM - Página Reunião
 * Design profissional para TV em sala de reunião
 */

/* ==========================================
   RESET & VARIÁVEIS
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azul-conexao: #00249C;
    --azul-estrutura: #081535;
    --azul-claro: #0d2b6b;
    --cinza-operacional: #8F99A8;
    --grafite-infra: #2A2F36;
    --branco-tecnico: #F4F6F9;
    --branco-soft: rgba(244, 246, 249, 0.9);
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--azul-estrutura) 0%, #0a1a3a 100%);
    font-family: 'Inter', sans-serif;
    color: var(--branco-tecnico);
}

/* ==========================================
   FUNDOS ANIMADOS
   ========================================== */
#fiber-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
}

#orb-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(400px, 50vw, 700px);
    height: clamp(400px, 50vw, 700px);
    z-index: 3;
    pointer-events: none;
}

/* ==========================================
   HEADER BAR (TOPO)
   ========================================== */
.header-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: rgba(8, 21, 53, 0.3);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-left,
.header-center,
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-center {
    flex: 1;
    justify-content: center;
}

.header-right {
    flex: 1;
    justify-content: flex-end;
}

/* Status da Sala */
.room-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.room-status.available {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.room-status.busy {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.status-text {
    white-space: nowrap;
}

.header-client {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--branco-soft);
    padding: 6px 16px;
    background: rgba(0, 36, 156, 0.3);
    border: 1px solid rgba(0, 36, 156, 0.4);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.header-client:hover {
    background: rgba(0, 36, 156, 0.5);
    border-color: rgba(0, 36, 156, 0.6);
}

.header-client:focus {
    border-color: var(--azul-conexao);
    box-shadow: 0 0 0 2px rgba(0, 36, 156, 0.3);
}

.header-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--cinza-operacional);
    letter-spacing: 0.02em;
}

.header-temp,
.header-time {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
}

.header-temp {
    font-size: 0.95rem;
    color: var(--cinza-operacional);
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.header-time {
    font-size: 1.6rem;
    color: var(--branco-tecnico);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* ==========================================
   MAIN CONTENT (CENTRO) - Estilo igual ao site principal
   ========================================== */
.main-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Logo grande de fundo */
.hero-bg-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    animation: floatLogo 6s infinite;
    will-change: transform;
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translate(-50%, -50%);
    }

    50% {
        transform: translate(-50%, calc(-50% - 15px));
    }
}

.hero-bg-image {
    width: clamp(400px, 50vw, 700px);
    height: auto;
    opacity: 0.25;
    filter: blur(0px);
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(350px, 45vw, 650px);
    height: clamp(350px, 45vw, 650px);
    background: radial-gradient(circle,
            rgba(0, 36, 156, 0.4) 0%,
            rgba(0, 36, 156, 0.2) 30%,
            transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

/* Título centralizado exatamente na logo */
.hero-title-centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-align: center;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Backdrop blur atrás do título */
.titulo-backdrop {
    position: absolute;
    inset: -30px -50px;
    background: radial-gradient(ellipse at center,
            rgba(8, 21, 53, 0.8) 0%,
            rgba(8, 21, 53, 0.5) 50%,
            transparent 80%);
    filter: blur(30px);
    z-index: -1;
    pointer-events: none;
}

.title-line {
    display: block;
}

.title-audicom {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--branco-tecnico);
    -webkit-text-stroke: 0;
    text-shadow: none;
}

.title-telecom {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.38em;
    margin-top: -0.1em;
    align-self: flex-end;
    color: var(--branco-tecnico);
    letter-spacing: 0.15em;
}

/* Tagline animada */
.tagline-animated {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 400;
    color: var(--cinza-operacional);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.8;
    white-space: nowrap;
    transition: opacity 0.5s ease;
}

/* ==========================================
   WI-FI QR CODE
   ========================================== */
.wifi-qr {
    position: fixed;
    bottom: 90px;
    left: 30px;
    z-index: 50;
    padding: 12px 18px;
    background: rgba(8, 21, 53, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wifi-qr:hover {
    background: rgba(8, 21, 53, 0.9);
    border-color: rgba(0, 50, 214, 0.4);
    transform: translateY(-2px);
}

.wifi-qr-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wifi-qr-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}

.wifi-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wifi-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--branco-tecnico);
    letter-spacing: 0.03em;
    opacity: 0.9;
}

.wifi-ssid {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--branco-tecnico);
}

.wifi-pass {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--cinza-operacional);
    letter-spacing: 0.02em;
}

/* ==========================================
   FOOTER CLIENTS (RODAPÉ) - Barra estilo header
   ========================================== */
.footer-clients {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 70px;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 0 40px;
    background: rgba(8, 21, 53, 0.3);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.clients-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--branco-tecnico);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 5;
    padding: 8px 16px;
    background: rgba(0, 50, 214, 0.2);
    border: 1px solid rgba(0, 50, 214, 0.3);
    border-radius: 6px;
}

.clients-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right,
            transparent 0%,
            black 10%,
            black 90%,
            transparent 100%);
    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            black 10%,
            black 90%,
            transparent 100%);
}

.clients-track {
    display: flex;
    align-items: center;
    gap: 50px;
    animation: scrollClients 80s linear infinite;
    width: max-content;
    padding: 0 20px;
}

@keyframes scrollClients {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.client-logo {
    height: 32px;
    width: auto;
    opacity: 1;
    filter: brightness(1.1);
    flex-shrink: 0;
}

/* ==========================================
   SIGNATURE
   ========================================== */
.signature {
    position: fixed;
    bottom: 10px;
    right: 20px;
    z-index: 50;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    color: rgba(143, 153, 168, 0.4);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.signature:hover {
    color: rgba(143, 153, 168, 0.8);
}

/* ==========================================
   BOTÃO DE DOWNLOAD
   ========================================== */
.download-btn {
    position: fixed;
    bottom: 80px;
    right: 24px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 14px;
    background: rgba(0, 36, 156, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 80, 214, 0.4);
    border-radius: 50px;
    color: var(--branco-tecnico);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 20px rgba(0, 36, 156, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 50, 214, 0.4) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.download-btn:hover::before {
    opacity: 1;
}

.download-btn:hover {
    background: rgba(0, 36, 156, 0.45);
    border-color: rgba(0, 100, 255, 0.6);
    box-shadow:
        0 8px 30px rgba(0, 36, 156, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    transform: translateY(-2px);
}

.download-btn:active {
    transform: translateY(0px) scale(0.98);
}

.download-btn.downloading {
    pointer-events: none;
    border-color: rgba(0, 200, 120, 0.5);
    background: rgba(0, 80, 40, 0.3);
    animation: downloadPulse 1.5s ease-in-out infinite;
}

.download-btn.done {
    border-color: rgba(34, 197, 94, 0.6);
    background: rgba(0, 80, 40, 0.3);
    animation: none;
}

@keyframes downloadPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 180, 100, 0.2); }
    50% { box-shadow: 0 4px 30px rgba(0, 180, 100, 0.5); }
}

.download-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.download-btn:hover .download-btn-icon {
    transform: translateY(2px);
}

.download-btn.downloading .download-btn-icon svg {
    animation: bounceDown 0.8s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

.download-btn-label {
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.download-btn-progress {
    font-size: 0.7rem;
    color: rgba(143, 153, 168, 0.8);
    font-family: 'Space Grotesk', sans-serif;
    min-width: 0;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* ==========================================
   CONFIG MENU
   ========================================== */
.config-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 1000;
    width: 320px;
    background: rgba(8, 21, 53, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(0, 36, 156, 0.3);
    border-radius: 16px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.config-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.config-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.config-menu-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--branco-tecnico);
    letter-spacing: 0.02em;
}

.config-menu-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 6px;
    color: var(--cinza-operacional);
    cursor: pointer;
    transition: all 0.2s ease;
}

.config-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--branco-tecnico);
}

.config-menu-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.config-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.config-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.config-option input[type="checkbox"] {
    display: none;
}

.config-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(143, 153, 168, 0.4);
    border-radius: 5px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.config-option input[type="checkbox"]:checked+.config-checkbox {
    background: var(--azul-conexao);
    border-color: var(--azul-conexao);
}

.config-option input[type="checkbox"]:checked+.config-checkbox::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 9px;
    border: solid var(--branco-tecnico);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.config-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--branco-soft);
}

.config-menu-footer {
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.config-hint {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: var(--cinza-operacional);
    opacity: 0.6;
    letter-spacing: 0.05em;
}

/* ==========================================
   ESTADOS OCULTOS
   ========================================== */
.hidden {
    display: none !important;
}

.header-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    display: flex !important;
    transition: all 0.5s ease;
    pointer-events: none;
}

.footer-clients.hidden {
    transform: translateY(100%);
    opacity: 0;
    display: block !important;
    transition: all 0.5s ease;
    pointer-events: none;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1200px) {
    .header-bar {
        padding: 0 30px;
    }

    .clients-track {
        gap: 50px;
    }

    .client-logo {
        height: 35px;
    }
}

@media (max-width: 768px) {
    .header-bar {
        height: 50px;
        padding: 0 20px;
    }

    .header-date {
        display: none;
    }

    .header-time {
        font-size: 1.3rem;
    }

    .main-logo {
        width: clamp(140px, 35vw, 200px);
    }

    .brand-name {
        flex-direction: column;
        gap: 6px;
    }

    .brand-telecom {
        font-size: 0.5em;
    }

    .clients-track {
        gap: 40px;
    }

    .client-logo {
        height: 30px;
    }

    .config-menu {
        width: 280px;
    }
}

/* ==========================================
   CURSOR AUTO-HIDE
   ========================================== */
body.cursor-hidden,
body.cursor-hidden * {
    cursor: none !important;
}

/* Elementos interativos sempre mostram cursor */
body.cursor-hidden a,
body.cursor-hidden button,
body.cursor-hidden [contenteditable="true"],
body.cursor-hidden .header-client,
body.cursor-hidden .config-option {
    cursor: pointer !important;
}