/* ===== taxonomy-poetry.php — extracted inline <style> → taxonomy-poetry.css ===== */
/* ==========================================================================
   TAXONOMY POETRY SCOPED & ISOLATED STYLES
   ========================================================================== */
.tax-page-wrapper {
    width: 100%;
    min-height: 80vh;
    padding: 1rem 0 3.5rem 0;
    background: transparent;
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #0f172a;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

.tax-page-container {
    width: 94%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* 1. Breadcrumb */
.tax-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}

.tax-breadcrumb a {
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tax-breadcrumb a:hover {
    color: #ea580c;
}

.tax-breadcrumb .sep {
    color: #e2e8f0;
    font-size: 0.95rem;
}

.tax-breadcrumb .current {
    color: #0f172a;
    font-weight: 800;
}

/* 2. Hero Banner Card */
.tax-hero-banner {
    position: relative;
    background: #ffffff;
    color: #0f172a;
    border-radius: 20px;
    padding: 2.25rem 2rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.tax-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #ea580c 0%, #f97316 50%, #0f172a 100%);
}

.tax-hero-backdrop {
    display: none;
}

.tax-hero-content {
    position: relative;
    z-index: 2;
    max-width: 840px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.tax-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
    padding: 0.35rem 1rem;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 800;
}

.tax-hero-title {
    font-family: 'Amiri', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
    text-shadow: none;
}

.tax-hero-subtitle {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
    margin: 0;
    max-width: 720px;
}

/* Hero Search */
.tax-search-form {
    width: 100%;
    max-width: 580px;
    margin-top: 0.25rem;
}

.tax-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 50px;
    padding: 0.35rem 0.5rem 0.35rem 1.25rem;
    box-shadow: none;
    border: 2px solid #e2e8f0;
    transition: all 0.25s ease;
}

.tax-search-box:focus-within {
    border-color: #ea580c;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.tax-search-icon {
    position: absolute;
    right: 18px;
    color: #94a3b8;
    font-size: 1.1rem;
}

.tax-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.55rem 2.8rem 0.55rem 0.75rem;
    font-size: 0.98rem;
    font-family: 'Cairo', sans-serif;
    color: #0f172a;
    background: transparent;
}

.tax-search-input::placeholder {
    color: #94a3b8;
}

.tax-search-btn {
    background: linear-gradient(135deg, #0f172a 0%, #ea580c 100%);
    color: #ffffff;
    border: none;
    padding: 0.55rem 1.4rem;
    border-radius: 40px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tax-search-btn:hover {
    background: linear-gradient(135deg, #ea580c 0%, #ea580c 100%);
}

/* Stats Ribbon */
.tax-stats-ribbon {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    width: 100%;
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    margin-top: 0.75rem;
}

.tax-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.tax-stat-item i {
    font-size: 1.2rem;
    color: #ea580c;
    margin-bottom: 0.2rem;
}

.tax-stat-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
}

.tax-stat-lbl {
    font-size: 0.84rem;
    color: #64748b;
}

/* 3. Quick Genres Bar */
.tax-quick-genres-bar {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.1rem 1.5rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
}

.tax-quick-genres-header {
    margin-bottom: 0.75rem;
}

.tax-quick-genres-label {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tax-quick-genres-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tax-genre-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.95rem;
    border-radius: 50px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tax-genre-pill:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.tax-genre-pill:hover i {
    color: #ffffff;
}

.tax-genre-pill i {
    font-size: 0.85rem;
}

/* ==========================================================================
   TAXONOMY CARDS GRID
   ========================================================================== */
.tax-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.tax-card {
    height: auto;
    min-height: 220px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    gap: 0.85rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
    font-size: 1rem;
    text-align: right;
}

.tax-card:hover {
    border-color: #e2e8f0;
}

.tax-card--has-poems {
    border-color: #fed7aa;
    background: #ffffff;
}

.tax-card-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tax-card-emblem {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    color: #ea580c;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fed7aa;
    box-shadow: 0 2px 6px rgba(180, 83, 9, 0.1);
    flex-shrink: 0;
}

.tax-card-emblem i {
    font-size: 1.25rem;
    margin: 0;
    color: #ea580c;
}

.tax-card-header-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.tax-card-title {
    font-family: 'Amiri', serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
    line-height: 1.3;
}

.tax-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tax-card-title a:hover {
    color: #ea580c;
}

.tax-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tax-card-desc {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.tax-badge-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
    padding: 0.2rem 0.65rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
}

.tax-badge-gold i {
    font-size: 0.75rem;
    color: #ea580c;
    margin: 0;
}

.tax-badge-muted {
    display: inline-flex;
    background: #f1f5f9;
    color: #94a3b8;
    padding: 0.2rem 0.65rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}

.tax-card-bottom {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
    border-top: 1px solid #f8fafc;
    padding-top: 0.75rem;
}

.tax-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tax-card-btn:hover {
    color: #ea580c;
}

.tax-card-btn i {
    font-size: 0.8rem;
    margin: 0;
}

/* Educational Box */
.tax-education-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-right: 4px solid #ea580c;
    border-radius: 18px;
    padding: 1.5rem 1.75rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.tax-edu-icon {
    font-size: 1.8rem;
    color: #ea580c;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.tax-edu-body {
    flex: 1;
    min-width: 0;
}

.tax-edu-title {
    font-family: 'Amiri', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
}

.tax-edu-text {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.75;
    margin: 0;
}

/* ==========================================================================
   SINGLE TAXONOMY VIEW STYLES
   ========================================================================== */
.single-tax-hero {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-radius: 20px;
    padding: 2.25rem 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
}

.single-tax-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #ea580c 0%, #f97316 50%, #0f172a 100%);
}

.single-tax-emblem {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0f172a 0%, #ea580c 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fed7aa;
    box-shadow: 0 6px 15px rgba(249, 115, 22, 0.2);
    flex-shrink: 0;
}

.single-tax-emblem i {
    font-size: 2rem;
    color: #fed7aa;
    margin: 0;
}

.single-tax-header-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.single-tax-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: #ea580c;
}

.single-tax-badge i {
    font-size: 0.85rem;
}

.single-tax-title {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.single-tax-desc {
    color: #475569;
    font-size: 0.98rem;
    margin: 0;
    line-height: 1.6;
}

.single-tax-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.single-tax-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.35rem 0.85rem;
    border-radius: 10px;
    font-size: 0.88rem;
    color: #475569;
}

.single-tax-stat i {
    font-size: 0.85rem;
    color: #ea580c;
}

.single-tax-stat strong {
    color: #0f172a;
}

/* Quick Nav Ribbon */
.tax-quick-nav {
    background: #ffffff;
    border-radius: 16px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.tax-quick-label {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
}

.tax-quick-pills {
    display: flex;
    gap: 0.45rem;
}

.tax-quick-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.tax-quick-pill:hover,
.tax-quick-pill--active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.tax-quick-pill i {
    font-size: 0.8rem;
}

/* Single Filter Bar */
.tax-filter-bar {
    background: #ffffff;
    border-radius: 16px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
}

.tax-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.tax-search-field {
    flex: 1;
    min-width: 250px;
    position: relative;
    display: flex;
    align-items: center;
}

.tax-search-field i {
    position: absolute;
    right: 15px;
    color: #94a3b8;
    font-size: 0.95rem;
}

.tax-inner-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.55rem 2.4rem 0.55rem 1rem;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.tax-inner-input:focus {
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.tax-sort-select {
    padding: 0.55rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    cursor: pointer;
}

.tax-sort-field {
    flex-shrink: 0;
}

.tax-filter-submit {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 0.55rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.tax-filter-submit:hover {
    background: #ea580c;
}

.tax-view-switcher {
    display: flex;
    gap: 0.35rem;
    margin-right: auto;
}

.tax-view-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tax-view-btn.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* ==========================================================================
   POEM CARDS GRID
   ========================================================================== */
.tax-poems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tax-poems-grid.is-list-view {
    grid-template-columns: 1fr;
}

.tax-poem-card {
    height: auto;
    min-height: 260px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
    font-size: 1rem;
    text-align: right;
}

.tax-poem-card:hover {
    border-color: #e2e8f0;
}

.tax-poem-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tax-poem-card-title {
    font-family: 'Amiri', serif;
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
}

.tax-poem-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tax-poem-card-title a:hover {
    color: #ea580c;
}

.tax-poem-author {
    font-size: 0.88rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tax-poem-author i {
    font-size: 0.85rem;
    color: #ea580c;
    margin: 0;
}

.tax-poem-author a {
    color: #ea580c;
    font-weight: 700;
    text-decoration: none;
}

/* Opening Verse Box */
.tax-verse-preview {
    background: #fdfbf7;
    border-right: 3px solid #ea580c;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    font-family: 'Amiri', serif;
    font-size: 1.15rem;
    color: #0f172a;
    line-height: 1.85;
    text-align: center;
    box-sizing: border-box;
}

.tax-verse-sep {
    font-size: 0.75rem;
    color: #ea580c;
    margin: 0.25rem 0;
}

.tax-verse-first {
    text-align: right;
}

.tax-verse-second {
    text-align: left;
}

.tax-poem-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem 0;
    border-top: 1px solid #f8fafc;
    border-bottom: 1px solid #f8fafc;
}

.tax-count-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.2rem 0.65rem;
    border-radius: 8px;
}

.tax-count-tag i {
    font-size: 0.75rem;
    color: #ea580c;
    margin: 0;
}

.tax-poem-footer {
    display: flex;
    justify-content: flex-end;
}

.tax-read-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #0f172a;
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tax-read-link:hover {
    color: #ea580c;
}

.tax-btn-gold {
    display: inline-block;
    padding: 0.55rem 1.4rem;
    border-radius: 10px;
    background: #0f172a;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.tax-btn-gold:hover {
    background: #ea580c;
}

/* Pagination */
.tax-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 2rem;
}

.tax-pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.6rem;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.tax-pagination-item:hover:not(.tax-pagination-item--active) {
    background: #ffffff;
    border-color: #ea580c;
    color: #ea580c;
}

.tax-pagination-item--active {
    background: linear-gradient(135deg, #0f172a 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.25);
}

.tax-pagination-item--nav {
    color: #ea580c;
}

.tax-pagination-dots {
    color: #94a3b8;
    padding: 0 0.25rem;
    font-weight: 700;
}

/* Empty Box */
.tax-empty-card,
.tax-empty-box {
    text-align: center;
    padding: 3.5rem 2rem;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.tax-empty-icon,
.tax-empty-box-icon {
    font-size: 3rem;
    color: #e2e8f0;
    margin-bottom: 1rem;
}

.tax-empty-desc {
    color: #64748b;
    margin: 0;
    font-size: 0.98rem;
}

/* Responsive */
@media (max-width: 1100px) {
    .tax-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tax-cards-grid {
        grid-template-columns: 1fr;
    }
    .tax-poems-grid {
        grid-template-columns: 1fr;
    }
    .single-tax-hero {
        flex-direction: column;
        text-align: center;
    }
    .single-tax-stats {
        justify-content: center;
    }
    .tax-stats-ribbon {
        grid-template-columns: 1fr;
    }
    .tax-hero-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .tax-hero-banner {
        padding: 1.75rem 1.25rem;
    }
}
