/* 
 * Blog Shared Styles
 * Estilos compartidos para todas las páginas de blog
 * Destrabaja-Invierte Platform
 */

/* Blog Card Styles - Same as index.html */
.single-blog-wrap {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.single-blog-wrap:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.blog-details {
    padding: 20px;
}

.blog-details .meta {
    margin-bottom: 10px;
}

.blog-details .meta span {
    display: inline-block;
    margin-right: 15px;
    font-size: 12px;
    color: #666;
}

.blog-details h5 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-details h5 a:hover {
    color: #FF4713;
}

.blog-details p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.blog-meta-bottom .category {
    background: #FF4713;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.blog-meta-bottom .read-time {
    font-size: 12px;
    color: #999;
}

/* Navigation button styles */
#blog-navigation .btn {
    transition: all 0.3s ease;
}

#blog-navigation .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Blog content styles */
.blog-page-area {
    background: #fafafa;
}

.single-blog-inner .thumb img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Comment styles */
.blog-comment .media {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.blog-comment .media:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.blog-comment .media img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.blog-comment .media-body h5 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.blog-comment .media-body .date {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    display: block;
}

.blog-comment .media-body p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Comment form styles */
.comment-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.comment-form .section-title h3 {
    margin-bottom: 20px;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-details {
        padding: 15px;
    }
    
    .blog-meta-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .comment-form {
        padding: 20px 15px;
    }
    
    #blog-navigation .blog-nav-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    #blog-navigation .btn {
        width: 100%;
        margin: 0 !important;
    }
    
    #blog-page-info {
        order: -1;
        margin: 0 0 10px 0 !important;
    }
}

@media (max-width: 576px) {
    .single-blog-wrap {
        margin-bottom: 20px;
    }
    
    .blog-details h5 {
        font-size: 14px;
    }
    
    .blog-details p {
        font-size: 13px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}