:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #f5576c;
    --accent: #4fd1c5;
    --text: #2d3748;
    --text-light: #718096;
    --bg: #f7fafc;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

body.dark-mode {
    --text: #e2e8f0;
    --text-light: #a0aec0;
    --bg: #1a202c;
    --white: #2d3748;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Category Hero */
.category-hero-enhanced {
    background: var(--gradient);
    color: white;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: float 20s infinite;
}

.shape-1 {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-content {
    position: relative;
    z-index: 100;
}

.breadcrumb-nav {
    margin-bottom: 2rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.9rem;
    opacity: 0.9;
}

.breadcrumb-list a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumb-list a:hover {
    opacity: 0.8;
}

.breadcrumb-list .active {
    opacity: 0.7;
}

.category-header {
    text-align: center;
    margin-bottom: 3rem;
}

.category-icon-large {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.category-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-description {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 180px;
    transition: all 0.3s;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Posts Section */
.posts-section {
    padding: 3rem 0;
    background: var(--bg);
}

/* Filter Bar */
.filter-bar {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-left, .filter-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.view-toggle {
    width: 40px;
    height: 40px;
    border: 2px solid #e2e8f0;
    background: transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-light);
}

.view-toggle:hover,
.view-toggle.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
}

.results-count {
    font-weight: 600;
    color: var(--text);
}

.sort-dropdown {
    position: relative;
}

.sort-btn {
    background: var(--white);
    border: 2px solid #e2e8f0;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: var(--text);
}

.sort-btn:hover {
    border-color: var(--primary);
}

.sort-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.sort-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid #f0f0f0;
}

.sort-option:last-child {
    border-bottom: none;
}

.sort-option:hover {
    background: #f7fafc;
}

.sort-option.active {
    background: var(--gradient);
    color: white;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f7fafc;
    border-radius: 2rem;
    padding: 0.25rem;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.search-box:focus-within {
    border-color: var(--primary);
    background: var(--white);
}

.search-box input {
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    outline: none;
    min-width: 200px;
    color: var(--text);
}

.search-btn {
    background: var(--gradient);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    transition: all 0.3s;
}

.search-btn:hover {
    transform: scale(1.1);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    transition: all 0.3s;
}

.posts-grid.list-view {
    grid-template-columns: 1fr;
}

.posts-grid.list-view .post-card-enhanced {
    display: flex;
    flex-direction: row;
}

.posts-grid.list-view .post-image-wrapper {
    width: 300px;
    flex-shrink: 0;
}

.posts-grid.list-view .post-content-area {
    flex: 1;
}

/* Post Card */
.post-card-enhanced {
    background: var(--white);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.post-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.bookmark-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
    color: var(--primary);
}

.bookmark-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.bookmark-btn i.fas {
    color: var(--secondary);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* Post Image */
.post-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-card-enhanced:hover .post-image {
    transform: scale(1.1);
}

.post-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #a0aec0;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.post-card-enhanced:hover .image-overlay {
    opacity: 1;
}

.overlay-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.overlay-btn.primary {
    background: white;
    color: var(--primary);
}

.overlay-btn.primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.overlay-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.post-date-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

/* Post Content */
.post-content-area {
    padding: 2rem;
}

.post-category-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.post-title-enhanced {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem 0;
    line-height: 1.4;
}

.post-title-enhanced a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

.post-title-enhanced a:hover {
    color: var(--primary);
}

.post-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.post-tags {
    display: flex;
...