/* GEOINFO.UZ - Minimalist & Modern Design */
/* Performance optimized CSS */

/* ============================================
   BASE STYLES - Minimalist Foundation
   ============================================ */
* {
    box-sizing: border-box;
}

body {
    padding-top: 0;
    background-color: #fafafa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-display: swap;
    line-height: 1.6;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-content {
    margin-top: 0;
    padding-top: 5rem;
}

@media (max-width: 991px) {
    .main-content {
        padding-top: 4rem;
    }
}

.container {
    max-width: 1280px;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Container padding-bottom kamaytirish - footer'dan tepa masofani kamaytirish uchun */
.container.py-4 {
    padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .container.py-md-5 {
        padding-bottom: 1rem;
    }
}

.py-6 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   NAVBAR - Minimalist Navigation
   ============================================ */
.navbar {
    z-index: 1030;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    border-bottom: 1px solid #f0f0f0;
}

.navbar-brand {
    margin-right: 0 !important;
    transition: opacity 0.2s ease;
}

.navbar-brand:hover {
    opacity: 0.8;
}

.nav-link {
    color: #1a1a1a;
    font-weight: 400;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: transparent !important;
    color: #1a1a1a !important;
    opacity: 0.8;
}

.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.navbar-nav .nav-link:hover {
    background: #f8f8f8 !important;
    color: #1a1a1a !important;
    opacity: 1;
}

.btn:hover {
    transform: none;
    box-shadow: none;
    opacity: 0.9;
}

/* ============================================
   LIVE SEARCH - Modern Search Design
   ============================================ */
.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 400;
    background: #ffffff;
    color: #1a1a1a;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.05);
}

.search-input::placeholder {
    color: #8b8b8b;
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8b8b8b;
    font-size: 1rem;
    pointer-events: none;
}

.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    display: none;
    scrollbar-width: thin;
    scrollbar-color: #e0e0e0 #ffffff;
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: #ffffff;
}

.search-results::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #d0d0d0;
}

.search-results.active {
    display: block;
}

.search-results-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #1a1a1a;
    transition: background 0.2s ease;
    cursor: pointer;
}

.search-results-item:last-child {
    border-bottom: none;
}

.search-results-item:hover {
    background: #fafafa;
}

.search-results-item-priority {
    background: #fafafa;
    border-left: 3px solid #1a1a1a;
}

.search-results-item-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 1rem;
    flex-shrink: 0;
    background: #f5f5f5;
}

.search-results-item-content {
    flex: 1;
    min-width: 0;
}

.search-results-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-results-item-meta {
    font-size: 0.75rem;
    color: #8b8b8b;
    margin-top: 0.25rem;
}

.search-results-empty {
    padding: 2rem;
    text-align: center;
    color: #8b8b8b;
    font-size: 0.9rem;
}

.search-results-loading {
    padding: 1rem;
    text-align: center;
    color: #8b8b8b;
    font-size: 0.9rem;
}


/* ============================================
   TYPOGRAPHY - Clean & Modern
   ============================================ */
.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #1a1a1a;
    letter-spacing: -0.03em;
    margin-bottom: 0;
    line-height: 1.2;
}

/* ============================================
   FILTER TABS - Minimalist Design
   ============================================ */
.filter-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #6b6b6b;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}

.filter-tab:hover {
    color: #1a1a1a;
    border-color: #1a1a1a;
    background: #fafafa;
    transform: translateY(-1px);
}

.filter-tab.active {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================
   POST CARDS - Modern Design
   ============================================ */
/* Row gap - x va y o'qlari bo'yicha bir xil */
.row.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.post-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 0;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

.post-image {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f5f5;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .post-image {
    transform: scale(1.05);
}

.post-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-card:hover .post-image::after {
    opacity: 1;
}

.post-image-placeholder {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d0d0d0;
    font-size: 3rem;
    border: none;
}

.post-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.post-category {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #1a1a1a;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
    z-index: 10;
    text-transform: none;
    letter-spacing: 0;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.5em * 2);
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.post-card:hover .post-title {
    color: #4a4a4a;
}

.post-meta {
    margin-top: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
    gap: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b6b6b;
    font-size: 0.875rem;
    font-weight: 400;
}

.meta-item i {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ============================================
   PAGINATION - Minimalist Design
   ============================================ */
.custom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #ffffff;
    color: #6b6b6b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.pagination-btn:hover {
    background: #fafafa;
    border-color: #1a1a1a;
    color: #1a1a1a;
    transform: translateY(-1px);
}

.pagination-btn.active {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pagination-btn i {
    font-size: 0.9rem;
}

/* ============================================
   POST DETAIL - Minimalist Design
   ============================================ */
.post-detail-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.post-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.post-detail-meta {
    color: #8b8b8b;
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 3rem;
}

.post-detail-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-detail-meta .meta-item:first-child {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    font-weight: 500;
    color: #1a1a1a;
}

.post-featured-image {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    width: 100%;
    background: #f5f5f5;
    margin-bottom: 3rem;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    transition: opacity 0.3s ease;
}

.post-content-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4a4a4a;
    font-weight: 400;
}

.post-content-body h2,
.post-content-body h3,
.post-content-body h4 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-weight: 400;
    color: #1a1a1a;
    font-size: 1.75rem;
}

.post-content-body p {
    margin-bottom: 1.5rem;
}

.post-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    margin: 3rem 0;
}

.post-content-body ul,
.post-content-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content-body blockquote {
    border-left: 2px solid #e0e0e0;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: normal;
    color: #6b6b6b;
    background: transparent;
}

.post-tags .tag-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    color: #6b6b6b;
    font-size: 0.875rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.post-tags .tag-badge:hover {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
    transform: none;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    font-weight: 400;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    background: transparent;
    color: #1a1a1a;
}

.share-btn:hover {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
    transform: none;
    box-shadow: none;
}

.share-telegram,
.share-facebook,
.share-twitter,
.share-copy {
    background: transparent;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
}

.share-telegram:hover,
.share-facebook:hover,
.share-twitter:hover,
.share-copy:hover {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.share-copy.copied {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.share-copy.copied:hover {
    background: #059669;
    border-color: #059669;
}

/* ============================================
   RESPONSIVE - Mobile First
   ============================================ */

/* Desktop (1280px+) - Default styles already set */

/* Laptop (1024px - 1279px) */
@media (max-width: 1279px) and (min-width: 1024px) {
    .container {
        max-width: 1200px;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .main-content {
        padding-top: 4rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .filter-tabs {
        width: 100%;
        justify-content: flex-start;
    }
    
    .post-image {
        height: 280px;
    }
    
    .post-detail-title {
        font-size: 2.25rem;
    }
    
    .search-container {
        max-width: 100%;
    }
}

/* Mobile Landscape & Small Tablet (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    body {
        padding-top: 50px;
    }
    
    .main-content {
        padding-top: 2rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .navbar .container.py-3 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
        flex-shrink: 0 !important;
        margin-right: 1rem !important;
    }
    
    section .d-flex.justify-content-between,
    section .d-flex.flex-wrap,
    .category-header,
    .tag-header {
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        margin-bottom: 0.75rem !important;
    }
    
    .filter-tabs {
        flex-wrap: nowrap !important;
        gap: 0.375rem;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }
    
    .filter-tab {
        padding: 0.375rem 0.875rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .post-image {
        height: 240px;
        margin-bottom: 1rem;
    }
    
    .post-title {
        font-size: 1.25rem;
        max-height: calc(1.5em * 2);
    }
    
    .post-detail-title {
        font-size: 2rem;
    }
    
    .post-content-body {
        font-size: 1rem;
    }
    
    .post-card {
        padding-bottom: 1.25rem;
        margin-bottom: 0;
    }
    
    .post-content {
        padding: 0.875rem !important;
        gap: 0.375rem !important;
    }
    
    .post-meta {
        padding-top: 0.625rem !important;
    }
    
    .row.g-4 {
        --bs-gutter-y: 0.75rem;
        --bs-gutter-x: 0.75rem;
    }
    
    .row.g-5 {
        --bs-gutter-y: 1rem;
        --bs-gutter-x: 1rem;
    }
    
    .container.py-4 {
        padding-top: 0.75rem !important;
        padding-bottom: 0 !important;
    }
    
    nav.mt-3,
    nav.mt-5 {
        margin-top: 0.375rem !important;
    }
    
    .custom-pagination {
        margin-top: 0.75rem !important;
        margin-bottom: 0 !important;
        gap: 0.375rem;
    }
    
    aside.mt-5 {
        margin-top: 0.5rem !important;
    }
    
    footer.mt-1,
    footer.mt-2,
    footer.mt-3,
    footer.mt-5 {
        margin-top: 0 !important;
    }
    
    section.mb-2,
    section.mb-4 {
        margin-bottom: 0.375rem !important;
    }
    
    .sidebar-card.mb-4 {
        margin-bottom: 0.5rem !important;
    }
    
    .sidebar-header {
        padding: 0.5rem 0.875rem;
    }
    
    .sidebar-content {
        padding: 0.625rem 0.875rem;
    }
    
    .category-item {
        padding: 0.375rem 0.5rem;
        margin-bottom: 0.375rem;
    }
    
    .tag-item {
        padding: 0.25rem 0.5rem;
        margin: 0.125rem 0.25rem 0.125rem 0;
    }
    
    .navbar-nav.mx-auto {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .search-container {
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .search-results {
        position: fixed;
        top: auto;
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-height: 50vh;
    }
}

/* Mobile Portrait (< 576px) */
@media (max-width: 575px) {
    body {
        padding-top: 50px;
    }
    
    .main-content {
        padding-top: 1.5rem;
    }
    
    .container {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }
    
    .container.py-4 {
        padding-top: 0.5rem !important;
        padding-bottom: 0 !important;
    }
    
    .navbar .container.py-3 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .navbar-brand img {
        height: 26px !important;
    }
    
    .section-title {
        font-size: 1.5rem;
        width: 100%;
        margin-bottom: 0.75rem;
        margin-right: 0 !important;
    }
    
    section .d-flex.justify-content-between,
    .category-header,
    .tag-header {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        margin-bottom: 0.75rem !important;
    }
    
    .filter-tabs {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0 !important;
        margin-top: 0.5rem;
        gap: 0.375rem;
    }
    
    .filter-tab {
        padding: 0.375rem 0.875rem;
        font-size: 0.85rem;
    }
    
    .post-image {
        height: 200px;
        margin-bottom: 0.75rem;
    }
    
    .post-title {
        font-size: 1.125rem;
        max-height: calc(1.5em * 2);
    }
    
    .post-detail-title {
        font-size: 1.75rem;
    }
    
    .post-content-body {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .post-card {
        padding-bottom: 1rem;
        margin-bottom: 0;
    }
    
    .post-content {
        padding: 0.75rem !important;
        gap: 0.25rem !important;
    }
    
    .row.g-4 {
        --bs-gutter-y: 0.5rem;
        --bs-gutter-x: 0.5rem;
    }
    
    .row.g-5 {
        --bs-gutter-y: 0.75rem;
        --bs-gutter-x: 0.75rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding-top: 0.375rem !important;
    }
    
    .meta-item {
        font-size: 0.85rem;
    }
    
    nav.mt-3,
    nav.mt-5 {
        margin-top: 0.375rem !important;
    }
    
    .custom-pagination {
        margin-top: 0.5rem !important;
        margin-bottom: 0 !important;
        gap: 0.25rem;
    }
    
    .pagination-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    aside.mt-5 {
        margin-top: 0.75rem !important;
    }
    
    footer.mt-1,
    footer.mt-2,
    footer.mt-3,
    footer.mt-5 {
        margin-top: 0 !important;
    }
    
    section.mb-2,
    section.mb-4 {
        margin-bottom: 0.375rem !important;
    }
    
    .sidebar-card {
        margin-bottom: 0.5rem;
    }
    
    .sidebar-header {
        padding: 0.375rem 0.625rem;
    }
    
    .sidebar-content {
        padding: 0.5rem 0.625rem;
    }
    
    .category-item {
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem;
        margin-bottom: 0.375rem;
    }
    
    .tag-item {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
        margin: 0.0625rem 0.25rem 0.0625rem 0;
    }
    
    .navbar-nav.mx-auto {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .search-container {
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .search-input {
        padding: 0.5rem 2.25rem 0.5rem 0.875rem;
        font-size: 0.875rem;
    }
    
    .search-icon {
        right: 0.875rem;
        font-size: 0.9rem;
    }
    
    .search-results {
        position: fixed;
        top: auto;
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
        max-height: 60vh;
        border-radius: 6px;
    }
    
    .search-results-item {
        padding: 0.625rem;
    }
    
    .search-results-item-image {
        width: 50px;
        height: 50px;
        margin-right: 0.625rem;
    }
    
    .search-results-item-title {
        font-size: 0.875rem;
    }
    
    .search-results-item-meta {
        font-size: 0.7rem;
    }
    
    .post-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem !important;
        margin-top: 0.5rem !important;
    }
    
    .post-share .d-flex,
    .post-tags .d-flex {
        gap: 0.375rem;
    }
    
    .share-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .tag-badge {
        padding: 0.25rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .post-featured-image {
        margin-bottom: 1rem !important;
    }
    
    .post-tags,
    .post-share {
        margin-top: 1rem !important;
        padding-top: 0.75rem !important;
    }
}


/* ============================================
   SIDEBAR - Minimalist Design
   ============================================ */
.sidebar {
    position: sticky;
    top: 120px;
}

@media (max-width: 991px) {
    .sidebar {
        position: relative;
        top: 0;
    }
}

.sidebar-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    margin-bottom: 1rem;
    overflow: hidden;
}

.sidebar-card:last-child {
    margin-bottom: 0;
}

.sidebar-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

.sidebar-header {
    background: #fafafa;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1a1a1a;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
}

.sidebar-header i {
    font-size: 1.25rem;
    opacity: 0.6;
}

.sidebar-header h6 {
    font-weight: 400;
    letter-spacing: 0;
    font-size: 1rem;
}

.sidebar-content {
    padding: 0.75rem 1rem;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.375rem 0.625rem;
    margin-bottom: 0.5rem;
    background: #fefefe;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.category-item:last-child {
    margin-bottom: 0;
}

.category-item:hover {
    background: #f5f5f5;
    color: #1a1a1a;
    border-color: #d0d0d0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.category-name {
    font-weight: 400;
    font-size: 0.95rem;
}

.category-count {
    background: #ffffff;
    color: #6b6b6b;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 32px;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    margin: 0.1875rem 0.375rem 0.1875rem 0;
    background: #fefefe;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tag-item:hover {
    background: #f5f5f5;
    color: #1a1a1a;
    border-color: #d0d0d0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}


/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-muted {
    color: #8b8b8b !important;
}

/* Remove all will-change for better performance */
.post-card,
.pagination-btn,
.filter-tab,
.nav-link {
    will-change: auto;
}
