/* Blog System Styles for DBEX Soft */

:root {
    --blog-card-bg: rgba(25, 25, 25, 0.6);
    --blog-card-border: rgba(255, 255, 255, 0.05);
    --blog-accent: #ff0000;
}

/* Blog Listing */
.blog-listing {
    padding: 120px 0 80px 0;
}

.blog-post-card {
    background: var(--blog-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--blog-card-border);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 0, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.blog-img {
    height: 240px;
    overflow: hidden;
    position: relative;
}

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

.blog-post-card:hover .blog-img img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--blog-accent);
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.blog-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
}

.blog-meta i {
    color: var(--blog-accent);
    margin-right: 5px;
}

.blog-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-title a {
    color: var(--heading-color);
}

.blog-title a:hover {
    color: var(--blog-accent);
}

.blog-excerpt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.blog-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--blog-accent);
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Sidebar Widgets */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.widget {
    background: var(--blog-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--blog-card-border);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--blog-accent);
}

.search-form {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-form input {
    background: transparent;
    border: none;
    padding: 12px 15px;
    color: #fff;
    width: 100%;
}

.search-form button {
    background: var(--blog-accent);
    border: none;
    padding: 0 15px;
    color: #fff;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: space-between;
    transition: color 0.3s;
}

.category-list a:hover {
    color: var(--blog-accent);
}

.category-list span {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
}

/* Blog Details */
.blog-details-header {
    padding: 160px 0 60px 0;
    background: linear-gradient(180deg, rgba(255, 0, 0, 0.05) 0%, transparent 100%);
}

.article-content {
    background: var(--blog-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--blog-card-border);
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 40px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.6);
}

.article-img {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.article-body h2, .article-body h3 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-body p {
    margin-bottom: 25px;
}

.article-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-links {
    display: flex;
    gap: 15px;
}

.share-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: 0.3s;
}

.share-links a:hover {
    background: var(--blog-accent);
}

/* Pagination */
.pagination {
    display: flex;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    background: var(--blog-card-bg);
    border: 1px solid var(--blog-card-border);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    transition: 0.3s;
}

.page-link:hover, .page-link.active {
    background: var(--blog-accent);
    border-color: var(--blog-accent);
    color: #fff;
}

@media (max-width: 768px) {
    .article-content {
        padding: 25px;
    }
    .article-title {
        font-size: 1.8rem;
    }
}
