/* ESTILOS GERAIS E LAYOUT */
.home-rating-box { background: #0f0f0f; border: 1px solid #333; border-radius: 8px; padding: 15px; margin-bottom: 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; color: #fff; }
.hrb-left { text-align: center; min-width: 80px; padding-right: 15px; border-right: 1px solid #333; }
.hrb-score { font-size: 2.5rem; font-weight: bold; line-height: 1; }
.hrb-stars { color: #ff5722; font-size: 12px; margin: 3px 0; }
.hrb-count { font-size: 10px; color: #888; }
.hrb-center { flex: 2; padding: 0 20px; min-width: 200px; }
.hrb-bar-row { display: flex; align-items: center; font-size: 10px; color: #aaa; margin-bottom: 3px; }
.hrb-label { width: 10px; margin-right: 5px; }
.hrb-track { flex: 1; height: 6px; background: #333; border-radius: 3px; overflow: hidden; }
.hrb-fill { height: 100%; background: #ff5722; border-radius: 3px; }
.hrb-right { flex: 1; padding-left: 15px; text-align: right; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; min-width: 150px; }
.hrb-comment { font-size: 12px; font-style: italic; color: #ccc; margin-bottom: 10px; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-avalie-home { background: #d35400; color: #fff; padding: 8px 20px; text-decoration: none; font-weight: bold; border-radius: 4px; font-size: 14px; display: inline-block; }

.user-goal-container { background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%); border: 1px solid #333; border-radius: 12px; padding: 20px; margin-bottom: 30px; margin-top: 20px; position: relative; overflow: visible; }
.last-user-wrapper { display: flex; flex-direction: column; align-items: center; position: absolute; bottom: 45px; transition: left 0.5s ease; transform: translateX(-50%); z-index: 5; }
.last-user-img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #8B4513; object-fit: cover; background: #000; box-shadow: 0 4px 10px rgba(0,0,0,0.5); cursor: pointer; transition: transform 0.2s; }
.last-user-img:hover { transform: scale(1.1); }
.last-user-name { font-size: 10px; color: #fff; background: rgba(139, 69, 19, 0.9); padding: 2px 6px; border-radius: 4px; margin-top: 3px; white-space: nowrap; cursor: pointer; }
.goal-bar-track { width: 100%; height: 15px; background: #222; border-radius: 10px; overflow: hidden; box-shadow: inset 0 2px 5px rgba(0,0,0,0.5); position: relative; }
.goal-bar-fill { height: 100%; background: linear-gradient(90deg, #d35400, #2ecc71); border-radius: 10px; transition: width 1s ease-in-out; position: relative; }
.goal-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 13px; color: #aaa; }
.goal-btn-all { background: transparent; border: 1px solid #555; color: #ccc; padding: 5px 15px; border-radius: 20px; text-decoration: none; font-size: 12px; transition: 0.3s; }
.goal-btn-all:hover { background: #333; color: #fff; border-color: #fff; }

.top-photo-section { margin-bottom: 40px; background: #151515; border: 1px solid #333; border-radius: 12px; padding: 20px; position: relative; overflow: hidden; }
.top-photo-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.top-photo-header h2 { font-size: 1.2rem; color: #fff; margin: 0; text-transform: uppercase; letter-spacing: 1px; }
.top-photo-card { position: relative; border-radius: 8px; overflow: hidden; cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,0.3); transition: transform 0.3s, box-shadow 0.3s; height: 300px; }
.top-photo-card:hover { transform: scale(1.02); box-shadow: 0 8px 25px rgba(231, 76, 60, 0.2); }
.top-photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.top-photo-card:hover img { transform: scale(1.1); }
.top-photo-overlay { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); padding: 20px; display: flex; justify-content: space-between; align-items: flex-end; }
.photo-album-title { color: #fff; font-weight: bold; font-size: 1.1rem; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.photo-fav-badge { background: rgba(231, 76, 60, 0.9); color: #fff; padding: 5px 10px; border-radius: 20px; font-size: 0.9rem; display: flex; align-items: center; gap: 5px; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }

/* EMOÇÕES E COMENTÁRIOS */
.emotions-toggle-header { cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 12px; background: #1f1f1f; border: 1px solid #333; border-radius: 5px; margin-top: 25px; color: #8B4513; font-weight: bold; transition: background 0.2s; }
.emotions-toggle-header:hover { background: #252525; }
.emotions-main-list { display: none; margin-top: 15px; animation: fadeIn 0.5s ease; }
.emotions-main-list.expanded { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.fav-user-icon { cursor: pointer; margin-left: 5px; font-size: 14px; transition: 0.2s; vertical-align: middle; }
.fav-user-icon.active { color: #e74c3c; }
.fav-user-icon:hover { transform: scale(1.2); }

/* --- CORREÇÃO RESPONSIVIDADE EMOÇÕES E COMENTÁRIOS --- */
.emotion-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap; 
}

.emotion-comment-user-row {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap; 
    margin-bottom: 2px;
}

.pc-item-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap; 
    gap: 5px;
    font-size: 13px;
    font-weight: bold;
    color: #ccc;
}

/* Ações da Emoção - Correção para não sair da tela */
.emotion-actions {
    margin-top: 10px;
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #888;
    flex-wrap: wrap; 
    max-width: 100%;
}

.action-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
    white-space: nowrap; 
}

.action-btn:hover { color: #fff; }
.action-btn.liked { color: #ffaa00; }

/* ESTILOS ESPECÍFICOS PARA O VÍDEO E COMENTÁRIOS */
.v-comment-item { display: flex; gap: 10px; margin-bottom: 15px; border-bottom: 1px solid #222; padding-bottom: 10px; }
.v-comment-avatar { width: 35px; height: 35px; border-radius: 50%; object-fit: cover; border: 1px solid #444; }
.biblical-badge { font-size: 9px; color: #f1c40f; background: rgba(241, 196, 15, 0.1); padding: 1px 4px; border-radius: 4px; border: 1px solid rgba(241, 196, 15, 0.3); margin-left: 5px; display: inline-flex; align-items: center; gap: 2px; }

/* BANNER AMIZADE */
.friendship-banner { position: fixed; bottom: 20px; right: 20px; width: 300px; max-height: 450px; background: rgba(20, 20, 20, 0.95); backdrop-filter: blur(10px); border: 1px solid #00b894; border-radius: 10px; box-shadow: 0 0 20px rgba(0, 184, 148, 0.3); z-index: 9999; display: none; flex-direction: column; overflow: hidden; animation: slideInBanner 0.5s ease-out; }
@keyframes slideInBanner { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.fb-header { background: #00b894; color: #000; padding: 10px 15px; font-weight: bold; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.fb-close { cursor: pointer; font-size: 18px; color: #000; transition: 0.2s; }
.fb-close:hover { transform: scale(1.2); }
.fb-content { padding: 10px; overflow-y: auto; max-height: 350px; }
.fb-user-card { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.05); padding: 8px; border-radius: 5px; margin-bottom: 8px; border: 1px solid #333; transition: 0.2s; }
.fb-user-card:hover { border-color: #00b894; background: rgba(0, 184, 148, 0.1); }
.fb-avatar { width: 35px; height: 35px; border-radius: 50%; object-fit: cover; border: 1px solid #00b894; }
.fb-info { flex: 1; overflow: hidden; }
.fb-name { color: #fff; font-size: 13px; font-weight: bold; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-name:hover { color: #00b894; text-decoration: underline; }
.fb-meta { font-size: 10px; color: #aaa; display: flex; align-items: center; gap: 5px; }
.fb-content::-webkit-scrollbar { width: 5px; }
.fb-content::-webkit-scrollbar-thumb { background: #00b894; border-radius: 5px; }
.fb-content::-webkit-scrollbar-track { background: #111; }

.ad-banner-friendship { position: relative; width: 100%; background: #000; margin-bottom: 5px; border-bottom: 1px solid #00b894; }
.ad-close-btn { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; background: rgba(0,0,0,0.8); color: #fff; border-radius: 50%; text-align: center; line-height: 22px; font-weight: bold; cursor: pointer; z-index: 10000; border: 1px solid #fff; font-size: 16px; display: block; pointer-events: auto; }
.ad-close-btn:hover { background: #e74c3c; border-color: #e74c3c; }

/* SEÇÕES PASTOR / BÊNÇÃO */
.pastor-comments-area { margin-top: 20px; border-top: 1px solid #444; padding-top: 10px; }
.pastor-toggle-header { cursor: pointer; display: flex; justify-content: space-between; color: #8B4513; font-weight: bold; font-size: 14px; }
.pastor-comment-list { display: none; margin-top: 10px; }
.pastor-comment-list.expanded { display: block; }
.pc-item { background: rgba(0,0,0,0.3); padding: 10px; border-radius: 5px; margin-bottom: 8px; display: flex; gap: 10px; }
.pastor-inner-row { display: flex; gap: 20px; align-items: flex-start; }
@media (max-width: 768px) { .pastor-inner-row { flex-direction: column; align-items: center; text-align: center; } .pastor-photo-frame { margin-bottom: 15px; } .pastor-content { width: 100%; } .pastor-title { justify-content: center; display: flex; align-items: center; } .pastor-amem-container { text-align: center !important; margin-top: 20px !important; } }
.blessing-area { background: rgba(0,0,0,0.4); border: 1px solid #444; border-radius: 8px; padding: 15px; margin-top: 20px; }
.progress-container { width: 100%; background-color: #d35400; border-radius: 10px; height: 12px; overflow: hidden; margin-bottom: 10px; box-shadow: inset 0 1px 3px rgba(0,0,0,0.5); }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, #2ecc71, #a3e4d7); width: 0%; transition: width 0.5s ease-in-out; box-shadow: 0 0 10px #2ecc71; }
.blessing-content { text-align: center; padding: 10px; color: #ccc; font-style: italic; position: relative; }
.blessing-locked { filter: blur(4px); user-select: none; }
.blessing-text-revealed { font-size: 16px; color: #fff; text-shadow: 0 0 5px #ffaa00; font-weight: bold; margin-bottom: 10px; animation: fadeIn 1s; }
.btn-amem.blinking { animation: blinkBtn 1s infinite; border: 1px solid #ffaa00; }
.alert-one-left { color: #ffaa00; font-weight: bold; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; margin-top: 5px; animation: fadeIn 0.5s; }
.btn-recebo { background: linear-gradient(135deg, #16a085, #1abc9c); color: #fff; border: none; padding: 8px 20px; border-radius: 20px; cursor: pointer; font-weight: bold; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.3); transition: all 0.3s; }
.btn-recebo:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(26, 188, 156, 0.4); }
.btn-recebo.recebido { background: #555; cursor: default; transform: none; box-shadow: none; opacity: 0.7; }
.unlockers-toggle { display: flex; justify-content: flex-end; align-items: center; font-size: 12px; color: #888; cursor: pointer; margin-top: 10px; }
.unlockers-list { display: none; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 10px; background: rgba(0,0,0,0.2); padding: 10px; border-radius: 5px; }
.unlockers-list.show { display: grid; }
.unlocker-card { background: #222; padding: 5px; border-radius: 5px; text-align: center; border: 1px solid #333; }
.unlocker-img { width: 35px; height: 35px; border-radius: 50%; object-fit: cover; border: 2px solid #8B4513; }

/* --- CORREÇÃO DE RESPONSIVIDADE DOS FORMULÁRIOS DE COMENTÁRIO --- */
.comment-form-responsive {
    display: flex;
    flex-direction: row !important; /* Força sempre linha */
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    box-sizing: border-box;
}

.comment-form-responsive .form-control {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    margin: 0;
    padding: 0 10px;
    border-radius: 5px;
    border: 1px solid #444;
    background: #1a1a1a;
    color: #fff;
    font-size: 14px;
}

.comment-form-responsive .btn-submit {
    flex: 0 0 auto;
    height: 40px;
    margin: 0;
    padding: 0 15px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d35400;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

/* AJUSTE PARA CELULAR (Força Input em Cima, Botão Embaixo) */
@media (max-width: 600px) {
    .comment-form-responsive {
        flex-direction: column !important; /* CRUCIAL: Muda para coluna */
        align-items: stretch !important;  /* Estica os itens */
        gap: 10px;
    }
    
    .comment-form-responsive .form-control {
        width: 100% !important; /* Garante 100% */
        margin: 0 !important;   /* Remove margens extras */
    }
    
    .comment-form-responsive .btn-submit {
        width: 100% !important; /* Botão largura total */
    }
}