/* ==========================================================================
   PLUGIN: POSTAGENS REDE DDD BRASIL
   VERSION: 16.0 (ESTILO BRILHA FESTIVO - COLORIDO & ANIMADO)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;800&display=swap');

/* Animação do Fundo Gradiente */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animação de Flutuação */
@keyframes floatUp {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   1. ESTRUTURA GERAL
   -------------------------------------------------------------------------- */
.comentarios-gemini-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 30px auto;
    padding: 0 15px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-sizing: border-box;
}

.comentarios-gemini-wrapper *,
.comentarios-gemini-wrapper *::before,
.comentarios-gemini-wrapper *::after {
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   2. FORMULÁRIO COLORIDO E ANIMADO
   -------------------------------------------------------------------------- */
#comentarios-gemini-form-container {
    /* Fundo Mágico Colorido */
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    position: relative;
    width: 100%;
    overflow: hidden;
    color: #fff; /* Texto branco para contraste */
}

/* Efeito de Vidro sobre o container (opcional, para dar profundidade) */
#comentarios-gemini-form-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 0;
}

#comentarios-gemini-form {
    position: relative;
    z-index: 1; /* Traz o formulário para frente do fundo */
}

.form-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px dashed rgba(255,255,255,0.3);
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: block;
}

.form-title i {
    color: #ffd700; /* Dourado */
    margin-right: 10px;
    animation: floatUp 3s ease-in-out infinite;
    display: inline-block;
}

/* Grid e Inputs */
.comgem-grid { display: flex; flex-wrap: wrap; gap: 20px; width: 100%; }
.comgem-col-full { width: 100%; flex: 0 0 100%; }
.comgem-col { width: calc(50% - 10px); flex: 0 0 calc(50% - 10px); }

/* --- LABELS COM FIGURINHAS (EMOJIS) --- */
label {
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Adicionando Emojis via CSS nos campos conhecidos pelo atributo 'name' ou contexto */
.comgem-col-full label:contains("TÍTULO")::before { content: "✨ "; }
.comgem-col-full label:contains("CAPA")::before { content: "🖼️ "; }
.comgem-col-full label:contains("CONTEÚDO")::before { content: "📝 "; }
.comgem-col-full label:contains("GALERIA")::before { content: "📸 "; }
.comgem-col-full label:contains("YouTube")::before { content: "🎥 "; }
.comgem-col-full label:contains("TikTok")::before { content: "🎵 "; }

/* Inputs Estilo "Vidro Branco" */
input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9); /* Branco translúcido */
    font-size: 1rem;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

input:focus, textarea:focus {
    background: #fff;
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    outline: none;
}

textarea { resize: vertical; min-height: 120px; }

/* Upload e Dropzone (Estilo Cartão) */
.comgem-dropzone {
    border: 3px dashed rgba(255,255,255,0.6);
    border-radius: 20px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.15);
    text-align: center;
    width: 100%;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}
.comgem-dropzone:hover, .comgem-dropzone.dragover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
    transform: scale(1.02);
}

.dz-message i { 
    font-size: 3rem; 
    color: #fff; 
    margin-bottom: 10px; 
    display: block; 
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}
.dz-message span { font-weight: bold; color: #fff; }

.dz-buttons { display: flex; justify-content: center; gap: 10px; margin-top: 15px; flex-wrap: wrap; }

.btn-select, .btn-paste { 
    padding: 12px 25px; 
    border-radius: 50px; 
    font-weight: 800; 
    cursor: pointer; 
    border: none; 
    font-size: 0.9rem; 
    text-transform: uppercase;
    transition: 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.btn-select { background: #fff; color: #e73c7e; }
.btn-select:hover { background: #f0f0f0; transform: translateY(-2px); }

.btn-paste { background: #ffd700; color: #333; }
.btn-paste:hover { background: #ffed4a; transform: translateY(-2px); }

/* Inputs de Vídeo com Ícones Coloridos */
.video-input-wrapper { position: relative; width: 100%; }
.video-icon { position: absolute; left: 15px; top: 14px; font-size: 1.2rem; z-index: 2; }
.video-url-input { padding-left: 20px !important; }

/* Gravadores (Cards Escuros para Contraste) */
.media-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(5px);
}
.media-box h3 { margin-top: 0; color: #fff; font-size: 1.1rem; }
.media-box h3 i { color: #ffd700; }

.media-controls button {
    width: 55px; height: 55px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.2);
    font-size: 1.3rem; cursor: pointer; color: #fff; margin: 0 8px; transition: 0.2s;
    background: rgba(255,255,255,0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.record-btn:hover { background: #ef4444; border-color: #ef4444; transform: scale(1.1); } 
.stop-btn:hover { background: #f59e0b; border-color: #f59e0b; transform: scale(1.1); } 
.play-btn:hover { background: #10b981; border-color: #10b981; transform: scale(1.1); } 

/* Botão Submit Épico */
#comgem-submit-btn {
    width: 100%; 
    padding: 20px; 
    background: #fff; 
    color: #e73c7e; /* Rosa vibrante do tema */
    border: none;
    border-radius: 50px; 
    font-size: 1.2rem; 
    font-weight: 900; 
    text-transform: uppercase;
    letter-spacing: 2px; 
    cursor: pointer; 
    margin-top: 30px; 
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
#comgem-submit-btn:hover { 
    background: #ffd700; 
    color: #333;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4); 
}

/* Spinner e Animação de Envio */
#comgem-submit-btn.comgem-btn-sending {
    background: #333; color: #fff;
    cursor: not-allowed; opacity: 0.8;
}
.spinner {
    display: inline-block; width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%; border-top-color: #fff; animation: spin 1s ease-in-out infinite; margin-left: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Previews */
.preview-area { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; justify-content: center; }
.preview-area img { 
    width: 90px; height: 90px; object-fit: cover; border-radius: 12px; 
    border: 3px solid #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
    transition: 0.2s;
}
.preview-area img:hover { transform: scale(1.1) rotate(3deg); }

/* --------------------------------------------------------------------------
   3. ESTILO DO FEED (POSTAGENS NA HOME - MANTIDO LIMPO)
   -------------------------------------------------------------------------- */
/* O feed precisa ser legível, então mantemos fundo branco mas com detalhes do tema */

.comgem-feed-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 25px;
    margin: 0 auto 40px auto; 
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    font-family: 'Plus Jakarta Sans', sans-serif;
    max-width: 800px;
    position: relative;
    overflow: hidden;
}

.comgem-feed-header {
    display: flex; align-items: center; gap: 15px; margin-bottom: 20px; 
    padding-bottom: 15px; border-bottom: 1px solid #f3f4f6;
}
.comgem-feed-avatar {
    width: 60px; height: 60px; border-radius: 50%; object-fit: cover;
    border: 3px solid #e73c7e; padding: 2px; background: #fff;
}
.comgem-author-name { color: #111827; font-size: 1.1rem; font-weight: 800; }
.comgem-post-time { color: #6b7280; font-size: 0.85rem; }
.comgem-feed-body { color: #374151; font-size: 1.05rem; line-height: 1.6; margin-bottom: 25px; }

/* --------------------------------------------------------------------------
   4. MOBILE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .comentarios-gemini-wrapper { margin: 0 !important; padding: 0 !important; max-width: 100% !important; }
    #comentarios-gemini-form-container {
        padding: 30px 20px !important; border-radius: 0 !important; border: none !important;
    }
    .comgem-col, .comgem-col-full { width: 100% !important; flex: 0 0 100% !important; }
    .dz-buttons { flex-direction: column; width: 100%; }
    .btn-select, .btn-paste { width: 100%; margin-bottom: 10px; }
}