/* Fonte Inter - moderna e legível para web e celular */
@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Color palette from bandeira.png */
:root {
    --color-green-dark: #046627;
    --color-green-light: #5C8F20;
    --color-yellow-olive: #A1AE18;
    --color-yellow-bright: #FDCF04;
    --color-orange: #F7A10A;
    --color-red-orange: #D04A0D;
    --color-red: #E30F18;
    --color-brown: #5E4220;
    --color-text: #1a1a1a;
    --color-text-light: #4a4a4a;
    --color-bg: #fafafa;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-orange) 100%);
    color: white;
    padding: 0.75rem 0;
    border-bottom: 4px solid var(--color-yellow-bright);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-title a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
}

.site-logo {
    height: 45px;
    width: auto;
    border: 2px solid var(--color-yellow-bright);
    border-radius: 4px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.95rem;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: rgba(255,255,255,0.15);
    border-color: var(--color-yellow-bright);
}

/* Container Layout */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 2rem;
}

.home.full-width + .sidebar {
    display: none;
}

.container:has(.home.full-width) {
    grid-template-columns: 1fr;
}

/* Main Content */
.main-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--color-green-light);
}

.featured-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.featured-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.page-header {
    border-bottom: 3px solid var(--color-yellow-bright);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: var(--color-red);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-description {
    color: var(--color-text-light);
    font-size: 1.2rem;
    font-style: italic;
}

.content h2 {
    color: var(--color-red-orange);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    border-left: 4px solid var(--color-yellow-olive);
    padding-left: 1rem;
}

.content h3 {
    color: var(--color-green-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.content p {
    margin-bottom: 1rem;
}

.content ul,
.content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content li {
    margin-bottom: 0.5rem;
}

.content strong {
    color: var(--color-red);
}

.content a {
    color: var(--color-green-dark);
    text-decoration: underline;
}

.content a:hover {
    color: var(--color-red);
}

.content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Tags */
.tags {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #eee;
}

.tag,
.tag-link {
    display: inline-block;
    background-color: var(--color-yellow-olive);
    color: white;
    padding: 0.3rem 0.8rem;
    margin: 0.3rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag:hover,
.tag-link:hover {
    background-color: var(--color-green-light);
    transform: translateY(-2px);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-top: 3px solid var(--color-green-light);
}

.sidebar-widget h3 {
    color: var(--color-red);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-yellow-bright);
    padding-bottom: 0.5rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Homepage Hero */
.hero {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--color-yellow-bright) 0%, var(--color-orange) 100%);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.hero-image {
    max-width: 300px;
    height: auto;
    border: 4px solid var(--color-red);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero h1 {
    color: var(--color-red);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--color-text);
    font-weight: bold;
    font-style: italic;
}

.intro-compact {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
}

.principles-compact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(92, 143, 32, 0.1) 0%, rgba(4, 102, 39, 0.1) 100%);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.principle-item {
    color: var(--color-text);
}

.principle-item strong {
    color: var(--color-red);
}

.tags-section-home {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--color-yellow-olive);
}

.tags-section-home h3 {
    color: var(--color-red);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-yellow-bright);
    padding-bottom: 0.5rem;
}

.tags-list-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-compact {
    display: inline-block;
    background-color: var(--color-yellow-olive);
    color: white;
    padding: 0.25rem 0.7rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tag-compact:hover {
    background-color: var(--color-green-light);
    transform: translateY(-2px);
}

.cta-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    flex-wrap: wrap;
    max-width: 900px;
}

.btn {
    padding: 0.7rem 1.3rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
    text-align: center;
    min-width: 130px;
}

.btn-primary {
    background-color: var(--color-red);
    color: white;
    border-color: var(--color-red);
}

.btn-primary:hover {
    background-color: var(--color-red-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(227, 15, 24, 0.3);
}

.btn-secondary {
    background-color: var(--color-green-light);
    color: white;
    border-color: var(--color-green-light);
}

.btn-secondary:hover {
    background-color: var(--color-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(92, 143, 32, 0.3);
}

.btn-youth {
    background-color: var(--color-orange);
    color: white;
    border-color: var(--color-orange);
}

.btn-youth:hover {
    background-color: var(--color-red-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(247, 161, 10, 0.3);
}

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

.principle {
    background: linear-gradient(135deg, var(--color-green-light) 0%, var(--color-green-dark) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 3px solid var(--color-yellow-bright);
}

.principle h3 {
    color: var(--color-yellow-bright);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.principle p {
    font-size: 1.1rem;
    font-weight: bold;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--color-green-dark) 0%, var(--color-brown) 100%);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 4px solid var(--color-yellow-bright);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-slogan {
    color: var(--color-yellow-bright);
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

/* Posts Section */
.posts-section {
    margin-top: 3rem;
}

.posts-section h2 {
    color: var(--color-red);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--color-yellow-bright);
    padding-bottom: 0.5rem;
}

.posts-list {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.post-card {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1.5rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--color-green-light);
}

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

.post-thumbnail {
    position: relative;
    overflow: hidden;
    background: var(--color-yellow-olive);
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
    padding-left: 0;
}

.post-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.post-content h3 a {
    color: var(--color-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content h3 a:hover {
    color: var(--color-red-orange);
}

.post-description {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.post-meta time {
    color: var(--color-text-light);
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.read-more {
    color: var(--color-green-dark);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--color-red);
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid var(--color-yellow-bright);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.gallery-link {
    display: block;
    position: relative;
    text-decoration: none;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 1rem;
    background: white;
}

.gallery-caption h3 {
    color: var(--color-red);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.gallery-caption p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin: 0;
}

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

.pagination a,
.pagination .disabled {
    padding: 0.5rem 1rem;
    background-color: white;
    border: 2px solid var(--color-green-light);
    color: var(--color-green-dark);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: var(--color-green-light);
    color: white;
}

.pagination .active {
    background-color: var(--color-red);
    border-color: var(--color-red);
    color: white;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .header-container {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .main-nav ul {
        justify-content: center;
        gap: 0.4rem;
    }
    
    .main-nav a {
        padding: 0.4rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .site-title a {
        font-size: 1.1rem;
    }
    
    .site-logo {
        height: 40px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .sidebar {
        position: static;
    }
    
    .post-card {
        grid-template-columns: 1fr;
    }
    
    .post-thumbnail {
        height: 200px;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .cta-buttons {
        gap: 0.6rem;
        padding: 0 0.5rem;
    }
    
    .btn {
        padding: 0.65rem 1.1rem;
        font-size: 0.9rem;
        min-width: 110px;
        flex: 1 1 auto;
    }
    
    .intro-compact {
        padding: 0.5rem;
        margin-bottom: 1rem;
    }
}
