/* ============================================
   BLOG STYLES - Fundo Moraga
   ============================================ */

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.92) 0%, rgba(28, 28, 28, 0.88) 100%),
                url('https://fundomoragastorage.blob.core.windows.net/assets/images/blog-hero-bg.jpg') center/cover;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 999px;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.blog-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.blog-hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

/* Featured Post */
.featured-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-color);
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-radius: 6px;
    margin-bottom: 30px;
}

.featured-post {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.featured-image {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-category {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.95);
    color: #000;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-radius: 6px;
}

.featured-content {
    padding: 40px;
}

.post-date {
    display: block;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.featured-content h2 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 20px;
}

.featured-content h2 a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.featured-content h2 a:hover {
    color: var(--accent-color);
}

.post-excerpt {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 25px;
}

.post-meta {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-meta svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

/* Filter Section */
.filter-section {
    padding: 60px 0 40px;
    background: white;
}

.filter-bar {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    justify-content: center;
}

.filter-btn {
    padding: 12px 28px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    color: var(--text-dark);
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.filter-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
}

.search-bar {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-bar input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.search-bar svg {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    opacity: 0.5;
}

/* Blog Grid */
.blog-grid-section {
    padding: 60px 0 100px;
    background: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.post-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    background: rgba(212, 175, 55, 0.95);
    color: #000;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.blog-card-content {
    padding: 30px;
}

.blog-card-content time {
    display: block;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.blog-card-content h3 {
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.blog-card-content h3 a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.blog-card-content h3 a:hover {
    color: var(--accent-color);
}

.blog-card-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reading-time {
    color: var(--text-light);
    font-size: 0.9rem;
}

.read-more {
    color: var(--accent-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--primary-color);
    gap: 8px;
}

/* Load More */
.load-more-section {
    text-align: center;
    margin-top: 60px;
}

/* Newsletter */
.newsletter-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.newsletter-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.newsletter-privacy {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* Dark Mode Specific */
body[data-theme="dark"] {
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --text-dark: #e5e5e5;
    --text-light: #b0b0b0;
    --bg-light: #0f0f0f;
    --white: #0a0a0a;
}

body[data-theme="dark"] .featured-post,
body[data-theme="dark"] .blog-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .featured-section,
body[data-theme="dark"] .blog-grid-section {
    background: #0a0a0a;
}

body[data-theme="dark"] .filter-section {
    background: #0f0f0f;
}

body[data-theme="dark"] .filter-btn {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

body[data-theme="dark"] .search-bar input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-post {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .featured-image {
        min-height: 300px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .navbar {
        z-index: 3000;
    }

    .nav-wrapper {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-menu-toggle {
        display: none !important;
    }

    .nav-links {
        position: static !important;
        left: 0 !important;
        width: 100%;
        padding: 0;
        margin-top: 4px;
        max-height: none;
        overflow: visible;
        box-shadow: none;
        background: transparent;
        display: flex !important;
        flex-wrap: wrap;
        gap: 8px;
        z-index: 2999;
    }

    .blog-hero {
        min-height: 50vh;
        padding: 80px 20px 40px;
    }
    
    .featured-content {
        padding: 30px 20px;
    }
    
    .featured-content h2 {
        font-size: 1.8rem;
    }
    
    .filter-bar {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-card {
        padding: 40px 20px;
    }
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 10px;
    z-index: 10000;
    padding: 10px 20px;
    background: var(--accent-color);
    color: #000;
    font-weight: 700;
    border-radius: 6px;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 10px;
}

/* Dark Mode Toggle Button */
.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: white;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}
