/* ============================================
   CWA - Publicação Normal
   Layout idêntico ao Figma
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #FFFFFF;
    color: #333;
    line-height: 1.5;
}

.page-wrapper {
    min-height: 100vh;
    padding: 20px;
}

/* ============================================
   HEADER PRINCIPAL
   ============================================ */
.top-header {
    max-width: 1200px;
    margin: 0 auto 15px;
}

.header-inner {
    background: #EAEAEA;
    border-radius: 50px;
    padding: 20px 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 80px;
}

/* Logo CWA */
.logo-cwa {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-cwa img {
    height: 58px;
    width: auto;
}

/* Navegação Pills */
.nav-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-pill {
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 25px;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: none;
}

.nav-pill:hover {
    background: #f0f0f0;
}

.nav-pill.active {
    background: #fff;
    color: #333;
    font-weight: 600;
}

.nav-pill-red {
    background: #C41230;
    color: #fff;
}

.nav-pill-red:hover {
    background: #B01426;
}

.nav-pill-red.active {
    background: #CE162C;
    color: #fff;
}

/* Avatar no Header */
.header-avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #CE162C;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.avatar-text {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

/* ============================================
   BARRA DE STATUS
   ============================================ */
.status-bar {
    max-width: 1200px;
    margin: 0 auto 30px;
}

.status-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}

/* Ícones de Sentimento */
.status-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sentiment-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
}

.sentiment-toggle input {
    display: none;
}

.toggle-bg {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
    background: #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

input:checked + .toggle-bg {
    opacity: 1;
}

input:checked + .toggle-green {
    background: #4CAF50;
}

input:checked + .toggle-yellow {
    background: #FFC107;
}

input:checked + .toggle-red {
    background: #F44336;
}

.sentiment-icon-img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.toggle-bg .sentiment-icon-img {
    filter: brightness(0) invert(1);
}

/* Data */
.status-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0EA5E9;
    font-size: 14px;
    font-weight: 500;
}

.calendar-icon {
    width: 18px;
    height: 18px;
}

/* Botão Busca */
.search-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid #0EA5E9;
    color: #0EA5E9;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.search-button:hover {
    background: #0EA5E9;
    color: #fff;
}

.search-icon {
    width: 16px;
    height: 16px;
}

/* ============================================
   CONTEÚDO
   ============================================ */
.content-area {
    max-width: 800px;
    margin: 0 auto;
}

.content-inner {
    background: transparent;
    padding: 30px 0;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Article Item */
.article-item {
    background: transparent;
    padding: 0;
    border: none;
}

/* Author Row */
.article-author-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.author-avatar-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.author-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details {
    flex: 1;
}

.author-meta-text {
    font-size: 12px;
    font-weight: 500;
    color: #888;
    letter-spacing: 0.3px;
}

.status-badge {
    font-weight: 600;
}

.status-positivo {
    color: #28A745;
}

.status-neutro {
    color: #FCB412;
}

.status-negativo {
    color: #DC3545;
}

/* Headline */
.article-headline {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* Excerpt */
.article-excerpt {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Actions */
.article-actions-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.action-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border-radius: 0;
    border: none;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    background: transparent;
    color: #888;
}

.action-tag svg {
    width: 14px;
    height: 14px;
}

.action-tag:hover {
    color: #555;
}

.action-download {
    color: #DC2626;
}

.action-download:hover {
    color: #B91C1C;
}

.action-view {
    color: #059669;
}

.action-view:hover {
    color: #047857;
}

.action-pdf {
    color: #DC2626;
}

.action-pdf:hover {
    color: #B91C1C;
}

.action-share {
    color: #2563EB;
}

.action-share:hover {
    color: #1D4ED8;
}

.action-print {
    color: #7C3AED;
}

.action-print:hover {
    color: #6D28D9;
}

/* Empty */
.empty-message {
    text-align: center;
    padding: 50px 20px;
    color: #999;
    font-size: 14px;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 1100px) {
    .nav-pills {
        display: none;
    }
    
    .header-inner {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        padding: 10px;
    }
    
    .header-inner {
        padding: 8px 15px;
    }
    
    .status-inner {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    
    .content-inner {
        padding: 20px;
    }
    
    .article-headline {
        font-size: 16px;
    }
    
    .action-tag span {
        display: none;
    }
    
    .action-tag {
        padding: 8px;
        border-radius: 50%;
    }
    
    .sentiment-icon-img {
        width: 20px;
        height: 20px;
    }
}
