/**
 * @file
 * Estilos customizados para páginas de POST
 * Utiliza Bootstrap 5 e fontes Google (Crimson Pro + Work Sans)
 */

:root {
    --primary-green: #2d7a4f;
    --primary-dark: #1a4d2e;
    --primary-light: #4a9d6f;
    --accent-gold: #d4a574;
    --bg-cream: #fdfbf7;
    --bg-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: #4a5568;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
}

/* Reset e Base */
.post-page {
    font-family: 'Work Sans', sans-serif;
    background: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.post-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Top Content */
.top-content {
    margin-bottom: 2rem;
}

.badge-categoria {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.post-title {
    font-family: 'Crimson Pro', serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Meta Informações */
.post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item i {
    font-size: 1rem;
    color: var(--primary-green);
}

/* Meta item clicável (para curtir) */
.meta-item-clickable {
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.meta-item-clickable:hover {
    background-color: rgba(45, 122, 79, 0.1);
}

.meta-item-clickable.active {
    background-color: rgba(45, 122, 79, 0.15);
}

.meta-item-clickable.active i {
    color: var(--primary-green);
}

.meta-item-clickable:active {
    transform: scale(0.95);
}

/* Autor inline na meta */
.post-author-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 1.5rem;
    border-right: 1px solid var(--border-color);
}

.author-avatar-small,
.author-avatar-small-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-small-placeholder {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
}

.author-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

.author-name-inline {
    font-weight: 600;
    color: var(--text-dark);
}


/* Imagem Destacada */
.post-featured-image {
    margin-bottom: 2.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Header do Artigo (Bloco Verde) */
.article-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-green) 100%);
    color: white;
    padding: 3.75rem 2.5rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.article-number {
    font-family: 'Crimson Pro', serif;
    font-size: 1rem;
    letter-spacing: 2px;
    opacity: 0.9;
    margin-bottom: 0.75rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.article-title {
    font-family: 'Crimson Pro', serif;
    font-size: 2.625rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Conteúdo do Post */
.post-content {
    margin-bottom: 1.5rem;
    position: relative;
    transition: max-height 0.3s ease;
    border-left: 4px solid var(--primary-green);
    padding-left: 2rem;
    padding-right: 2rem;
    background: white;
    border-radius: 0 8px 8px 0;
}

.post-content p,
.post-content ul,
.post-content ol,
.post-content thead,
.post-content tbody,
.post-content th,
.post-content tr,
.post-content td {
    padding: 0;
    border: 0;
    margin: 0;
    font-size: 100%;
    font-family: helvetica, arial, sans-serif;
    vertical-align: baseline;
}

.post-content h2 {
    margin-top: 20px;
    font-family: helvetica, arial, sans-serif;
    font-size: 22px;
    clear: both;
    color: #000;
}

.post-content form,
.post-content ol,
.post-content p,
.post-content ul {
    margin-top: 10px;
}

.post-content ol, 
.post-content ul {
    list-style: none;
}

.post-content ol li {
    margin-left: 25px;
    list-style: decimal outside;
}

.post-content table {
    width: 100%;
    border-radius: 4px;
    margin-top: 10px;
}

.post-content table thead {
    color: #000;
    font-weight: 700;
}

.post-content table td, 
.post-content table th {
    text-align: center;
    padding: 7px 15px;
    border: solid 1px #e5e5e5;
}

/* Wrapper do botão "Ler mais" */
.post-read-more-wrapper {
    text-align: center;
    margin: 2rem 0;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-read-more:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-read-more i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

/* Apenas estilizar blockquote - todo resto vem do editor do Drupal */
.post-content blockquote {
    border-left: 4px solid var(--accent-gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-gray);
    background: var(--bg-cream);
    padding: 1.5rem;
    border-radius: 8px;
}

/* Tags/Assuntos Relacionados */
.related-tags-section {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-top: 3rem;
    margin-bottom: 3rem;
    border-top: 3px solid var(--primary-green);
    border-bottom: 3px solid var(--primary-green);
}

.tags-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.tags-header i {
    font-size: 1.75rem;
    color: var(--primary-green);
}

.tags-title {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    background: var(--bg-cream);
    border: 2px solid var(--primary-green);
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tag i {
    font-size: 1rem;
    opacity: 0.8;
}

/* Compartilhamento */
.share-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-cream);
    border-radius: 8px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    color: var(--text-dark);
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.share-facebook {
    background: #1877f2;
}

.share-twitter {
    background: #1da1f2;
}

.share-linkedin {
    background: #0077b5;
}

.share-whatsapp {
    background: #25d366;
}

.share-copy {
    background: var(--text-gray);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Comentários */
.comments-section {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-top: 3rem;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--border-color);
}

.comments-title {
    font-family: 'Crimson Pro', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.comments-title i {
    color: var(--primary-green);
}

.comments-count {
    background: var(--primary-green);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Formulário de Comentário */
.new-comment-form {
    background: var(--bg-cream);
    padding: 1.875rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    border: 2px dashed var(--border-color);
    transition: all 0.3s;
}

.new-comment-form:focus-within {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(45, 122, 79, 0.1);
}

.comment-textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.2s;
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(45, 122, 79, 0.1);
}

.comment-textarea::placeholder {
    color: var(--text-light);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.form-hint i {
    margin-right: 0.25rem;
}

.submit-btn {
    background: var(--primary-green) !important;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.submit-btn:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Login Required */
.login-required {
    text-align: center;
    padding: 3rem 1.25rem;
    color: var(--text-gray);
}

.login-required i {
    font-size: 4rem;
    margin-bottom: 1.25rem;
    opacity: 0.5;
    color: var(--primary-green);
}

.login-required p {
    font-size: 1rem;
    margin: 0;
}

.login-required a {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
}

.login-required a:hover {
    text-decoration: underline;
}

/* Lista de Comentários */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment {
    border-left: 3px solid var(--border-color);
    padding-left: 1.25rem;
    transition: all 0.3s;
}

.comment:hover {
    border-left-color: var(--primary-green);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-avatar-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.comment-meta {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.comment-time {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 0.125rem;
}

.comment-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
}

/* Posts Relacionados */
.related-title {
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.related-posts {
    margin-bottom: 3rem;
}

.related-post-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.related-post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.related-post-title {
    font-family: 'Crimson Pro', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.related-post-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.related-post-title a:hover {
    color: var(--primary-green);
}

.related-post-date {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-post-date i {
    color: var(--primary-green);
}

/* Responsivo */
@media (max-width: 768px) {
    /* Ajuste para header fixo no mobile */
    body.post-page {
        padding-top: 0 !important;
    }

    .search-container {
        flex: auto;
    }

    /* Container e espaçamentos gerais */
    .post-container {
        padding: 10px 10px 15px 10px;
        overflow: visible;
    }

    .container, .container-fluid, .row {
        margin-left: unset;
        margin-right: unset;
    }

    /* Garantir visibilidade do header */
    .post-container > div {
        overflow: visible;
    }

    /* Badge de categoria */
    .badge-categoria {
        font-size: 0.75rem;
        padding: 0.375rem 0.875rem;
        margin-bottom: 0.5rem;
        margin-top: 0.5rem;
        display: inline-block;
    }

    /* Título do post */
    .post-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
        margin-top: 0.25rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        display: block !important;
        visibility: visible !important;
    }

    /* Meta informações */
    .post-meta {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .post-meta .meta-item {
        font-size: 0.8125rem;
        padding: 0.25rem 0;
        width: calc(50% - 0.25rem);
        flex-shrink: 0;
    }

    .post-author-inline {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 0.5rem;
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .author-avatar-small {
        width: 28px;
        height: 28px;
    }

    /* Breadcrumb */
    .breadcrumb-wrapper {
        margin-top: 0;
        padding-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .breadcrumb {
        font-size: 0.75rem;
        padding: 0.25rem 0;
        margin-bottom: 0.25rem;
    }

    .breadcrumb-item {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Bloco do artigo */
    .article-header {
        padding: 1.5rem 1rem;
    }

    .article-number {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }

    .article-title {
        font-size: 1.25rem;
        line-height: 1.3;
        margin-top: 0.75rem;
    }

    /* Blockquote no mobile */
    .post-content blockquote {
        padding: 1rem;
        margin: 1.5rem 0;
        border-left-width: 3px;
        font-size: 0.9375rem;
    }

    /* Conteúdo */
    .post-content {
        padding-left: 1rem;
        padding-right: 1rem;
        border-left-width: 3px;
        font-size: 0.9375rem;
    }

    /* Botão Ler Mais */
    .btn-read-more {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    .post-read-more-wrapper {
        margin: 1.5rem 0;
    }

    /* Botões de compartilhamento */
    .share-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }

    .share-label {
        font-size: 0.875rem;
        font-weight: 600;
    }

    .share-buttons {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .share-btn {
        width: 48px;
        height: 48px;
        padding: 0;
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    /* Comentários */
    .comments-section {
        padding: 1.25rem 0.75rem;
    }

    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .comments-title {
        font-size: 1.375rem;
    }

    .comments-sort {
        width: 100%;
    }

    .sort-btn {
        flex: 1;
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    /* Formulário de comentário */
    .comment-textarea {
        min-height: 100px;
        font-size: 0.9375rem;
    }

    .form-footer {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form-hint {
        font-size: 0.75rem;
    }

    .submit-btn,
    .btn-primary {
        width: 100%;
        padding: 0.75rem 1.5rem;
    }

    /* Thread de comentários */
    .comment-thread.comment-reply {
        margin-left: 1rem;
        padding-left: 0.75rem;
    }

    .comment {
        padding: 1rem;
        gap: 0.75rem;
    }

    .comment-voting {
        min-width: 32px;
    }

    .vote-btn {
        font-size: 1rem;
        padding: 0.125rem;
    }

    .vote-count {
        font-size: 0.75rem;
    }

    .comment-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .comment-author {
        font-size: 0.875rem;
    }

    .comment-time {
        font-size: 0.75rem;
    }

    .user-badge {
        font-size: 0.625rem;
        padding: 0.125rem 0.375rem;
    }

    .comment-text {
        font-size: 0.9375rem;
        max-height: 120px;
    }

    .comment-action-btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.375rem;
    }

    /* Tags relacionadas */
    .related-tags-section {
        padding: 1.5rem 1rem;
    }

    .tags-title {
        font-size: 1.125rem;
    }

    .tags-container {
        gap: 0.5rem;
    }

    .tag {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }

    /* Posts relacionados */
    .related-title {
        font-size: 1.375rem;
        margin-bottom: 1rem;
    }

    .related-post-image {
        height: 150px;
    }

    .related-post-title {
        font-size: 1rem;
    }

    /* Tabs administrativas */
    .admin-tabs-wrapper {
        margin: 0.75rem 0 1rem 0;
    }

    .tabs {
        flex-wrap: wrap;
        gap: 0.375rem;
    }

    .tabs li a {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }

    /* Notificações no mobile */
    .post-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: calc(100% - 20px);
        padding: 0.875rem 1rem;
        font-size: 0.8125rem;
    }

    /* Tabelas responsivas */
    .post-content table {
        font-size: 0.8125rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .post-content table td,
    .post-content table th {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    /* Imagem destacada */
    .post-featured-image {
        margin: 1rem 0;
    }

    .post-featured-image img {
        border-radius: 8px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tag,
.related-post-card {
    animation: fadeIn 0.4s ease forwards;
    opacity: 0;
}

.tag:nth-child(1) { animation-delay: 0.1s; }
.tag:nth-child(2) { animation-delay: 0.15s; }
.tag:nth-child(3) { animation-delay: 0.2s; }
.tag:nth-child(4) { animation-delay: 0.25s; }
.tag:nth-child(5) { animation-delay: 0.3s; }
.tag:nth-child(6) { animation-delay: 0.35s; }
.tag:nth-child(7) { animation-delay: 0.4s; }
.tag:nth-child(8) { animation-delay: 0.45s; }
.tag:nth-child(9) { animation-delay: 0.5s; }
.tag:nth-child(10) { animation-delay: 0.55s; }

.related-post-card:nth-child(1) { animation-delay: 0.1s; }
.related-post-card:nth-child(2) { animation-delay: 0.2s; }
.related-post-card:nth-child(3) { animation-delay: 0.3s; }

/* ========================================
   MENU ADMINISTRATIVO (TABS)
   ======================================== */

.admin-tabs-wrapper {
    margin: 15px 0 20px 0;
    padding: 12px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.admin-tabs-wrapper .tabs {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.admin-tabs-wrapper .tabs li {
    margin: 0;
    padding: 0;
}

.admin-tabs-wrapper .tabs a {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.admin-tabs-wrapper .tabs a:hover {
    color: #495057;
    background: #e9ecef;
    border-color: #adb5bd;
}

.admin-tabs-wrapper .tabs .active a,
.admin-tabs-wrapper .tabs li.active a {
    color: #fff;
    background: #0d6efd;
    border-color: #0d6efd;
}

/* Ícones para cada aba */
.admin-tabs-wrapper .tabs a::before {
    margin-right: 6px;
    font-family: 'bootstrap-icons';
    font-size: 14px;
}

.admin-tabs-wrapper .tabs a[href*="view"]::before {
    content: "\F341"; /* bi-eye */
}

.admin-tabs-wrapper .tabs a[href*="edit"]:not([href*="product"])::before {
    content: "\F4CA"; /* bi-pencil */
}

.admin-tabs-wrapper .tabs a[href*="revisions"]::before {
    content: "\F4A1"; /* bi-clock-history */
}

.admin-tabs-wrapper .tabs a[href*="devel"]::before {
    content: "\F123"; /* bi-code-slash */
}

.admin-tabs-wrapper .tabs a[href*="product"]::before {
    content: "\F1D1"; /* bi-box */
}

.admin-tabs-wrapper .tabs a[href*="keyword"]::before,
.admin-tabs-wrapper .tabs a[href*="palavras"]::before {
    content: "\F4EE"; /* bi-tags */
}

/* Responsivo para tabs administrativas */
@media (max-width: 768px) {
    .admin-tabs-wrapper {
        margin: 10px 0 15px 0;
    }

    .admin-tabs-wrapper .tabs {
        gap: 3px;
    }

    .admin-tabs-wrapper .tabs a {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* ========================================
   AÇÕES DO POST NO HEADER (Curtir, Favoritar, Compartilhar)
   ======================================== */

/* Ajustar largura da busca no header para dar espaço aos botões */
.header-search {
    max-width: 450px !important;
}

.post-actions-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1.5rem;
}

.post-action-btn {
    background: #00b08e;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ffffff;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
}

.post-action-btn:hover {
    background: #f8f9fa;
    color: var(--text-dark);
}

.post-action-btn i {
    font-size: 1.25rem;
}

/* Botão de compartilhar com texto */
.post-action-btn span {
    font-weight: 500;
}

/* Estado ativo dos botões */
.post-action-btn.active {
    color: #203A24;
}

.post-action-btn.active i {
    animation: heartBeat 0.3s ease;
}

/* Dropdown de Compartilhamento */
.share-dropdown-wrapper {
    position: relative;
}

.share-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-dropdown-header {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0.5rem;
}

.share-option {
    width: 100%;
    padding: 0.625rem 1rem;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.share-option:hover {
    background: #f8f9fa;
}

.share-option i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.share-option:hover i {
    color: #f8f9fa;
}

/* Cores específicas para cada rede social */
.share-option[data-share="whatsapp"]:hover {
    background: #25d366;
    color: white;
}

.share-option[data-share="facebook"]:hover {
    background: #1877f2;
    color: white;
}

.share-option[data-share="twitter"]:hover {
    background: #1da1f2;
    color: white;
}

.share-option[data-share="linkedin"]:hover {
    background: #0a66c2;
    color: white;
}

.share-option[data-share="email"]:hover {
    background: #ea4335;
    color: white;
}

.share-option[data-share="copy"]:hover {
    background: var(--primary-green);
    color: white;
}

/* Responsivo para ações do post */
@media (max-width: 768px) {
    .post-actions-header {
        margin-left: 0.5rem;
        gap: 0.25rem;
    }

    .post-action-btn {
        width: 36px;
        height: 36px;
    }

    .post-action-btn i {
        font-size: 1rem;
    }

    .post-action-btn span {
        display: none;
    }

    .share-dropdown-wrapper {
        position: static;
    }

    .share-dropdown {
        position: fixed;
        top: 60px;
        right: 10px;
        left: 10px;
        width: auto;
        min-width: auto;
        max-width: none;
        transform: translateY(-10px);
        z-index: 10001;
        padding: 0.5rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .share-dropdown.show {
        transform: translateY(0);
    }

    .share-dropdown-header {
        width: 100%;
        padding: 0.5rem;
        margin-bottom: 0;
        text-align: center;
    }

    .share-option {
        width: calc(50% - 0.25rem);
        flex-direction: column;
        gap: 0.375rem;
        padding: 1rem 0.5rem;
        font-size: 0.8125rem;
        justify-content: center;
        text-align: center;
        border-radius: 8px;
    }

    .share-option i {
        font-size: 1.75rem;
        width: auto;
    }
}

/* ========================================
   NOTIFICAÇÕES TOAST
   ======================================== */

.post-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 10001;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
    min-width: 250px;
}

.post-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.post-notification.toast-success {
    border-left: 4px solid var(--primary-green);
    color: var(--primary-dark);
}

.post-notification.toast-warning {
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.post-notification.toast-error {
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.post-notification.toast-info {
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

@media (max-width: 768px) {
    .post-notification {
        top: 60px;
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

/* ========================================
   ANIMAÇÕES
   ======================================== */

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* ===================================
   DISCUSSÃO EM THREAD - ESTILO MELHORADO
   =================================== */

/* Header de comentários com sorting */
.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.comments-sort {
    display: flex;
    gap: 0.5rem;
}

.sort-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.sort-btn:hover {
    background: #f5f5f5;
    border-color: var(--primary-green);
}

.sort-btn.active {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

/* Thread de comentários */
.comment-thread {
    margin-bottom: 1.5rem;
    padding-left: 15px;
    position: relative;
    border-left: 3px solid transparent;
}

.comment-thread.comment-reply {
    margin-left: 1.5rem;
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.comment-thread.depth-2 {
    margin-left: 2rem;
}

.comment-thread.depth-3 {
    margin-left: 1rem;
}

.comment-thread.depth-0:hover {
    border-left: 3px solid var(--primary-green);
}

/* Estrutura do comentário */
.comment {
    display: flex;
    gap: 1rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.2s ease;
    border-left: 2px solid var(--primary-green);
}

.comment:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Votação lateral */
.comment-voting {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 40px;
}

.vote-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 1.25rem;
    padding: 0.25rem;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.vote-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.vote-btn.vote-up.voted {
    color: var(--primary-green);
}

.vote-btn.vote-down.voted {
    color: #dc3545;
}

.vote-count {
    font-weight: 600;
    font-size: 0.875rem;
    color: #333;
    min-width: 24px;
    text-align: center;
}

/* Conteúdo do comentário */
.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.comment-meta {
    flex: 1;
}

.comment-author-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    color: #333;
    font-size: 0.9375rem;
}

.user-badge {
    background: #f0f0f0;
    padding: 0.125rem 0.5rem;
    border-radius: 3px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-badge.badge-advogado {
    background: #ffc107;
    color: #000;
}

.user-badge.badge-assinante {
    background: #17a2b8;
    color: #fff;
}

.user-badge.badge-moderador {
    background: #28a745;
    color: #fff;
}

.user-badge.badge-admin {
    background: #dc3545;
    color: #fff;
}

.comment-time {
    font-size: 0.8125rem;
    color: #999;
    margin-top: 0.125rem;
}

.comment-text {
    color: #333;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    max-height: 150px;
    overflow: hidden;
    position: relative;
}

.comment-text.expanded {
    max-height: none;
}

/* Ações do comentário */
.comment-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.comment-action-btn {
    background: transparent;
    border: none;
    color: #666;
    font-size: 0.8125rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.comment-action-btn:hover {
    background: #f5f5f5;
    color: var(--primary-green);
}

.comment-action-btn i {
    font-size: 1rem;
}

/* Formulário de resposta */
.reply-form-wrapper {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.reply-form .comment-textarea {
    min-height: 80px;
    font-size: 0.875rem;
}

.reply-form .form-footer {
    justify-content: flex-end;
}

.reply-form .form-footer .form-hint {
    display: none;
}

/* Respostas aninhadas */
.comment-replies {
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .comment-thread.comment-reply {
        margin-left: 1.5rem;
        padding-left: 1rem;
    }

    .comment {
        padding: 1rem;
    }

    .comment-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .vote-btn {
        font-size: 1rem;
    }

    .comment-actions {
        flex-wrap: wrap;
    }
}

/* Form footer layout melhorado */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.char-count {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #dc3545 !important;
    transition: color 0.2s ease;
}

.char-count.valid {
    color: #28a745 !important;
    font-weight: 600;
}

@media (max-width: 768px) {
    .form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .form-footer-left {
        order: 2;
    }

    .submit-btn {
        order: 1;
        width: 100%;
    }
}
