/* style.css - Estilos do Portal de Notícias */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-top {
    background: #f8f9fa;
    padding: 10px 0;
    font-size: 14px;
}

.search-social {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 5px 15px;
}

.search-box input {
    border: none;
    outline: none;
    margin-left: 10px;
    font-size: 12px;
}

.header-links {
    display: flex;
    gap: 20px;
}

.header-links a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #666;
    font-size: 16px;
}

.header-main {
    padding: 30px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.site-title {
    font-size: 48px;
    font-weight: 300;
    color: #333;
    letter-spacing: -1px;
}

.site-tagline {
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

/* Navigation */
.main-nav {
    background: #fff;
    border-top: 3px solid #007bff;
}

.main-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
}

.main-nav a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    background: #f8f9fa;
    color: #007bff;
}

/* Main Content */
.main-content {
    padding: 40px 0;
    min-height: 600px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

/* News Grid */
.news-grid {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
    color: #333;
}

/* Featured Article */
.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.featured-article .article-image {
    overflow: hidden;
    border-radius: 8px;
}

.featured-article img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-article img:hover {
    transform: scale(1.05);
}

.featured-article h3 {
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.article-meta .author {
    font-weight: 500;
}

.featured-article p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comments {
    color: #666;
    font-size: 14px;
}

.read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.grid-article {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.grid-article .article-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 6px;
}

.grid-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-article h4 {
    font-size: 18px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.grid-article p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.read-more-small {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background: #007bff;
    color: #fff;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sidebar-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

/* Sidebar Articles */
.sidebar-article {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.sidebar-article:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-article-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 6px;
}

.sidebar-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-article h4 {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.sidebar-article h4 a {
    color: #333;
    text-decoration: none;
}

.sidebar-article h4 a:hover {
    color: #007bff;
}

.sidebar-article .date {
    font-size: 12px;
    color: #666;
}

/* Ad Placeholder */
.ad-placeholder {
    background: #f8f9fa;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ddd;
    border-radius: 6px;
}

.ad-placeholder p {
    color: #999;
    font-size: 18px;
}

/* Social Widget */
.social-widget {
    text-align: center;
}

.social-widget p {
    margin-bottom: 15px;
    color: #666;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-btn:hover {
    transform: scale(1.1);
}

.social-btn.facebook { background: #3b5998; }
.social-btn.twitter { background: #1da1f2; }
.social-btn.instagram { background: #e1306c; }
.social-btn.youtube { background: #ff0000; }

/* Newsletter Widget */
.newsletter-widget p {
    margin-bottom: 15px;
    color: #666;
}

.newsletter-widget form {
    display: flex;
    gap: 10px;
}

.newsletter-widget input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.newsletter-widget button {
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.newsletter-widget button:hover {
    background: #0056b3;
}

/* Footer */
.main-footer {
    background: #333;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h4 {
    margin-bottom: 15px;
    color: #fff;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #bbb;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .featured-article {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .header-links,
    .social-icons {
        display: none;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
    }
    
    .site-title {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .grid-article {
        flex-direction: column;
    }
    
    .grid-article .article-image {
        width: 100%;
        height: 200px;
    }
}