/* Blog Styles for Dynamic Blog System */

/* Blog Post Card Styles */
.blog-post {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.blog-post .post-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.blog-post .post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post:hover .post-img img {
    transform: scale(1.01);
}

.blog-post .post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-post .post-meta {
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #6c757d;
}

.blog-post .post-meta .date {
    margin-right: 15px;
}

.blog-post .post-meta .category {
    background: #8b9d59;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.blog-post .post-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-post .post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post .post-title a:hover {
    color: #8ab50f;
}

.blog-post .post-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.blog-post .post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.blog-post .read-time {
    font-size: 0.85rem;
    color: #6c757d;
}

.blog-post .read-more {
    color: #8ab50f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-post .read-more:hover {
    color: #698b0b;
}

/* Blog Details Page Styles */
.blog-details .article {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.blog-details .post-img {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.blog-details .post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-details .title {
    font-size: 2rem;
    margin: 30px 0 20px 0;
    color: #333;
    line-height: 1.3;
}

.blog-details .meta-top {
    margin-bottom: 30px;
}

.blog-details .meta-top ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.blog-details .meta-top li {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.blog-details .meta-top i {
    margin-right: 5px;
    color: #8ab50f;
}

.blog-details .meta-top a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-details .meta-top a:hover {
    color: #8ab50f;
}

.blog-details .content {
    line-height: 1.8;
    color: #333;
    font-size: 1.1rem;
}

.blog-details .content h3 {
    color: #333;
    margin: 30px 0 15px 0;
    font-size: 1.5rem;
}

.blog-details .content h4 {
    color: #333;
    margin: 25px 0 10px 0;
    font-size: 1.25rem;
}

.blog-details .content p {
    margin-bottom: 20px;
}

.blog-details .content ul,
.blog-details .content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-details .content li {
    margin-bottom: 8px;
}

.blog-details .content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #8ab50f;
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.blog-details .content blockquote p {
    margin: 0;
    font-size: 1.1rem;
    color: #555;
}

.blog-details .meta-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.blog-details .meta-bottom i {
    color: #8ab50f;
    margin-right: 5px;
}

.blog-details .meta-bottom .tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-details .meta-bottom .tags li a {
    background: #e9ecef;
    color: #495057;
    padding: 5px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.blog-details .meta-bottom .tags li a:hover {
    background: #8ab50f;
    color: white;
}

/* Sidebar Styles */
.sidebar .widget-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.sidebar .widget-title {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8ab50f;
}

.sidebar .post-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.sidebar .post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar .post-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.sidebar .post-item h4 {
    font-size: 0.95rem;
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.sidebar .post-item h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar .post-item h4 a:hover {
    color: #8ab50f;
}

.sidebar .post-item time {
    font-size: 0.8rem;
    color: #6c757d;
}

.sidebar .categories-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .categories-widget li {
    margin-bottom: 10px;
}

.sidebar .categories-widget a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar .categories-widget a:hover {
    color: #8ab50f;
}

.sidebar .categories-widget span {
    background: #e9ecef;
    color: #6c757d;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-details .title {
        font-size: 1.5rem;
    }
    
    .blog-details .meta-top ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .blog-details .content {
        font-size: 1rem;
    }
    
    .sidebar .widget-item {
        padding: 20px;
    }
}

/* Loading Animation */
.blog-loading {
    text-align: center;
    padding: 50px 0;
}

.blog-loading .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8ab50f;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 