/* ============================================================
   taxonomy-list.css — /categories and /tags listing pages
   CTS Network | #eda720 gold · #2c2b51 navy · #c11111 red
   ============================================================ */

/* ── Page Header ─────────────────────────────────────────── */
.taxonomy-page-header {
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #eda720;
}

.taxonomy-page-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c2b51;
    margin-bottom: 0.25rem;
}

.taxonomy-page-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* ── Responsive Grid ─────────────────────────────────────── */
.taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1023px) and (min-width: 768px) {
    .taxonomy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .taxonomy-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ── Taxonomy Card ───────────────────────────────────────── */
.taxonomy-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.taxonomy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

/* ── Card Header ─────────────────────────────────────────── */
.taxonomy-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.9rem 1.1rem 0.9rem 1rem;
    border-left: 4px solid #eda720;
    background: #fafafa;
}

.taxonomy-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    min-width: 0;
}

.taxonomy-card-title a {
    text-decoration: none;
    color: #2c2b51;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.taxonomy-card-title a:hover {
    color: #eda720;
}

/* Gold pill badge */
.taxonomy-badge {
    display: inline-block;
    background: #eda720;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Mini Post List ──────────────────────────────────────── */
.taxonomy-post-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.taxonomy-post-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s ease;
}

.taxonomy-post-item:last-child {
    border-bottom: none;
}

.taxonomy-post-item:hover {
    background: rgba(237, 167, 32, 0.05);
}

/* Small thumbnail */
.taxonomy-post-thumb {
    flex-shrink: 0;
    width: 52px;
    height: 40px;
    border-radius: 5px;
    overflow: hidden;
}

.taxonomy-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text block */
.taxonomy-post-info {
    flex: 1;
    min-width: 0;
}

.taxonomy-post-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
    color: #2c2b51;
    text-decoration: none;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s;
}

.taxonomy-post-title:hover {
    color: #eda720;
}

.taxonomy-post-date {
    display: block;
    font-size: 0.7rem;
    color: #999;
    margin-top: 2px;
}

/* ── Empty State ─────────────────────────────────────────── */
.taxonomy-no-posts {
    padding: 1rem 1.1rem;
    font-size: 0.82rem;
    color: #aaa;
    text-align: center;
    flex: 1;
    margin: 0;
}

.taxonomy-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #888;
    font-size: 1rem;
}

/* ── Card Footer CTA ─────────────────────────────────────── */
.taxonomy-card-footer {
    padding: 0.65rem 1.1rem;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.taxonomy-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #eda720;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s;
}

.taxonomy-cta:hover {
    color: #d4941a;
    gap: 0.55rem;
}

.taxonomy-cta .cta-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.taxonomy-cta:hover .cta-arrow {
    transform: translateX(3px);
}

/* ============================================================
   Dark mode
   ============================================================ */
[data-bs-theme="dark"] {

    .taxonomy-page-title {
        color: #fff;
    }

    .taxonomy-page-subtitle {
        color: #aaa;
    }

    .taxonomy-page-header {
        border-bottom-color: #eda720;
    }

    .taxonomy-card {
        background: #2b2b51;
        border-color: #3a3a5c;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    }

    .taxonomy-card:hover {
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    }

    .taxonomy-card-header {
        background: #27273f;
        border-left-color: #eda720;
    }

    .taxonomy-card-title a {
        color: #e8e8ff;
    }

    .taxonomy-card-title a:hover {
        color: #eda720;
    }

    .taxonomy-post-item {
        border-bottom-color: #3a3a5c;
    }

    .taxonomy-post-item:hover {
        background: rgba(237, 167, 32, 0.07);
    }

    .taxonomy-post-title {
        color: #ddd;
    }

    .taxonomy-post-title:hover {
        color: #eda720;
    }

    .taxonomy-post-date {
        color: #777;
    }

    .taxonomy-no-posts {
        color: #666;
    }

    .taxonomy-card-footer {
        background: #27273f;
        border-top-color: #3a3a5c;
    }
}
