/* ========================================
   TAXONOMY PAGE (Category & Tag)
   ======================================== */

.taxonomy-content {
    background: var(--puna-bg);
    padding: 16px 16px 32px;
    color: var(--puna-text);
}

.taxonomy-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0 16px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    background: var(--puna-bg);
    backdrop-filter: blur(10px);
    background: rgba(var(--puna-bg-rgb), 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
    position: relative;
}


.taxonomy-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--puna-text);
    letter-spacing: -0.5px;
}

.taxonomy-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    cursor: grab;
    user-select: none;
}

.taxonomy-tabs:active {
    cursor: grabbing;
}

.taxonomy-tabs::-webkit-scrollbar {
    display: none;
}

.taxonomy-tabs .tab {
    flex-shrink: 0;
    white-space: nowrap;
    border: 1px solid rgba(22,24,35,0.15);
    background: var(--puna-bg);
    color: var(--puna-text);
    padding: 6px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.taxonomy-tabs .tab:hover {
    border-color: rgba(22,24,35,0.25);
    background: rgba(22,24,35,0.03);
}

.taxonomy-tabs .tab.active {
    background: var(--puna-primary);
    color: var(--puna-bg);
    border: none;
}

.taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

/* ========================================
   EMPTY STATE
   ======================================== */

.taxonomy-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 60px 20px;
    text-align: center;
}

.taxonomy-empty-state .icon-svg,
.taxonomy-empty-state .icon-img {
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
    color: #666;
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(38%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(95%) contrast(95%);
}

.taxonomy-empty-state h3 {
    color: #666;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.taxonomy-empty-state p {
    color: #999;
    font-size: 16px;
    margin: 0 0 24px 0;
    line-height: 1.5;
    max-width: 500px;
}

.taxonomy-empty-state .empty-state-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--puna-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.taxonomy-empty-state .empty-state-btn:hover {
    background: color-mix(in srgb, var(--puna-primary) 90%, black);
    transform: translateY(-1px);
}

.taxonomy-empty-state .empty-state-btn:active {
    transform: translateY(0);
}

.taxonomy-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.media-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    background: var(--puna-muted);
}

.media-wrapper.ratio-9x16::before {
    content: "";
    display: block;
    padding-top: calc(16 / 9 * 100%);
}

.media-wrapper .taxonomy-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.taxonomy-card .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.taxonomy-card:hover .video-overlay {
    opacity: 1;
}

.video-views-overlay {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

/* Taxonomy Page Icons */
.video-overlay .play-icon .icon-svg,
.video-overlay .play-icon .icon-img {
    width: 48px;
    height: 48px;
    color: #fff;
    filter: brightness(0) invert(1);
}

.video-views-overlay .icon-svg,
.video-views-overlay .icon-img {
    width: 10px;
    height: 10px;
    color: #fff;
    filter: brightness(0) invert(1);
}
