:root {
    /* Cores do Sistema (Agência MK6) */
    --mk6-dark: #0a0a0a;
    --mk6-black: #000000;
    --mk6-gray: #171717;
    --mk6-accent: #fcb900; /* Amarelo MK6 */
    --mk6-accent-hover: #e5a700;
    
    /* Cores de Texto e Fundo */
    --text-color: #1e293b;
    --text-light: #64748b;
    --bg-color: #f8fafc;
    --white: #ffffff;
    --success: #10b981; /* Verde apenas para aprovado e WhatsApp */
    --danger: #ef4444;
    --border-color: #e2e8f0;
    
    /* Sombras e Raios */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(0, 114, 198, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(215, 173, 19, 0.06) 0%, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Barra do Sistema MK6 (Topo) */
.system-navbar {
    background-color: var(--mk6-black);
    color: var(--white);
    padding: 0.8rem 5%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.system-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.beta-badge {
    background: var(--mk6-accent);
    color: var(--mk6-black);
    padding: 2px 8px;
    border-radius: 4px; /* Quadrado com cantos levemente arredondados, sem o 'redondo' estranho */
    font-size: 0.7rem;
    font-weight: 800;
    margin-left: 8px;
    display: inline-block;
    vertical-align: middle;
}

.navbar-instruction {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.system-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.05);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.system-profile:hover {
    background: rgba(255,255,255,0.1);
}

/* Área do Cliente (Header) */
.client-header {
    background: var(--white);
    padding: 2.5rem 5%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.client-header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.client-info-module {
    display: flex;
    align-items: center;
    gap: 2rem; /* Mais espaço para evitar sobreposição */
}

.client-logo-full {
    height: 55px; /* Reduzido para não brigar com o texto */
    max-width: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.client-logo-full img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.client-details h1 {
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.client-details p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.project-cycle-badge {
    display: inline-block;
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Dashboard Container */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 5%;
    position: relative;
}

/* Glass Panel Utility */
.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

/* Strategy Section */
.campaign-strategy {
    padding: 2.5rem;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.strategy-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.strategy-icon {
    background: var(--mk6-black);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--mk6-accent);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    align-self: flex-start; /* Impede que estique para acompanhar a altura do texto */
    margin-top: 5px; /* Ajuste fino para alinhar com a primeira linha do título */
}

.strategy-header h2 {
    color: var(--mk6-black);
    font-size: 1.6rem;
    font-weight: 700;
}

.strategy-description {
    font-size: 1.15rem;
    color: var(--text-color);
    font-weight: 400; /* Removido o peso 500 para ficar mais leve */
}

.strategy-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.pillar {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(248, 250, 252, 0.8);
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.pillar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: var(--mk6-accent);
}

.pillar-icon {
    color: var(--mk6-black);
    font-size: 1.5rem;
    background: var(--mk6-accent);
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.pillar-text {
    display: flex;
    flex-direction: column;
}

.pillar-text strong {
    font-size: 1.05rem;
    color: var(--text-color);
}

.pillar-text span {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Posts Section */
.section-title {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.section-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 28px;
    background-color: var(--mk6-accent);
    border-radius: 10px;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Horizontal Post Card */
.post-list-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    min-height: auto;
}

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

.post-media-section {
    width: 350px;
    flex-shrink: 0;
    position: relative;
    background: #000; /* Fundo preto para as faixas se a imagem for diferente do aspecto */
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    aspect-ratio: 1/1; /* Garante aspecto quadrado para posts de feed */
}

.carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.7s ease;
    cursor: zoom-in; /* Indica que pode clicar para ampliar */
}

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

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.carousel-btn:hover {
    background: var(--mk6-accent);
    color: var(--mk6-black);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.carousel-dot.active {
    background: var(--mk6-accent);
    width: 20px;
    border-radius: 10px;
}

.post-type-badge {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.post-content-section {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

/* Dedicated Caption Area */
.post-details {
    margin-bottom: 2rem;
}

.post-caption-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--mk6-accent);
    border-radius: 0 12px 12px 0;
    padding: 1.8rem;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.post-caption {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.7;
    white-space: pre-wrap;
}

/* Post Action */
.post-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
    gap: 1rem;
}

.btn-approve, .btn-disapprove {
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-approve {
    background: var(--mk6-black);
}

.btn-approve:hover {
    background: var(--mk6-gray);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.btn-disapprove {
    background: var(--danger);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-disapprove:hover {
    background: #dc2626;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

/* Feedback Area */
.feedback-area {
    margin-top: 1.5rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
    animation: fadeIn 0.3s ease;
}

.feedback-area textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    resize: vertical;
    min-height: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.feedback-area textarea:focus {
    outline: none;
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.btn-send-whatsapp {
    background: #25D366; /* WhatsApp Green */
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    align-self: flex-end;
}

.btn-send-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* Approved State */
.post-list-card.approved {
    border: 2px solid var(--success);
    background: #fafffc;
}

.post-list-card.approved .post-caption-box {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
    border-left-color: var(--success);
}

.post-list-card.approved .btn-approve {
    background: var(--success);
    cursor: default;
    box-shadow: none;
    pointer-events: none;
}

.post-list-card.approved .btn-disapprove {
    display: none;
}

.approved-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 2rem;
    border-radius: 50%;
    font-size: 3rem;
    z-index: 5;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.post-list-card.approved .approved-badge {
    transform: translate(-50%, -50%) scale(1);
}

.post-list-card.disapproved {
    border: 2px solid var(--danger);
}

/* Animation changes */
.approval-summary {
    margin-top: 4rem;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f6fffa 0%, #e3fdf0 100%);
    border-radius: var(--border-radius);
    border: 1px solid #aef0ce;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.15);
    animation: fadeIn 0.8s ease;
}

.summary-content .success-icon {
    font-size: 5rem;
    color: var(--success);
    margin-bottom: 1.5rem;
    animation: bounceIn 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.summary-content h3 {
    color: #047857;
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.summary-content p {
    color: #059669;
    font-size: 1.3rem;
    font-weight: 500;
}

.hidden {
    display: none !important;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes flash {
    0% { background-color: rgba(255,255,255,0.9); }
    100% { background-color: transparent; }
}

.aprovation-flash {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 10;
    animation: flash 0.6s ease-out;
}

/* Responsive constraints */
@media (max-width: 992px) {
    .post-list-card {
        flex-direction: column;
    }
    .post-media-section {
        width: 100%;
        height: 350px;
    }
    .post-content-section {
        padding: 2rem;
    }
    .post-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .btn-approve, .btn-disapprove {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .client-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    .client-info-module {
        flex-direction: column;
        gap: 1rem;
    }
    .client-logo-full {
        height: 45px;
    }
    .project-cycle-badge {
        align-self: center;
    }
    .system-navbar {
        justify-content: center;
        text-align: center;
    }
    .strategy-pillars {
        grid-template-columns: 1fr;
    }
    .navbar-instruction {
        width: 100%;
        order: 3;
        font-size: 0.75rem;
        background: rgba(37, 211, 102, 0.1);
        padding: 5px;
        border-radius: 4px;
    }
}

@media (max-width: 480px) {
    /* Removida a regra que escondia a instrução */
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 80%;
    max-height: 90%;
}

.lightbox-content {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.lightbox-btn:hover {
    background: var(--mk6-accent);
    color: var(--mk6-black);
}

.lightbox-btn.prev { left: 40px; }
.lightbox-btn.next { right: 40px; }

@media (max-width: 768px) {
    .lightbox-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    .lightbox-btn.prev { left: 10px; }
    .lightbox-btn.next { right: 10px; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-caption {
    margin-top: 20px;
    color: #ccc;
    text-align: center;
    width: 80%;
    font-size: 1rem;
}

/* Footer */
.system-footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.5);
}

.system-footer strong {
    color: var(--mk6-black);
    font-weight: 700;
}
