/* blog.css - Estilos específicos para a página do blog */

/* Seção Hero Principal - Igual ao contato */
.blog-hero {
    background: #002b80;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.blog-hero .display-4 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.blog-hero .lead {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header da seção com categorias integradas */
.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.categories-integrated {
    margin-top: 2rem;
}

.categories-menu {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.category-btn {
    padding: 8px 20px;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 30px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.category-btn:hover, .category-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* Hero para Notícias */
.news-hero {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.news-badge {
    background-color: #dc3545;
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.news-hero-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.news-hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #6c757d;
    line-height: 1.6;
}

.read-more-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding-bottom: 2px;
    border-bottom: 2px solid #007bff;
}

.read-more-link:hover {
    color: #0056b3;
    gap: 12px;
}

.news-hero-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-hero-image:hover {
    transform: scale(1.02);
}

/* Cards de Notícias */
.news-cards-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    font-size: 2.5rem;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #007bff;
    margin: 15px auto;
}

.news-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.card-image {
    height: 200px;
    overflow: hidden;
}

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

.news-card:hover .card-image img {
    transform: scale(1.1);
}

.card-header {
    padding: 15px 20px 0;
    display: flex;
    justify-content: space-between;
    border: none;
    background: transparent;
}

.category {
    background-color: #e9ecef;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.date {
    color: #6c757d;
    font-size: 0.8rem;
}

.card-body {
    padding: 15px 20px;
    flex-grow: 1;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.card-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.card-author {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.card-author i {
    margin-right: 5px;
}

.card-footer {
    padding: 15px 20px;
    background: transparent;
    border-top: 1px solid #e9ecef;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-share span {
    font-size: 0.9rem;
    color: #6c757d;
}

.whatsapp-share, .instagram-share, .linkedin-share {
    color: #6c757d;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.1rem;
}

.whatsapp-share:hover {
    color: #25D366;
    transform: scale(1.2);
}

.instagram-share:hover {
    color: #E4405F;
    transform: scale(1.2);
}

.linkedin-share:hover {
    color: #0077B5;
    transform: scale(1.2);
}

/* Nova Seção: Mídia */
.media-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.media-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: transform 0.3s ease;
}

.media-card:hover {
    transform: translateY(-5px);
}

.media-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: #6c757d;
    font-weight: 600;
}

.media-logo i {
    font-size: 1.5rem;
    color: #007bff;
}

.media-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #343a40;
    line-height: 1.4;
}

.media-card p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-media {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-media:hover {
    color: #0056b3;
    gap: 12px;
}

/* Seção Instagram */
.instagram-section {
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.instagram-feed {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 280px;
    background: #f8f9fa;
}

.instagram-feed:hover {
    transform: translateY(-5px);
}

.instagram-feed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
}

.feed-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #E4405F;
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-feed:hover .instagram-overlay {
    opacity: 1;
}

.instagram-link {
    color: white;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.instagram-link:hover {
    transform: scale(1.2);
}

.btn-instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    border: none;
    color: white;
    padding: 12px 30px;
    transition: all 0.3s ease;
    border-radius: 30px;
    font-weight: 600;
}

.btn-instagram:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4);
}

/* Seção Feriados - Layout Melhorado */
.holidays-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.calendar-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-top: 15px;
}

.calendar-header {
    grid-column: 1 / -1;
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #343a40;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.calendar-day {
    padding: 10px 4px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
    font-size: 0.85rem;
}

.calendar-day.weekday {
    background-color: #f8f9fa;
    color: #495057;
    border-color: #e9ecef;
}

.calendar-day.weekend {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.calendar-day:hover {
    background-color: #e3f2fd;
    border-color: #007bff;
}

.calendar-day.holiday {
    background-color: #ffe6e6;
    color: #dc3545;
    font-weight: bold;
    border-color: #dc3545;
}

.calendar-day.today {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    border-color: #0056b3;
}

.calendar-day.empty {
    background-color: transparent;
    cursor: default;
    border-color: transparent;
}

.calendar-day.empty:hover {
    background-color: transparent;
    border-color: transparent;
}

.holidays-card {
    background: #2d3748;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    color: white;
}

.holidays-card h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.holidays-card h3 i {
    color: #007bff;
}

.today-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.today-info i {
    color: #28a745;
    font-size: 1.1rem;
}

.holidays-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.holidays-card li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.holidays-card li:hover {
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 10px;
}

.holidays-card li:last-child {
    border-bottom: none;
}

.holidays-card .date {
    font-weight: 600;
    width: 70px;
    color: #007bff;
    font-size: 1rem;
}

.holidays-card .holiday {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.holiday-icon {
    font-size: 1.1rem;
    width: 25px;
    text-align: center;
}

.holiday-icon.fa-cross {
    color: #dc3545;
}

.holiday-icon.fa-church {
    color: #ffc107;
}

.holiday-icon.fa-flag {
    color: #28a745;
}

.holiday-icon.fa-gift {
    color: #e83e8c;
}

.holiday-icon.fa-tools {
    color: #6f42c1;
}

/* Seção Programação */
.schedule-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.schedule-section h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.schedule-section p {
    margin-bottom: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Loading Animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.news-item {
    transition: all 0.4s ease;
}

.news-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    height: 0;
    margin: 0;
    overflow: hidden;
}

/* Responsividade */
@media (max-width: 768px) {
    .blog-hero .display-4 {
        font-size: 2.2rem;
    }
    
    .blog-hero .lead {
        font-size: 1.1rem;
    }
    
    .news-hero-text h2 {
        font-size: 1.8rem;
    }
    
    .categories-menu {
        padding: 10px;
        border-radius: 25px;
        overflow-x: auto;
        justify-content: flex-start;
    }
    
    .category-btn {
        padding: 6px 15px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .schedule-section .text-end {
        text-align: left !important;
        margin-top: 20px;
    }
    
    .calendar-grid {
        gap: 4px;
    }
    
    .calendar-day {
        padding: 8px 2px;
        font-size: 0.75rem;
    }
    
    .holidays-card {
        padding: 20px;
    }
    
    .today-info {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .media-card {
        padding: 20px;
    }
    
    .instagram-feed {
        height: 250px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .blog-hero {
        padding: 80px 0;
    }
    
    .news-hero {
        padding: 50px 0;
    }
    
    .news-cards-section,
    .media-section,
    .instagram-section,
    .holidays-section {
        padding: 50px 0;
    }
    
    .calendar-day {
        padding: 6px 1px;
        font-size: 0.7rem;
    }
    
    .categories-menu {
        border-radius: 20px;
        padding: 8px;
    }
}