/* ============================================
   CATEGORY.CSS - Category Page Styles
   MobLand.Pro
   ============================================ */

/* Hero Background SVG Patterns */
:root {
    --hero-svg-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3C!-- Crosshair pattern --%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='%23C9A227' stroke-width='0.5' opacity='0.15'/%3E%3Ccircle cx='50' cy='50' r='35' fill='none' stroke='%23C9A227' stroke-width='0.3' opacity='0.1'/%3E%3Cline x1='50' y1='25' x2='50' y2='40' stroke='%23C9A227' stroke-width='0.5' opacity='0.15'/%3E%3Cline x1='50' y1='60' x2='50' y2='75' stroke='%23C9A227' stroke-width='0.5' opacity='0.15'/%3E%3Cline x1='25' y1='50' x2='40' y2='50' stroke='%23C9A227' stroke-width='0.5' opacity='0.15'/%3E%3Cline x1='60' y1='50' x2='75' y2='50' stroke='%23C9A227' stroke-width='0.5' opacity='0.15'/%3E%3C/svg%3E");
    --hero-svg-accent: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3C!-- Large decorative crosshair --%3E%3Ccircle cx='200' cy='200' r='150' fill='none' stroke='%23C9A227' stroke-width='1' opacity='0.08'/%3E%3Ccircle cx='200' cy='200' r='100' fill='none' stroke='%23C9A227' stroke-width='0.8' opacity='0.06'/%3E%3Ccircle cx='200' cy='200' r='50' fill='none' stroke='%23C9A227' stroke-width='0.5' opacity='0.04'/%3E%3Cline x1='200' y1='20' x2='200' y2='120' stroke='%23C9A227' stroke-width='1' opacity='0.08'/%3E%3Cline x1='200' y1='280' x2='200' y2='380' stroke='%23C9A227' stroke-width='1' opacity='0.08'/%3E%3Cline x1='20' y1='200' x2='120' y2='200' stroke='%23C9A227' stroke-width='1' opacity='0.08'/%3E%3Cline x1='280' y1='200' x2='380' y2='200' stroke='%23C9A227' stroke-width='1' opacity='0.08'/%3E%3C/svg%3E");
}

[data-theme="light"] {
    --hero-svg-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3C!-- Crosshair pattern --%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='%230D0D0D' stroke-width='0.5' opacity='0.08'/%3E%3Ccircle cx='50' cy='50' r='35' fill='none' stroke='%230D0D0D' stroke-width='0.3' opacity='0.05'/%3E%3Cline x1='50' y1='25' x2='50' y2='40' stroke='%230D0D0D' stroke-width='0.5' opacity='0.08'/%3E%3Cline x1='50' y1='60' x2='50' y2='75' stroke='%230D0D0D' stroke-width='0.5' opacity='0.08'/%3E%3Cline x1='25' y1='50' x2='40' y2='50' stroke='%230D0D0D' stroke-width='0.5' opacity='0.08'/%3E%3Cline x1='60' y1='50' x2='75' y2='50' stroke='%230D0D0D' stroke-width='0.5' opacity='0.08'/%3E%3C/svg%3E");
    --hero-svg-accent: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3C!-- Large decorative crosshair --%3E%3Ccircle cx='200' cy='200' r='150' fill='none' stroke='%23C9A227' stroke-width='1' opacity='0.15'/%3E%3Ccircle cx='200' cy='200' r='100' fill='none' stroke='%23C9A227' stroke-width='0.8' opacity='0.12'/%3E%3Ccircle cx='200' cy='200' r='50' fill='none' stroke='%23C9A227' stroke-width='0.5' opacity='0.08'/%3E%3Cline x1='200' y1='20' x2='200' y2='120' stroke='%23C9A227' stroke-width='1' opacity='0.15'/%3E%3Cline x1='200' y1='280' x2='200' y2='380' stroke='%23C9A227' stroke-width='1' opacity='0.15'/%3E%3Cline x1='20' y1='200' x2='120' y2='200' stroke='%23C9A227' stroke-width='1' opacity='0.15'/%3E%3Cline x1='280' y1='200' x2='380' y2='200' stroke='%23C9A227' stroke-width='1' opacity='0.15'/%3E%3C/svg%3E");
}

/* ============================================
   CATEGORY HERO (Page Header)
   ============================================ */
.category-hero {
    padding: 140px 40px 60px;
    background: 
        var(--hero-svg-bg),
        linear-gradient(
            180deg,
            var(--bg-tertiary) 0%,
            var(--bg-primary) 100%
        );
    position: relative;
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: var(--hero-svg-accent);
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0.8;
}

.category-hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--hero-svg-accent);
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0.5;
    transform: rotate(45deg);
}

.category-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-headline);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--harrigan-gold);
    margin-bottom: 20px;
}

.category-badge svg {
    width: 18px;
    height: 18px;
    stroke: var(--harrigan-gold);
}

.category-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: 6px;
    margin-bottom: 20px;
}

.category-hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   POST LISTING
   ============================================ */
.post-listing {
    padding: 80px 40px;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.post-listing-container {
    max-width: 1200px;
    margin: 0 auto;
}

.post-listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.post-count {
    font-family: var(--font-headline);
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.post-count span {
    color: var(--harrigan-gold);
}

/* Sort/Filter Controls */
.listing-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-select {
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 10px 35px 10px 15px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.3s ease;
}

.sort-select:hover,
.sort-select:focus {
    border-color: var(--harrigan-gold);
    outline: none;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 80px 40px;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    stroke: var(--border-color);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .category-hero {
        padding: 120px 20px 40px;
    }
    
    .post-listing {
        padding: 60px 20px;
    }
    
    .post-listing-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   LIGHT THEME OVERRIDES
   ============================================ */
[data-theme="light"] .category-hero {
    background: 
        var(--hero-svg-bg),
        linear-gradient(
            180deg,
            var(--bg-tertiary) 0%,
            var(--bg-primary) 100%
        );
}

[data-theme="light"] .post-listing {
    background: var(--bg-primary);
}

[data-theme="light"] .sort-select {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}
