/* =============================================================
   SISTEMA VISUAL EGRÉGORA SOCIAL - v2.7 MASTER (RESTORED v1.0)
   Design: Futurista, Glassmorphism & Neon Link
   Caminho: /var/www/katedraltech.com/egregora.css
   ============================================================= */

/* 1. LAYOUT PRINCIPAL */
.egr-main-grid {
    display: grid;
    grid-template-columns: 1fr 380px; /* Feed Largo e Chat Lateral */
    gap: 30px;
    margin-top: 20px;
    height: calc(100vh - 250px);
}

/* =============================================================
   SISTEMA DE SLIDE EGRÉGORA v7.2 - ESCALA PROPORCIONAL MASTER
   ============================================================= */

.egr-ads-carousel {
    width: 100%;
    height: 260px; /* AUMENTADO (+30%): De 200px para 260px */
    background: #000;
    border: 2px solid var(--neon-blue);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 35px rgba(88, 101, 242, 0.4);
    margin-bottom: 30px;
}

.egr-carousel-track {
    display: flex;
    width: 100%; 
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.egr-ad-slot {
    flex: 0 0 100%; 
    width: 100%;
    height: 100%;
    position: relative;
    background: #050506;
}

/* GIF DE FUNDO - PRIORIDADE VERTICAL */
.egr-ad-gif-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; 
    height: 100%;
    object-fit: cover; /* Garante que o fundo seja totalmente preenchido */
    object-position: center;
    z-index: 1;
}

/* GRADIENTE DE PROTEÇÃO (REFORÇADO PARA 260PX) */
.egr-ad-protection-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, transparent 40%, transparent 60%, rgba(0,0,0,0.9) 100%);
    z-index: 2;
}

/* INTERFACE OVERLAY */
.egr-ad-overlay-ui {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    box-sizing: border-box;
    pointer-events: none;
}

.egr-ad-content {
    max-width: 380px; /* Aumentado para equilibrar com a nova altura */
    pointer-events: auto;
}

.egr-ad-content h2 {
    color: var(--neon-blue);
    font-weight: 900;
    font-size: 26px; /* Texto mais imponente */
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 0 15px #000;
}

.egr-ad-content p {
    color: #fff;
    font-size: 14px;
    margin: 8px 0 20px 0;
    font-weight: 600;
    text-shadow: 0 0 10px #000;
}

/* ÁREA DO ÍCONE DO SERVIDOR (DIREITA) */
.egr-server-profile-zone {
    width: 160px; /* Aumentado proporcionalmente */
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.egr-server-gif {
    width: 140px; /* Ícone agora é gigante e detalhado */
    height: 140px;
    object-fit: cover;
    border-radius: 25px;
    border: 4px solid var(--neon-blue);
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.8);
}

/*_________________________________________________________________________

/* 3. FEED SOCIAL E POSTS (ESTILO BIGTECH - VERSÃO FINAL INTEGRADA) */
.egr-feed-container {
    overflow-y: auto;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* --- BLOCO DE CRIAÇÃO (RECONSTRUÇÃO) --- */
.egr-create-post {
    background: rgba(255, 255, 255, 0.02); 
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 5px;
    backdrop-filter: blur(15px);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.3);
    animation: fadeInPost 0.5s ease-out; /* Mantendo a animação de entrada */
}

/* CAIXA DE TEXTO LARGA E FUTURISTA */
.egr-create-post textarea {
    width: 100% !important; /* Força a largura total */
    min-height: 100px;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px;
    color: #ffffff;
    padding: 18px;
    font-size: 15px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 15px;
    box-sizing: border-box; /* Garante que o padding não estoure a largura */
}

.egr-create-post textarea:focus {
    border-color: var(--neon-blue) !important;
    background: rgba(0, 0, 0, 0.6) !important;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.2);
}

/* BARRA DE AÇÕES ABAIXO DO TEXTO */
.egr-post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* BOTÃO DE MÍDIA (ESTILO NEON SECUNDÁRIO) */
.btn-media-upload {
    background: rgba(155, 89, 182, 0.1);
    border: 1px solid rgba(155, 89, 182, 0.3);
    color: #D18DFF;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-media-upload:hover {
    background: rgba(155, 89, 182, 0.2);
    border-color: var(--neon-purple);
}

/* BOTÃO MANIFESTAR (UPGRADE VISUAL MASTER) */
.btn-manifestar-action {
    flex: 1;
    background: var(--btn-gradient);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.btn-manifestar-action:hover {
    transform: scale(1.02) translateY(-3px);
    filter: brightness(1.2);
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.6);
}

/* --- BLOCO DOS CARDS (EXISTENTES) --- */
.egr-post-card {
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: 18px;
    padding: 0; 
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px); 
    overflow: hidden;
    animation: fadeInPost 0.5s ease-out;
}

.egr-post-card:hover {
    border-color: var(--neon-blue); 
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px); 
}

.egr-post-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.egr-post-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--neon-blue);
    object-fit: cover;
}

.egr-post-body {
    padding: 0 20px 20px 20px;
}

.egr-post-media {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    background: #000;
    display: block;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ANIMAÇÃO DE ENTRADA DO POST (PRESERVADA) */
@keyframes fadeInPost {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 4. SIDEBAR DE CHAT HÍBRIDO (ESTILO v1.0) */
.egr-chat-sidebar {
    background: rgba(7, 7, 9, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.egr-chat-tabs {
    display: flex;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border-color);
}

.egr-tab-btn {
    flex: 1;
    padding: 18px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.egr-tab-btn.active {
    color: var(--neon-blue);
    background: rgba(88, 101, 242, 0.1);
    box-shadow: inset 0 -2px 0 var(--neon-blue);
}

.egr-chat-stream {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* BARRA DE EMOJIS E FIGURINHAS */
.egr-emoji-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid var(--border-color);
    overflow-x: auto;
}

.egr-emoji-btn {
    cursor: pointer;
    font-size: 18px;
    transition: 0.2s;
    user-select: none;
}

.egr-emoji-btn:hover { transform: scale(1.3); }

/* MENSAGENS */
.egr-msg-row {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
    position: relative;
    animation: fadeInPost 0.3s ease-out;
}

.egr-msg-public {
    background: rgba(255, 255, 255, 0.05);
    align-self: flex-start;
    border-left: 3px solid var(--neon-blue);
}

.egr-msg-dm {
    background: rgba(155, 89, 182, 0.1);
    align-self: flex-end;
    border-right: 3px solid var(--neon-purple);
    text-align: right;
}

/* 5. ÁREA DE INPUT */
.egr-chat-input-zone {
    padding: 20px;
    background: rgba(0,0,0,0.5);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.egr-chat-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 15px;
    border-radius: 8px;
    color: white;
    outline: none;
}

.egr-chat-input:focus {
    border-color: var(--neon-blue);
}

/* 6. MENÇÕES E POPUPS */
.egr-mention {
    color: var(--neon-blue);
    font-weight: 900;
    background: rgba(88, 101, 242, 0.1);
    padding: 0 4px;
    border-radius: 4px;
}

.badge {
    background: #ff4d4d;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 9px;
    position: absolute;
    top: -5px;
    right: 5px;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
}

.egr-dm-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: rgba(7, 7, 9, 0.95);
    border-left: 4px solid var(--neon-purple);
    border-radius: 12px;
    padding: 15px;
    z-index: 99999;
    animation: slideInRight 0.5s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

/* 7. ANIMAÇÕES */
@keyframes serverPulse {
    from { filter: drop-shadow(0 0 5px rgba(88, 101, 242, 0.4)); transform: scale(1); }
    to { filter: drop-shadow(0 0 15px rgba(88, 101, 242, 0.8)); transform: scale(1.02); }
}

@keyframes fadeInPost {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* 8. SCROLLBARS */
.egr-feed-container::-webkit-scrollbar,
.egr-chat-stream::-webkit-scrollbar { 
    width: 4px; 
}
.egr-feed-container::-webkit-scrollbar-thumb,
.egr-chat-stream::-webkit-scrollbar-thumb { 
    background: var(--neon-blue); 
    border-radius: 10px; 
}

/* 9. AJUSTE DO BOTÃO DISCORD */
.btn-neon img {
    transition: 0.3s;
}
.btn-neon:hover img {
    transform: scale(1.2) rotate(10deg);
}