/**
 * AUDICOM TELECOM - Página Reunião
 * CSS independente
 */

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variáveis de cores */
:root {
    --azul-conexao: #00249C;
    --azul-estrutura: #081535;
    --cinza-operacional: #8F99A8;
    --grafite-infra: #2A2F36;
    --branco-tecnico: #F4F6F9;
}

/* Body - sem scroll */
html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--azul-estrutura);
    font-family: 'Inter', sans-serif;
    cursor: none;
}

/* Canvas de fundo - Fiber */
#fiber-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Cursor customizado */
.custom-cursor {
    position: fixed;
    width: 32px;
    height: 32px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%) rotate(-15deg);
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.custom-cursor.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-15deg) scale(0.5);
}

.custom-cursor img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Elementos clicáveis mostram cursor padrão */
a, button, [contenteditable="true"], .top-brand-client {
    cursor: pointer;
}

/* Título Sala de Reunião */
.titulo-sala {
    position: fixed;
    top: 90%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.0rem, 5vw, 3rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    text-align: center;
    padding: 0.5em 1.5em;
    
    /* Gradiente animado */
    background: linear-gradient(
        90deg,
        rgba(143, 153, 168, 0.5) 0%,
        rgba(244, 246, 249, 0.9) 50%,
        rgba(143, 153, 168, 0.5) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 12s ease-in-out infinite;
    
    /* Borda oval neon - simplificado */
    border: 2px solid rgba(0, 36, 156, 0.6);
    border-radius: 100px;
    box-shadow: 
        0 0 15px rgba(0, 36, 156, 0.35),
        inset 0 0 10px rgba(0, 36, 156, 0.1);
    contain: layout style;
}

/* Marca superior com cliente */
.top-brand {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 25;
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    padding: 20px 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0, 36, 156, 0.8), rgba(8, 21, 53, 0.95));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    color: var(--branco-tecnico);
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: opacity 0.3s ease, transform 0.3s ease;
    contain: layout style;
}

.top-brand.hidden {
    opacity: 0;
    transform: translateX(-20px);
    pointer-events: none;
}

.top-brand-main {
    font-size: 1.1rem;
    font-weight: 700;
}

.top-brand-plus {
    font-size: 1.1rem;
    opacity: 0.7;
}

.top-brand-client {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 10px;
    background: rgba(0, 36, 156, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.top-brand-client:hover {
    background: rgba(0, 36, 156, 0.7);
    box-shadow: 0 0 12px rgba(0, 71, 255, 0.35);
}

.top-brand-client:focus {
    outline: 2px solid rgba(0, 71, 255, 0.8);
    outline-offset: 2px;
    background: rgba(0, 36, 156, 0.85);
}

.top-brand-hide {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: rgba(244, 246, 249, 0.15);
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.top-brand:hover .top-brand-hide {
    opacity: 1;
}

.top-brand-hide:hover {
    color: rgba(244, 246, 249, 0.6);
}

.top-brand-show {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 24;
    background: rgba(8, 21, 53, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 8px 12px;
    color: rgba(244, 246, 249, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}

.top-brand-show:hover {
    background: rgba(8, 21, 53, 0.6);
    color: rgba(244, 246, 249, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.top-brand-show svg {
    transform: rotate(-90deg);
}

/* Painel de hora e temperatura */
.info-panel {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 30;
    padding: 20px 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0, 36, 156, 0.8), rgba(8, 21, 53, 0.95));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    color: var(--branco-tecnico);
    min-width: 250px;
    contain: layout style;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    letter-spacing: 0.03em;
}

.info-label {
    color: rgba(244, 246, 249, 0.85);
    font-weight: 500;
}

.info-value {
    font-weight: 700;
    font-size: 1.35rem;
}

.info-time {
    margin-top: 6px;
    text-align: right;
    font-size: 2.3rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* Animação de pulso do neon */
.titulo-sala::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid rgba(0, 71, 255, 0.4);
    border-radius: 100px;
    animation: neonPulse 5s ease-in-out infinite;
    pointer-events: none;
    will-change: opacity;
}

@keyframes neonPulse {
    0%, 100% {
        opacity: 0.4;
        box-shadow: 0 0 15px rgba(0, 71, 255, 0.25);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 25px rgba(0, 71, 255, 0.45);
    }
}

@keyframes textShine {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 200% center;
    }
}

/* Container do Orb */
#orb-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1100px;
    height: 1100px;
    z-index: 1;
    pointer-events: auto;
}

/* Logo Flutuante */
.logo-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    animation: floatLogo 8s ease-in-out infinite;
    animation-fill-mode: both;
    will-change: transform;
}

.logo-image {
    width: 1200px;
    max-width: 90vw;
    height: auto;
    opacity: 0.25;
    filter: blur(0px);
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(
        circle,
        rgba(0, 36, 156, 0.35) 0%,
        rgba(0, 36, 156, 0.15) 35%,
        transparent 65%
    );
    border-radius: 50%;
    z-index: -1;
    animation: glowPulse 6s ease-in-out infinite;
    will-change: opacity;
}

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

/* Animação de flutuação */
@keyframes floatLogo {
    0%, 100% {
        transform: translate(-50%, -50%);
    }
    50% {
        transform: translate(-50%, calc(-50% - 20px));
    }
}

/* Título Central */
.titulo-central {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.titulo-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background: radial-gradient(
        ellipse,
        rgba(8, 21, 53, 0.8) 0%,
        rgba(8, 21, 53, 0.5) 45%,
        transparent 70%
    );
    filter: blur(30px);
    z-index: -1;
    pointer-events: none;
    will-change: transform;
}

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

.titulo-telecom {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.55em;
    color: var(--branco-tecnico);
    display: block;
    align-self: flex-end;
    margin-right: -0.00em;
    margin-top: -0.1em;
}

/* Assinatura discreta */
.signature {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 5;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    color: rgba(143, 153, 168, 0.25);
    letter-spacing: 0.05em;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

/* Responsivo */
@media (max-width: 768px) {
    #orb-container {
        width: 600px;
        height: 600px;
    }
    
    .logo-image {
        width: 90vw;
        opacity: 0.25;
    }
    
    .logo-glow {
        width: 400px;
        height: 400px;
    }
    
    .titulo-central {
        font-size: clamp(2rem, 14vw, 4rem);
    }

    .top-brand {
        top: 16px;
        left: 16px;
        gap: 8px;
        padding: 14px 18px;
    }

    .top-brand-main,
    .top-brand-plus,
    .top-brand-client {
        font-size: 1rem;
    }

    .top-brand-client {
        padding: 3px 8px;
    }

    .top-brand-show {
        top: 16px;
        left: 16px;
    }

    .info-panel {
        top: 16px;
        right: 16px;
        padding: 14px 18px;
        min-width: 210px;
    }

    .info-time {
        font-size: 1.9rem;
    }
}

@media (max-width: 480px) {
    #orb-container {
        width: 400px;
        height: 400px;
    }
    
    .titulo-central {
        font-size: clamp(1.8rem, 14vw, 3rem);
    }

    .info-panel {
        top: 12px;
        right: 12px;
        padding: 12px 16px;
    }

    .top-brand {
        top: 12px;
        left: 12px;
        padding: 12px 16px;
        gap: 6px;
    }

    .top-brand-main,
    .top-brand-plus,
    .top-brand-client {
        font-size: 0.95rem;
    }

    .top-brand-client {
        padding: 3px 7px;
    }

    .top-brand-show {
        top: 12px;
        left: 12px;
    }
}
