/**
 * Blog Styles
 * Estilos específicos para el blog
 */

/* Blog Item Hover Effect */
.blog-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

/* Blog Single Post Styles */
.blog-single-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.blog-single-title {
    margin-bottom: 20px;
    color: #2d3748;
    font-size: 2.5rem;
    line-height: 1.3;
}

.blog-meta {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.blog-updated {
    margin-left: 20px;
}

.blog-body {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-body p {
    margin-bottom: 1.2em;
}

.blog-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Blog Single Post Container */
.blog-single-post {
    width: 100%;
}

#blog-single-view {
    width: 100%;
}

#blog-post-content {
    width: 100%;
    max-width: 100%;
}

#blog-back-btn {
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Loading Spinner */
.blog-spinner {
    font-size: 2rem;
    animation: blog-spin 1s linear infinite;
}

@keyframes blog-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Blog Item Styles */
.blog-item {
    background: white;
    padding: 0;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

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

.blog-item:hover .blog-featured-img {
    transform: scale(1.05);
}

.blog-item-content {
    padding: 25px;
}

.blog-date {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding: 0 25px;
    padding-top: 15px;
}

.blog-item h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    padding: 0 25px;
}

.blog-item h4 a {
    color: #2d3748;
    text-decoration: none;
}

.blog-item p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 0 25px;
}

.blog-item .button {
    margin: 0 25px 25px 25px;
}

/* Featured Image in Single Post */
.blog-featured-image-container {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog-featured-image-full {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
}

/* Responsive Styles for Mobile */
@media only screen and (max-width: 768px) {
    .blog-single-content {
        padding: 20px 15px;
        border-radius: 8px;
        margin: 0;
    }

    .blog-single-title {
        font-size: 1.75rem;
        margin-bottom: 15px;
        line-height: 1.4;
        word-wrap: break-word;
    }

    .blog-meta {
        font-size: 0.85rem;
        margin-bottom: 20px;
        padding-bottom: 15px;
        line-height: 1.6;
    }

    .blog-updated {
        display: block;
        margin-left: 0;
        margin-top: 8px;
    }

    .blog-body {
        font-size: 1rem;
        line-height: 1.7;
        word-wrap: break-word;
    }

    .blog-body p {
        margin-bottom: 1em;
    }

    .blog-body img {
        margin: 15px 0;
        border-radius: 6px;
    }

    .blog-featured-image-container {
        margin-bottom: 20px;
        border-radius: 8px;
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }

    .blog-featured-image-full {
        max-height: 300px;
        border-radius: 0;
    }

    #blog-back-btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 15px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .blog-single-post {
        padding: 0;
    }

    #blog-single-view {
        padding: 0;
    }

    #blog-post-content {
        padding: 0;
    }
}

@media only screen and (max-width: 480px) {
    .blog-single-content {
        padding: 15px 12px;
        border-radius: 6px;
    }

    .blog-single-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .blog-meta {
        font-size: 0.8rem;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }

    .blog-body {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .blog-body p {
        margin-bottom: 0.9em;
    }

    .blog-body img {
        margin: 12px 0;
        border-radius: 4px;
    }

    .blog-featured-image-container {
        margin-left: -12px;
        margin-right: -12px;
        width: calc(100% + 24px);
        margin-bottom: 15px;
    }

    .blog-featured-image-full {
        max-height: 250px;
    }

    #blog-back-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    #blog-single-view {
        padding: 0;
    }

    #blog-post-content {
        padding: 0;
    }
}

