/* ==================== CATEGORY PAGE ==================== */
/* Hero Section */
.cat-hero {
    background: #1a1a1a;
    color: #fff;
    padding: 48px 0;
}
.cat-hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}
.cat-hero .breadcrumbs {
    margin-bottom: 16px;
}
.cat-hero .breadcrumbs a,
.cat-hero .breadcrumbs span {
    color: rgba(255,255,255,0.5);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.cat-hero .breadcrumbs a:hover { color: #fff; }
.cat-hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    text-transform: uppercase;
}
.cat-hero-desc {
    color: rgba(255,255,255,0.6);
    margin-top: 12px;
    font-size: 0.95rem;
    max-width: 600px;
}
.cat-hero-count {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid rgba(255,255,255,0.2);
    padding: 20px 28px;
    text-align: center;
}
.cat-hero-count .count-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
}
.cat-hero-count .count-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.5);
    margin-top: 6px;
}

/* Subcategories Bar */
.cat-subcategories {
    padding: 16px 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

/* Layout */
.cat-content {
    padding: 40px 0 60px;
}
.cat-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}
.cat-main { min-width: 0; }

/* Post List Item */
.cat-post-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}
.cat-post-item:first-child { padding-top: 0; }
.cat-post-item:hover { padding-left: 4px; }

.cat-post-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
}
.cat-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.cat-post-item:hover .cat-post-thumb img { transform: scale(1.05); }
.cat-post-thumb .thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0c0c1d 0%, #111136 40%, #0d1a2d 100%);
    color: rgba(255,255,255,0.04);
    font-weight: 800;
    font-size: 2rem;
    position: relative;
    overflow: hidden;
}
.cat-post-thumb .thumb-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 16px 16px;
}
.cat-post-thumb .thumb-placeholder::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -20%;
    width: 60%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(14,165,233,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cat-post-info {
    flex: 1;
    min-width: 0;
}
.cat-post-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 4px;
}
.cat-post-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.cat-post-title a { color: inherit; text-decoration: none; }
.cat-post-title a:hover { color: var(--primary); }

.cat-post-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.cat-post-meta .meta-sep {
    margin: 0 6px;
    opacity: 0.4;
}

.cat-post-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.cat-post-item:hover .cat-post-arrow {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Sidebar */
.cat-sidebar { position: sticky; top: 20px; }

/* Category Tree Widget — styles inherited from sidebar.css */

/* Tags Widget */
.widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.widget-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-body);
    text-decoration: none;
    transition: all 0.2s ease;
}
.widget-tag:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Category Responsive */
@media (max-width: 768px) {
    .cat-hero h1 { font-size: 2rem; }
    .cat-hero-inner { flex-direction: column; gap: 20px; }
    .cat-hero-count { align-self: flex-start; }
    .cat-layout { grid-template-columns: 1fr; }
    .cat-post-thumb { width: 90px; height: 65px; }
    .cat-post-title { font-size: 0.92rem; }
    .cat-post-arrow { display: none; }
}
