/* ========================================
   LAMMORE — Estilo Atualizado Moderno com Design Vibrante
   Base: Fundo branco, texto escuro, toques de púrpura e dourado
======================================== */

/* 🎨 VARIÁVEIS GLOBAIS */
:root {
    --cor-roxa: #6A0DAD;
    --cor-dourada: #D4AF37;
    --cor-roxa-escuro: #4a0a7a;
    --cor-dourada-escuro: #b89b30;
    --fundo-claro: #ffffff;
    --texto-claro: #1e1e1e;
    --fundo-escuro: #2a2a2a;
    --texto-escuro: #e0e0e0;
    --card-bg: #ffffff;
    --card-border: #e0e0e0;
    --input-bg: #fafafa;
    --input-border: #ccc;
    --hover-bg: rgba(212, 175, 55, 0.1);
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* 🌞 CORPO DA PÁGINA */
body {
    background-color: var(--fundo-claro);
    color: var(--texto-claro);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 🌙 MODO NOTURNO */
body.dark-mode {
    background-color: var(--fundo-escuro);
    color: var(--texto-escuro);
}

body.dark-mode .card {
    background-color: #2a2a2a;
    border-color: #444;
    color: var(--texto-escuro);
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background-color: #3a3a3a;
    border-color: #555;
    color: #fff;
}

body.dark-mode .bg-dark {
    background-color: #2a2a2a !important;
}

body.dark-mode footer {
    background-color: #2a2a2a;
    color: #aaa;
    border-top-color: #444;
}

/* 🚩 NAVBAR */
.bg-purple {
    background-color: var(--cor-roxa) !important;
    box-shadow: 0 2px 10px rgba(106, 13, 173, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, var(--cor-roxa), var(--cor-roxa-escuro)) !important;
}

.navbar-brand,
.nav-link {
    color: #FFD700 !important;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--cor-dourada) !important;
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--cor-dourada);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* 💛 BOTÕES DOURADOS */
.btn-gold {
    background: linear-gradient(45deg, var(--cor-dourada), var(--cor-dourada-escuro));
    border: none;
    color: var(--texto-claro);
    font-weight: 600;
    transition: var(--transition);
    border-radius: 50px;
    padding: 12px 30px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-gold:hover::before {
    left: 100%;
}

.btn-gold:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    color: #000;
}

.btn-outline-light {
    color: var(--cor-roxa);
    border: 2px solid var(--cor-roxa);
    transition: var(--transition);
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 500;
    background: transparent;
}

.btn-outline-light:hover {
    background-color: rgba(106, 13, 173, 0.1);
    color: var(--cor-roxa);
    transform: translateY(-2px);
    border-color: var(--cor-roxa-escuro);
}

/* 🃏 CARTÕES */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    overflow: hidden;
    margin-bottom: 25px;
    position: relative;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--cor-dourada);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--cor-roxa), var(--cor-dourada));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card-header {
    background: linear-gradient(135deg, var(--cor-roxa), var(--cor-roxa-escuro));
    color: white;
    font-weight: 600;
    border-bottom: none;
    padding: 20px 25px;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.card-body {
    padding: 25px;
    position: relative;
    z-index: 1;
}

/* 📝 FORMULÁRIOS */
.form-control,
.form-select {
    background-color: var(--input-bg);
    border: 2px solid var(--input-border);
    color: var(--texto-claro);
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--cor-dourada);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
    outline: none;
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #999;
}

/* 👤 PERFIL */
.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--cor-dourada);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.profile-pic:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

/* ⚠️ ALERTAS */
.alert {
    border-radius: 15px;
    border: none;
    padding: 20px 25px;
    margin-bottom: 25px;
    border-left: 5px solid var(--cor-roxa);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--cor-roxa), var(--cor-dourada));
    transform: scaleX(0);
    transform-origin: left;
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    to { transform: scaleX(1); }
}

.alert-success { background-color: rgba(40, 167, 69, 0.1); border-left-color: #28a745; color: #155724; }
.alert-danger { background-color: rgba(220, 53, 69, 0.1); border-left-color: #dc3545; color: #721c24; }
.alert-info { background-color: rgba(13, 110, 253, 0.1); border-left-color: #0d6efd; color: #0c5460; }
.alert-warning { background-color: rgba(255, 193, 7, 0.1); border-left-color: #ffc107; color: #856404; }

/* 📥 DROPDOWNS */
.dropdown-menu {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 15px 0;
    min-width: 220px;
    border: 2px solid rgba(106, 13, 173, 0.2);
    animation: fadeInUp 0.3s ease;
}

.dropdown-item {
    color: var(--texto-claro);
    padding: 12px 25px;
    transition: var(--transition);
    border-radius: 10px;
    margin: 5px 15px;
    position: relative;
    z-index: 1;
}

.dropdown-item:hover {
    background-color: var(--hover-bg);
    color: var(--cor-dourada);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.dropdown-item:active {
    background-color: var(--cor-dourada);
    color: #ffffff;
    transform: scale(0.98);
}

/* 🔖 BADGES */
.badge {
    font-weight: 500;
    padding: 0.6em 1em;
    border-radius: 50px;
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.badge:hover {
    transform: scale(1.05);
}

.badge.bg-purple { background-color: var(--cor-roxa) !important; color: white !important; }
.badge.bg-gold { background-color: var(--cor-dourada) !important; color: #1e1e1e !important; }

/* 🏁 FOOTER */
footer {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    color: #aaa;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 2px solid #444;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--cor-roxa), var(--cor-dourada));
}

/* 🖱️ SCROLLBAR */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--cor-roxa);
    border-radius: 10px;
    border: 3px solid #f1f1f1;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--cor-roxa-escuro);
}

/* 📱 RESPONSIVIDADE */
@media (max-width: 768px) {
    .profile-pic {
        width: 120px;
        height: 120px;
    }
    .navbar-brand {
        font-size: 1.3rem;
    }
    .card {
        border-radius: 15px;
        margin-bottom: 20px;
    }
    .btn-gold {
        font-size: 0.95rem;
        padding: 10px 25px;
    }
    .container, .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    .card-header {
        padding: 15px 20px;
    }
    .card-body {
        padding: 20px;
    }
}

/* 🌀 ANIMAÇÕES */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* 🌀 SPINNER */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.3em;
    border-color: currentColor;
    border-right-color: transparent;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 🎨 CORES TEXTUAIS */
.text-gold { 
    color: var(--cor-dourada) !important; 
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}
.text-purple { 
    color: var(--cor-roxa) !important; 
    text-shadow: 0 0 5px rgba(106, 13, 173, 0.3);
}

/* 🔴 NOTIFICAÇÕES */
.notificacoes-count {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.75rem;
    padding: 0.35em 0.6em;
    background-color: #dc3545 !important;
    color: white !important;
    border-radius: 50%;
    min-width: 1.8em;
    height: 1.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* 🗑️ BOTÃO DE REMOÇÃO */
.btn-outline-danger {
    border: 2px solid #dc3545;
    color: #dc3545;
    border-radius: 50px;
    padding: 10px 25px;
    transition: var(--transition);
    font-weight: 500;
    background: transparent;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* 📊 TABELAS NO MODO NOTURNO */
.table {
    --bs-table-bg: #ffffff;
    --bs-table-striped-bg: #f8f9fa;
    --bs-table-hover-bg: #f1f1f1;
    border-radius: 15px;
    overflow: hidden;
}

/* 🌓 BOTÃO DE TEMA */
.theme-toggle {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.3rem;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    background: rgba(255,255,255,0.1);
    margin: 0 5px;
}

.theme-toggle:hover {
    background-color: rgba(212, 175, 55, 0.2);
    transform: rotate(180deg);
}

/* 📰 FEED */
.feed-post {
    margin-bottom: 30px;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 20px;
    border-left: 5px solid var(--cor-dourada);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feed-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0%;
    background: var(--cor-dourada);
    transition: height 0.3s ease;
}

.feed-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--cor-dourada);
}

.feed-post:hover::before {
    height: 100%;
}

/* 📹 VÍDEOS — CINZA ESCURO */
.video-preview {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background-color: #2a2a2a;
    margin-bottom: 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(42, 42, 42, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.video-overlay:hover {
    background-color: rgba(42, 42, 42, 0.6);
    transform: scale(1.02);
}

/* 🏆 CONQUISTAS */
.conquista-card {
    transition: var(--transition);
    border: 2px solid transparent;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.conquista-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: var(--cor-dourada);
}

.conquista-card.desbloqueada {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border: 2px solid var(--cor-dourada);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.conquista-card.desbloqueada::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--cor-roxa), var(--cor-dourada));
}

/* 🎯 PÁGINA INICIAL */
.hero-section {
    background: linear-gradient(135deg, #6A0DAD 0%, #4a0a7a 100%);
    color: white;
    padding: 120px 0;
    text-align: center;
    border-radius: 0 0 40px 40px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

/* 📈 PROGRESS BAR */
.progress {
    height: 25px;
    border-radius: 15px;
    background-color: #e9ecef;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.progress-bar {
    background: linear-gradient(90deg, var(--cor-dourada), var(--cor-dourada-escuro));
    border-radius: 15px;
    font-weight: 600;
    color: #1e1e1e;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

/* 📋 LISTAS */
.list-group-item {
    border-radius: 12px;
    margin-bottom: 8px;
    border: 2px solid #e0e0e0;
    transition: var(--transition);
    padding: 15px 20px;
    background: #ffffff;
}

.list-group-item:hover {
    transform: translateX(8px);
    border-color: var(--cor-dourada);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.list-group-item.active {
    background: linear-gradient(135deg, var(--cor-dourada), var(--cor-dourada-escuro));
    color: #1e1e1e;
    border-color: var(--cor-dourada);
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

/* 🟢 STATUS */
.badge-status {
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease;
}

.badge-status:hover {
    transform: scale(1.05);
}

.badge-online { background-color: #28a745; color: white; }
.badge-offline { background-color: #6c757d; color: white; }
.badge-busy { background-color: #dc3545; color: white; }

/* 🎮 BOTÕES DE AÇÃO */
.btn-action {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    margin: 5px;
    min-width: 120px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--cor-roxa), var(--cor-roxa-escuro));
    border: none;
    box-shadow: 0 4px 15px rgba(106, 13, 173, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(106, 13, 173, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    border: none;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

/* 🪟 MODAL */
.modal-content {
    border-radius: 25px;
    border: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(106, 13, 173, 0.2);
}

.modal-header {
    border-bottom: none;
    padding: 25px 30px 0;
    background: linear-gradient(135deg, var(--cor-roxa), var(--cor-roxa-escuro));
    color: white;
    border-radius: 25px 25px 0 0;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    border-top: none;
    padding: 0 30px 30px;
    border-radius: 0 0 25px 25px;
}

/* 💬 TOOLTIP */
.tooltip-inner {
    background: linear-gradient(135deg, var(--cor-roxa), var(--cor-roxa-escuro));
    color: white;
    border-radius: 12px;
    padding: 10px 15px;
    box-shadow: 0 4px 15px rgba(106, 13, 173, 0.3);
    font-size: 0.9rem;
    font-weight: 500;
}

.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--cor-roxa);
}

/* 💬 POPOVER */
.popover {
    border-radius: 15px;
    border: none;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(106, 13, 173, 0.2);
}

.popover-header {
    background: linear-gradient(135deg, var(--cor-roxa), var(--cor-roxa-escuro));
    color: white;
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    padding: 15px 20px;
    font-weight: 500;
}

.popover-body {
    padding: 20px;
    background: #ffffff;
    border-radius: 0 0 15px 15px;
}

/* 💬 NOTIFICAÇÃO DE CONTATO (CHAT) */
.contato-mensagem-notificacao {
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ff6b6b;
    animation: pulse 1.5s infinite;
    background: rgba(255, 107, 107, 0.1);
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

/* 👥 COMUNIDADES — ESTILO WHATSAPP MODERNIZADO */
.comunidades-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.header-comunidades {
    background: linear-gradient(135deg, #6A0DAD, #D4AF37);
    padding: 40px 30px;
    border-radius: 25px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(106, 13, 173, 0.2);
    color: white;
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(255, 215, 0, 0.3);
}

.header-comunidades::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

.header-comunidades h2 {
    font-size: 2.8rem;
    font-weight: bold;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-shadow: 0 0 15px rgba(255,215,0,0.5);
    position: relative;
    z-index: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { text-shadow: 0 0 15px rgba(255,215,0,0.5); }
    50% { text-shadow: 0 0 25px rgba(255,215,0,0.8); }
    100% { text-shadow: 0 0 15px rgba(255,215,0,0.5); }
}

.btn-criar-comunidade {
    background: linear-gradient(45deg, #D4AF37, #FFD700);
    color: #1e1e1e;
    font-weight: bold;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    font-size: 1.1rem;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-criar-comunidade::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn-criar-comunidade:hover::before {
    left: 100%;
}

.btn-criar-comunidade:hover {
    transform: translateY(-5px) scale(1.05) rotate(2deg);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

/* LISTA DE COMUNIDADES */
.lista-comunidades {
    background: rgba(30, 30, 46, 0.9);
    border-radius: 25px;
    padding: 30px;
    border: 3px solid rgba(106, 13, 173, 0.3);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
}

.lista-comunidades::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #6A0DAD, #D4AF37);
}

.comunidade-item {
    display: flex;
    align-items: center;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.05);
    transition: all 0.4s ease;
    text-decoration: none;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.comunidade-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0%;
    background: linear-gradient(135deg, #6A0DAD, #D4AF37);
    transition: height 0.3s ease;
}

.comunidade-item:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(106, 13, 173, 0.1);
    border-color: rgba(106, 13, 173, 0.4);
    box-shadow: 0 8px 30px rgba(106, 13, 173, 0.3);
}

.comunidade-item:hover::before {
    height: 100%;
}

.comunidade-foto {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #D4AF37;
    margin-right: 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.comunidade-item:hover .comunidade-foto {
    transform: rotate(10deg) scale(1.1);
    border-color: #FFD700;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.comunidade-info {
    flex: 1;
}

.comunidade-nome {
    font-size: 1.4rem;
    font-weight: bold;
    color: #D4AF37;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #D4AF37, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.comunidade-desc {
    font-size: 0.95rem;
    color: #aaa;
    margin-bottom: 10px;
    line-height: 1.5;
}

.comunidade-badge {
    background: linear-gradient(45deg, #D4AF37, #FFD700);
    color: #1e1e1e;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.comunidade-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
}

/* 🧩 MENSAGENS DE COMUNIDADE */
.mensagem-comunidade {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    max-width: 100%;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    border-left: 4px solid #D4AF37;
    transition: all 0.3s ease;
}

.mensagem-comunidade:hover {
    transform: translateX(5px);
    background: rgba(212, 175, 55, 0.05);
    border-color: #D4AF37;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.mensagem-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #D4AF37;
    transition: all 0.3s ease;
}

.mensagem-comunidade:hover .mensagem-avatar {
    transform: rotate(10deg) scale(1.1);
    border-color: #FFD700;
}

.mensagem-conteudo {
    flex: 1;
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 15px;
    border-top-left-radius: 5px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.mensagem-comunidade:hover .mensagem-conteudo {
    background: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.3);
}

.remetente-nome {
    font-weight: bold;
    color: #D4AF37;
    font-size: 1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.remetente-nome i {
    font-size: 0.8rem;
    color: #4ade80;
    animation: pulse 2s infinite;
}

.mensagem-texto {
    word-wrap: break-word;
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: #fff;
}

.mensagem-foto img {
    max-width: 100%;
    border-radius: 15px;
    margin: 15px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.mensagem-foto img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.mensagem-video {
    background: #000;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin: 15px 0;
    border: 2px solid #D4AF37;
}

.mensagem-video a {
    color: #D4AF37;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.mensagem-video a:hover {
    transform: scale(1.05);
    color: #FFD700;
}

.mensagem-info {
    font-size: 0.8rem;
    opacity: 0.7;
    text-align: right;
    margin-top: 10px;
    color: #aaa;
}