/*
Theme Name: CompNews
Theme URI: https://compnews.com.br
Description: Tema moderno e responsivo para agregador de noticias de tecnologia
Version: 1.0
Author: CompNews Team
Author URI: https://compnews.com.br
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: compnews
*/

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
}

/* Container Principal */
.site-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cabecalho */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-title {
    margin: 0;
}

.site-title a {
    color: white;
    text-decoration: none;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
}

.site-description {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin-top: 5px;
}

/* Grade de Noticias */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Card de Noticia */
.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.news-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.news-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #1a202c;
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.news-card-title a:hover {
    color: #667eea;
}

.news-card-excerpt {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
}

.news-card-source {
    color: #667eea;
    font-weight: 600;
}

.news-card-date {
    color: #718096;
}

.news-card-link {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s;
    margin-top: 10px;
}

.news-card-link:hover {
    transform: scale(1.05);
}

/* Paginacao */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    padding: 20px;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #667eea;
    font-weight: 600;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #667eea;
    color: white;
}

.pagination .current {
    background: #667eea;
    color: white;
}

/* Rodape */
.site-footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

.site-footer a {
    color: #667eea;
    text-decoration: none;
}

/* Responsivo */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .site-title a {
        font-size: 24px;
    }
    
    .news-card-image {
        height: 180px;
    }
}

/* Animacoes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    animation: fadeIn 0.5s ease-out;
}

/* Single Post */
.single-post-header {
    background: white;
    padding: 40px;
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

.single-post-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #1a202c;
}

.single-post-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    line-height: 1.8;
    font-size: 16px;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.single-post-content a {
    color: #667eea;
    font-weight: 600;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}