/* ==============================
   BLOG & PODCAST - ESTILOS MEJORADOS
   Colores: Verde Olivo (#7a8071) + Blanco + Verde claro (#c6d1cc)
   ============================== */

/* Sección de blog */
.blog-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 70vh;
}

/* Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #7a8071 0%, #5a6051 100%) !important;
    color: white;
    padding: 4rem 0 !important;
}

.blog-hero h1 {
    color: white;
    font-weight: 700;
}

.blog-hero .lead {
    color: rgba(255, 255, 255, 0.9);
}

.blog-hero .hero-image-container img {
    border: 4px solid rgba(255, 255, 255, 0.3);
}

/* Admin Controls - Botones de creación */
.blog-hero .btn-primary {
    background: linear-gradient(135deg, #7a8071 0%, #5a6051 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(122, 128, 113, 0.3);
}

.blog-hero .btn-primary:hover {
    background: linear-gradient(135deg, #5a6051 0%, #4a5041 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 128, 113, 0.4);
}

.blog-hero .btn-success {
    background: linear-gradient(135deg, #c6d1cc 0%, #b0bdb8 100%) !important;
    border: none !important;
    color: #5a6051 !important;
    font-weight: 600;
}

.blog-hero .btn-success:hover {
    background: linear-gradient(135deg, #b0bdb8 0%, #9aaba4 100%) !important;
    color: #4a5041 !important;
    transform: translateY(-2px);
}

.blog-hero .btn-secondary {
    background: linear-gradient(135deg, #5a6051 0%, #4a5041 100%) !important;
    border: none !important;
}

.blog-hero .btn-secondary:hover {
    background: linear-gradient(135deg, #4a5041 0%, #3a4031 100%) !important;
    transform: translateY(-2px);
}

/* Filtros de Categorías */
.blog-filters {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-btn {
    background: white;
    border: 2px solid #7a8071;
    color: #7a8071;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #7a8071 0%, #5a6051 100%);
    color: white;
    border-color: #7a8071;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(122, 128, 113, 0.3);
}

.filter-btn i {
    color: inherit !important;
}

/* Artículo Destacado */
.featured-post {
    background: white;
    padding: 3rem 0;
}

.featured-post .badge {
    background: linear-gradient(135deg, #7a8071 0%, #5a6051 100%) !important;
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 20px;
}

.featured-post h2 a {
    color: #7a8071;
    transition: color 0.3s ease;
}

.featured-post h2 a:hover {
    color: #5a6051;
}

.featured-post .btn-primary {
    background: linear-gradient(135deg, #7a8071 0%, #5a6051 100%) !important;
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.featured-post .btn-primary:hover {
    background: linear-gradient(135deg, #5a6051 0%, #4a5041 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 128, 113, 0.4);
}

.featured-image img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.featured-image img:hover {
    transform: scale(1.02);
}

/* Lista de Artículos */
.blog-posts {
    background: #f8f9fa;
}

.blog-posts h2 {
    color: #7a8071;
    font-weight: 700;
    position: relative;
    margin-bottom: 3rem;
}

.blog-posts h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #7a8071, #c6d1cc);
    border-radius: 2px;
}

/* Tarjetas de Blog y Podcast - Mejoradas */
.content-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(122, 128, 113, 0.25);
}

/* Imagen de la tarjeta */
.content-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #7a8071 0%, #c6d1cc 100%);
}

.content-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.content-card:hover .content-card-image img {
    transform: scale(1.1);
}

/* Placeholder para imágenes */
.content-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7a8071 0%, #5a6051 100%);
}

.content-card-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Overlay de la tarjeta */
.content-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(122, 128, 113, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.content-card-type {
    background: rgba(255, 255, 255, 0.95);
    color: #7a8071;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Cuerpo de la tarjeta */
.content-card-body {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.content-card-title {
    color: #7a8071;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.content-card:hover .content-card-title {
    color: #5a6051;
}

.content-card-excerpt {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* Meta información de la tarjeta */
.content-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.content-card-meta small {
    color: #6c757d;
    font-size: 0.85rem;
}

.content-card-meta .btn-wine {
    background: linear-gradient(135deg, #7a8071 0%, #5a6051 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.content-card-meta .btn-wine:hover {
    background: linear-gradient(135deg, #5a6051 0%, #4a5041 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(122, 128, 113, 0.4);
}

/* Estilos específicos para tarjetas de Podcast */
.podcast-card .content-card-type {
    background: linear-gradient(135deg, #c6d1cc 0%, #b0bdb8 100%);
    color: #5a6051;
}

.podcast-card .content-card-image {
    background: linear-gradient(135deg, #c6d1cc 0%, #7a8071 100%);
}

/* Botones de edición en tarjetas (para admin) */
.edit-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
    margin-top: 0.75rem;
}

.btn-edit-post,
.btn-change-image-post,
.btn-delete-post {
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
}

.btn-edit-post {
    background: linear-gradient(135deg, #c6d1cc 0%, #b0bdb8 100%);
    color: #5a6051;
}

.btn-edit-post:hover {
    background: linear-gradient(135deg, #b0bdb8 0%, #9aaba4 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(198, 209, 204, 0.4);
}

.btn-change-image-post {
    background: linear-gradient(135deg, #7a8071 0%, #5a6051 100%);
    color: white;
}

.btn-change-image-post:hover {
    background: linear-gradient(135deg, #5a6051 0%, #4a5041 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(122, 128, 113, 0.4);
}

.btn-delete-post {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.btn-delete-post:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.4);
}

/* Estado vacío del blog */
.empty-blog-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.empty-blog-state i {
    font-size: 5rem;
    color: #c6d1cc;
    margin-bottom: 1.5rem;
}

.empty-blog-state h3 {
    color: #7a8071;
    font-weight: 700;
    margin-bottom: 1rem;
}

.empty-blog-state p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Responsividad */
@media (max-width: 768px) {
    .content-card-image {
        height: 200px;
    }
    
    .content-card-title {
        font-size: 1.15rem;
    }
    
    .content-card-meta {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-post-item {
    animation: fadeInUp 0.5s ease-in-out;
}

/* Transiciones suaves para filtros */
.blog-post-item {
    transition: all 0.3s ease;
}

.blog-post-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}
