/* BlueWave Blog - Estilos Globais */

:root {
    --azul-escuro: #0A2A43;
    --azul-claro: #1E90FF;
    --cinza-claro: #F3F4F6;
    --cinza-medio: #E5E7EB;
    --branco: #FFFFFF;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: var(--cinza-claro);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.main-header {
    background: var(--azul-escuro);
    color: var(--branco);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    color: var(--branco);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.3s;
    opacity: 0.9;
}

.social-icon:hover {
    opacity: 1;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--branco);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--branco);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--azul-claro);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--branco);
    transition: all 0.3s;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Hero Banner */
.hero-banner {
    position: relative;
    background: var(--azul-escuro);
    color: var(--branco);
    padding: 0;
    text-align: center;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.7;
}

.hero-banner .container {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
}

.hero-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 0;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-banner p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Sections */
.posts-section,
.blog-section,
.single-post-section,
.contact-section {
    padding: 3rem 0;
}

.section-title,
.page-title {
    font-size: 2rem;
    color: var(--azul-escuro);
    margin-bottom: 2rem;
    font-weight: 700;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: var(--branco);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.post-image {
    width: 100%;
    height: 50px;
    overflow: hidden;
    background: var(--cinza-medio);
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--azul-escuro);
}

.post-title a {
    color: var(--azul-escuro);
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: var(--azul-claro);
}

.post-resumo {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-meta {
    color: #999;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.btn-read-more {
    display: inline-block;
    color: var(--azul-claro);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.btn-read-more:hover {
    color: var(--azul-escuro);
}

.btn-primary {
    display: inline-block;
    background: var(--azul-escuro);
    color: var(--branco);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--azul-claro);
}

.view-all {
    text-align: center;
    margin-top: 2rem;
}

/* Posts List (Blog Page) */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-item {
    background: var(--branco);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: row;
    gap: 2rem;
    transition: box-shadow 0.3s;
}

.post-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.post-item .post-image {
    flex: 0 0 100px;
    width: 100px;
    max-width: 105px;
    height: auto;
    min-height: 75px;
    align-self: flex-start;
    overflow: hidden;
}

.post-item .post-image img {
    width: 100%;
    height: 100%;
    max-width: 90px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.post-item .post-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-item .post-title {
    font-size: 1.5rem;
}

/* Single Post */
.single-post {
    background: var(--branco);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

.btn-back {
    display: inline-block;
    color: var(--azul-claro);
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-weight: 500;
    transition: color 0.3s;
}

.btn-back:hover {
    color: var(--azul-escuro);
}

.single-post .post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--azul-escuro);
}

.post-image-large {
    width: 3.125%;
    margin: 2rem auto;
    border-radius: 8px;
    overflow: hidden;
}

.post-image-large img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content-full {
    margin-top: 2rem;
    line-height: 1.8;
    color: #444;
    white-space: pre-wrap;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--cinza-medio);
}

/* Contact Form */
.contact-form {
    background: var(--branco);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--azul-escuro);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--cinza-medio);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--azul-claro);
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination-link {
    padding: 0.5rem 1rem;
    background: var(--branco);
    color: var(--azul-escuro);
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid var(--cinza-medio);
    transition: all 0.3s;
}

.pagination-link:hover {
    background: var(--azul-claro);
    color: var(--branco);
    border-color: var(--azul-claro);
}

.pagination-current {
    padding: 0.5rem 1rem;
    background: var(--azul-escuro);
    color: var(--branco);
    border-radius: 4px;
    font-weight: 500;
}

/* Footer */
.main-footer {
    background: var(--azul-escuro);
    color: var(--branco);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-text {
    text-align: left;
    flex: 1;
}

.footer-text p {
    margin-bottom: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-social .social-icon {
    color: var(--branco);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.1);
}

.footer-social .social-icon:hover {
    opacity: 1;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.footer-social .social-icon svg {
    width: 20px;
    height: 20px;
}

.main-footer a {
    color: var(--azul-claro);
    text-decoration: none;
}

.main-footer a:hover {
    text-decoration: underline;
}

.no-posts {
    text-align: center;
    padding: 3rem;
    color: #999;
    font-size: 1.125rem;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--azul-escuro);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }
    
    .main-nav.active {
        max-height: 300px;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }
    
    .main-nav li {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .social-icons {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-text {
        text-align: center;
    }
    
    .hero-banner {
        min-height: 350px;
    }
    
    .hero-banner h1 {
        font-size: 2rem;
    }
    
    .hero-banner p {
        font-size: 1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-item {
        flex-direction: column;
    }
    
    .post-item .post-image {
        flex: 1;
        width: 100%;
        order: 1;
    }
    
    .post-item .post-content {
        order: 2;
    }
    
    .single-post {
        padding: 1.5rem;
    }
    
    .single-post .post-title {
        font-size: 1.75rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-banner {
        min-height: 300px;
    }
    
    .hero-banner .container {
        padding: 2rem 0;
    }
    
    .hero-banner h1 {
        font-size: 1.5rem;
    }
    
    .posts-section,
    .blog-section,
    .single-post-section,
    .contact-section {
        padding: 2rem 0;
    }
    
    .post-image-large {
        width: 20%;
    }
}

