/* Perfil memorial — card como index.php#memoriais + ícones de interação */

.profile-app-shell {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.profile-memorial-card {
    overflow: hidden;
}

.profile-memorial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.profile-memorial-card__photo {
    background: #e7e5e4;
}

.dark .profile-memorial-card__photo {
    background: #44403c;
}

.profile-tribute-like-form {
    margin: 0;
}

.profile-action-btn--like[disabled] {
    opacity: 0.55;
    cursor: wait;
}

.profile-post__actions-block {
    border-bottom: 1px solid #e7e5e4;
    background: #fff;
}

.dark .profile-post__actions-block {
    border-color: #44403c;
    background: #0c0a09;
}

.profile-post__actions-title {
    margin: 0;
    padding: 0.75rem 1.25rem 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #78716c;
}

.dark .profile-post__actions-title {
    color: #a8a29e;
}

.profile-post__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem 0.75rem;
}

.profile-action-label {
    font-size: 0.8125rem;
    font-weight: 600;
}

.profile-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.65rem;
    border: none;
    background: transparent;
    color: #292524;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.dark .profile-action-btn {
    color: #e7e5e4;
}

.profile-action-btn:hover {
    background: #f5f5f4;
}

.dark .profile-action-btn:hover {
    background: #292524;
}

.profile-action-btn.is-active {
    background: #1c1917;
    color: #fff;
}

.dark .profile-action-btn.is-active {
    background: #fafaf9;
    color: #1c1917;
}

.profile-action-btn svg {
    width: 1.35rem;
    height: 1.35rem;
}

.profile-action-count {
    font-size: 0.8125rem;
    font-weight: 600;
    min-width: 1ch;
}

.profile-messages-section {
    overflow: hidden;
}

.profile-messages-section__head {
    padding: 1.25rem 1.25rem 0;
}

.profile-messages-section__cta {
    margin: 0;
    padding: 1rem 1.25rem;
    border-top: 1px solid #e7e5e4;
}

.dark .profile-messages-section__cta {
    border-color: #44403c;
}

.profile-apoio-text {
    padding: 0;
    border: none;
    background: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1c1917;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.profile-apoio-text:hover {
    color: #57534e;
}

.dark .profile-apoio-text {
    color: #fafaf9;
}

.dark .profile-apoio-text:hover {
    color: #d6d3d1;
}

.profile-composer[data-profile-message-composer][hidden] {
    display: none;
}

.profile-composer[data-profile-message-composer].is-open {
    animation: profilePanelIn 0.2s ease-out;
}

@keyframes profilePanelIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-messages-list {
    max-height: min(50vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid #e7e5e4;
}

.dark .profile-messages-list {
    border-color: #44403c;
}

.profile-composer--bottom {
    border-top: 1px solid #e7e5e4;
}

.dark .profile-composer--bottom {
    border-color: #44403c;
}

.profile-comment {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #e7e5e4;
}

.dark .profile-comment {
    border-color: #292524;
}

.profile-comment__body {
    flex: 1;
    min-width: 0;
}

.profile-comment__text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #57534e;
    margin-top: 0.25rem;
}

.dark .profile-comment__text {
    color: #d6d3d1;
}

.profile-comment__asset {
    margin-top: 0.5rem;
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
}

.profile-composer {
    padding: 1.25rem;
    border-top: 1px solid #e7e5e4;
    background: #fff;
}

.dark .profile-composer {
    border-color: #44403c;
    background: #0c0a09;
}

.profile-app-info .profile-cerimonia-block {
    margin-top: 0;
}

.profile-cerimonia-grid > div {
    min-width: 0;
    padding: 0.75rem;
}

.profile-cerimonia-grid p {
    word-break: break-word;
}
