/* BaiViet Page Styles */
:root {
    --primary-color: #1976d2;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --border-color: #e0e0e0;
    --hover-color: #f5f5f5;
}

/* Page Header */
.baiviet-header {
    background: linear-gradient(135deg, var(--primary-color), #1565c0);
    color: white;
    padding: 30px 0;
    margin-bottom: 30px;
    border-radius: 10px;
}

.baiviet-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.baiviet-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.btn-new-post {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-new-post:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
}

/* Filters */
.baiviet-filters {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-btn {
    background: transparent;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.search-box {
    position: relative;
}

.search-box input {
    padding-right: 50px;
    border-radius: 25px;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.25);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: #1565c0;
}

/* Posts List */
.baiviet-posts {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.widget-title {
    background: linear-gradient(135deg, var(--primary-color), #1565c0);
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.widget-content {
    padding: 0;
}

.sidebar-post {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.sidebar-post:last-child {
    border-bottom: none;
}

.sidebar-post:hover {
    background-color: #f8f9fa;
}

.sidebar-post-title {
    margin-bottom: 8px;
}

.sidebar-post-title a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.sidebar-post-title a:hover {
    color: var(--primary-color);
}

.sidebar-post-stats {
    font-size: 12px;
    color: #6c757d;
}

.sidebar-post-stats .views,
.sidebar-post-stats .comments {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sidebar-post-stats .views::before {
    content: "\f06e";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 10px;
}

.sidebar-post-stats .comments::before {
    content: "\f075";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .baiviet-header .row {
        text-align: center;
    }
    
    .baiviet-header .col-md-4 {
        margin-top: 15px;
    }
    
    .filter-tabs {
        justify-content: center;
        margin-bottom: 15px;
        flex-wrap: wrap;
    }
    
    .baiviet-filters .col-md-6:last-child {
        margin-top: 15px;
    }
    
    .sidebar {
        margin-top: 30px;
        position: static;
    }
    
    .baiviet-title {
        font-size: 2rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .baiviet-header {
        padding: 20px 0;
    }
    
    .baiviet-title {
        font-size: 1.8rem;
    }
    
    .baiviet-description {
        font-size: 1rem;
    }
    
    .btn-new-post {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .filter-tabs {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}
