/*
Theme Name: Seu Clipping Empresarial - Testado
Description: Tema WordPress para clipping empresarial - versão testada e funcional
Version: 1.0
Author: Manus AI
*/

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: white;
    text-decoration: none;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-greeting {
    font-size: 0.9rem;
    opacity: 0.9;
}

.login-btn, .logout-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.login-btn:hover, .logout-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    min-height: 60vh;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

/* Posts Area */
.posts-area h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1e3a8a;
    font-weight: 700;
}

.posts-grid {
    display: grid;
    gap: 1.5rem;
}

/* Post Cards */
.post-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.post-card h2 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.post-card h2 a {
    color: #1e3a8a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card h2 a:hover {
    color: #3b82f6;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-excerpt {
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #1e3a8a;
    transform: translateX(3px);
}

/* Sidebar */
.sidebar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.widget {
    margin-bottom: 2rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e3a8a;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: #3b82f6;
}

/* Banner Publicitário */
.banner-publicitario {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    color: #6b7280;
}

.banner-publicitario h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

.banner-publicitario p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.banner-publicitario a {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.banner-publicitario a:hover {
    background: #1e3a8a;
    transform: translateY(-1px);
}

/* Footer */
.site-footer {
    background: #1f2937;
    color: white;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #f9fafb;
}

.footer-section p, .footer-section a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section a:hover {
    color: #3b82f6;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 0.85rem;
}

/* Login Required */
.login-required {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin: 2rem 0;
}

.login-required p {
    color: #92400e;
    margin-bottom: 1rem;
}

.login-required .login-btn {
    background: #f59e0b;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-required .login-btn:hover {
    background: #d97706;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination a, .pagination span {
    padding: 0.7rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-decoration: none;
    color: #4b5563;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.pagination .current {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sidebar {
        order: -1;
        position: static;
    }
    
    .posts-area h1 {
        font-size: 1.6rem;
    }
    
    .post-card {
        padding: 1rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.4rem;
    }
    
    .posts-area h1 {
        font-size: 1.4rem;
    }
    
    .post-card h2 {
        font-size: 1.1rem;
    }
    
    .banner-publicitario {
        padding: 1.5rem 1rem;
    }
}

/* Estados de Loading */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

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

.post-card {
    animation: fadeIn 0.5s ease-out;
}

/* Print Styles */
@media print {
    .site-header, .sidebar, .site-footer, .banner-publicitario {
        display: none;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .post-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}


/* Correção de Layout - Paginação e Widgets */

/* Paginação centralizada e bem espaçada */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
    padding: 2rem 0;
    clear: both;
    width: 100%;
}

.pagination a, 
.pagination span {
    padding: 0.8rem 1.2rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 44px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination a:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.pagination .current {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.pagination .next,
.pagination .prev {
    padding: 0.8rem 1.5rem;
    font-weight: 600;
}

/* Correção do layout da página inicial */
.posts-area {
    width: 100%;
    max-width: none;
}

/* Garantir que widgets não flutuem inadequadamente */
.widget {
    margin-bottom: 2rem;
    clear: both;
    width: 100%;
}

.widget form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
}

.widget input[type="email"] {
    padding: 0.8rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    width: 100%;
}

.widget input[type="email"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.widget button[type="submit"] {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.widget button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Responsividade melhorada */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        gap: 0.3rem;
        margin: 2rem 0;
        padding: 1rem 0;
    }
    
    .pagination a, 
    .pagination span {
        padding: 0.6rem 0.8rem;
        min-width: 40px;
        font-size: 0.9rem;
    }
    
    .pagination .next,
    .pagination .prev {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 0.2rem;
    }
    
    .pagination a, 
    .pagination span {
        padding: 0.5rem 0.6rem;
        min-width: 36px;
        font-size: 0.85rem;
    }
    
    .pagination .next,
    .pagination .prev {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Garantir que o layout não quebre */
.main-content::after {
    content: "";
    display: table;
    clear: both;
}

.content-wrapper::after {
    content: "";
    display: table;
    clear: both;
}

