/* ===== poet.php — extracted inline <style> → poet.css ===== */
/* ==========================================================================
   POET PROFILE & DIWAN EXPLORER STYLES (NOTE THEME)
   ========================================================================== */
.poet-diwan-wrapper {
    width: 100%;
    min-height: 80vh;
    padding: 1.5rem 0 3rem 0;
}

.poet-diwan-container {
    width: 94%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* 1. Breadcrumb */
.poet-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.poet-breadcrumb a {
    color: #0f172a;
    font-weight: 600;
    transition: color 0.2s ease;
}




/* 2. Poet Hero Profile Card */
.poet-hero-card {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.poet-hero-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(249, 115, 22, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 15% 80%, rgba(15, 23, 42, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.poet-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.poet-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Avatar / Quill */
.poet-avatar-badge {
    position: relative;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}

.poet-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(145deg, #f97316, #ea580c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.poet-quill-icon {
    position: absolute;
    top: -6px;
    right: -4px;
    font-size: 1.5rem;
    color: #fed7aa;
    transform: rotate(15deg);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.poet-avatar-letter {
    font-size: 2.5rem;
    font-family: 'Amiri', serif;
    font-weight: 700;
}

.poet-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.poet-verified-shield {
    position: absolute;
    bottom: 2px;
    left: 2px;
    background: #ffffff;
    color: #f97316;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Title Box */
.poet-title-box {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.poet-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.poet-main-name {
    font-size: 2.4rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.poet-classical-tag {
    font-size: 0.85rem;
    background: rgba(249, 115, 22, 0.2);
    color: #fed7aa;
    border: 1px solid rgba(249, 115, 22, 0.4);
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.poet-badges-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.poet-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.poet-chip a {
    color: inherit;
}

.poet-chip:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
}

.poet-chip--era {
    color: #fed7aa;
    border-color: rgba(254, 215, 170, 0.3);
}

.poet-chip--country {
    color: #fed7aa;
    border-color: rgba(254, 215, 170, 0.3);
}

.poet-chip--years {
    color: #e2e8f0;
}

.poet-chip--followers {
    color: #e2e8f0;
}

.poet-chip--followers .muted {
    color: #f1f5f9;
}

/* Actions Box */
.poet-actions-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.85rem;
}

.poet-mini-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.poet-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.25s ease;
}

.poet-icon-btn:hover {
    background: #f97316;
    border-color: #f97316;
}

/* Standard Buttons */
.poet-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    text-decoration: none;
}

.poet-btn--follow {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.35);
}

.poet-btn--follow:hover {
    background: linear-gradient(135deg, #c2410c, #c2410c);
    color: #ffffff;
}

.poet-btn--unfollow {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.poet-btn--unfollow:hover {
    background: rgba(220, 38, 38, 0.85);
    border-color: rgba(220, 38, 38, 1);
    color: #ffffff;
}

.poet-btn--outline {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.poet-btn--outline:hover {
    background: #f97316;
    border-color: #f97316;
    color: #ffffff;
}



.poet-btn--sm {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* Follow toggling form wrapper */
.poet-follow-form {
    display: inline-block;
    margin: 0;
    width: 100%;
    max-width: 320px;
}

/* Stats Counter Grid */
.poet-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    background: rgba(0, 0, 0, 0.25);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.poet-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.poet-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(249, 115, 22, 0.2);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: #fed7aa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.poet-stat-data {
    display: flex;
    flex-direction: column;
}

.poet-stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.poet-stat-lbl {
    font-size: 0.82rem;
    color: #cbd5e1;
    margin-top: 0.2rem;
}

/* 3. Main Grid Layout */
.poet-layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}
.poet-main-col {
    min-width: 0;
}
.poet-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.poet-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.poet-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid #f1f5f9;
}

.poet-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Bio Card */
.poet-bio-card {
    border-top: 4px solid #f97316;
}

/* Diwan Catalog section card */
.poet-diwan-catalog {
    border-top: 4px solid #f97316;
}

.poet-bio-text {
    font-size: 1.1rem;
    line-height: 2;
    color: #334155;
    text-align: justify;
    font-family: 'Cairo', sans-serif;
}

/* 4. Diwan Catalog Section */
.poet-catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.poet-catalog-heading {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.poet-catalog-count {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f97316;
}

.poet-view-toggle {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 10px;
}

.poet-view-btn {
    width: 38px;
    height: 34px;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.poet-view-btn.active {
    background: #ffffff;
    color: #f97316;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Filter Bar */
.poet-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    background: #f8fafc;
    padding: 0.85rem 1.25rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.poet-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.poet-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
}

.poet-search-input {
    width: 100%;
    padding: 0.65rem 2.6rem 0.65rem 1rem;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.poet-search-input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.poet-search-clear {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
}

.poet-sort-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.poet-sort-lbl {
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
}

.poet-sort-select {
    padding: 0.6rem 1rem;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 0.9rem;
    font-family: inherit;
    color: #0f172a;
    cursor: pointer;
}

/* Diwan Cards Grid */
.poet-diwan-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.poet-diwan-grid.is-list-view {
    grid-template-columns: 1fr;
}

.diwan-poem-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.diwan-poem-item-card:hover {
    border-color: rgba(249, 115, 22, 0.4);
}

.poem-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.poem-card-num {
    font-size: 0.8rem;
    font-weight: 800;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
}

.poem-card-meta-chips {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.poem-chip {
    font-size: 0.78rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
}

.poem-chip--meter {
    background: #eff6ff;
    color: #1e40af;
}

.poem-chip--rhyme {
    background: #fef3c7;
    color: #92400e;
}

.poem-chip--verses {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}




/* Opening Verse Box */
.poem-card-verse-preview {
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    font-family: 'Amiri', serif;
    font-size: 1.18rem;
    color: #334155;
    line-height: 1.8;
}

.preview-bayt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

/* Fallback placeholder verse when poem has no recorded incipit */
.preview-bayt--placeholder {
    opacity: 0.62;
    font-style: italic;
}

.shatr-first, .shatr-second {
    flex: 1;
    text-align: center;
}

.shatr-sep {
    color: #f97316;
    font-weight: 700;
}


.poem-card-stats {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.poem-read-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    color: #f97316;
    transition: gap 0.2s ease, color 0.2s ease;
}

.poem-read-link:hover {
    color: #ea580c;
    gap: 0.65rem;
}

/* 5. Diwan Pagination */
.poet-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

/* Wrapper holding the page number buttons */
.pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.pagination-btn, .pagination-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 1rem;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pagination-num {
    width: 42px;
    padding: 0;
}

.pagination-num.active {
    background: #f97316;
    color: #ffffff;
    border-color: #f97316;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.pagination-btn:hover, .pagination-num:not(.active):hover {
    background: #f8fafc;
    border-color: #ea580c;
    color: #ea580c;
}

/* Directional variants for prev/next buttons (RTL layout) */
.pagination-btn--prev {
    text-align: right;
}

.pagination-btn--next {
    text-align: left;
}

.pagination-dots {
    color: #94a3b8;
    padding: 0 0.25rem;
    font-weight: 700;
}

/* 6. Sidebar Cards */
.poet-sidebar-card {
    padding: 1.5rem;
}

.poet-side-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 1.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}

.poet-side-title .section-label {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

/* Popular Poems List */
.poet-pop-list, .poet-rel-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.poet-pop-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem;
    border-radius: 12px;
    background: #f8fafc;
    transition: background 0.2s ease;
}

.poet-pop-item:hover {
    background: #f1f5f9;
}

.poet-pop-rank {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.poet-pop-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.poet-pop-link {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.poet-pop-link:hover {
    color: #ea580c;
}

.poet-pop-meta {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Related Poets List */
.poet-rel-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem;
    border-radius: 12px;
    background: #f8fafc;
    transition: background 0.2s ease;
}

.poet-rel-item:hover {
    background: #f1f5f9;
}

.poet-rel-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f97316;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Amiri', serif;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.poet-rel-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.poet-rel-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.poet-rel-name:hover {
    color: #ea580c;
}

.poet-rel-meta {
    font-size: 0.8rem;
    color: #64748b;
}

/* Citation Card */
.poet-cite-text {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
    padding: 0.85rem;
    border-radius: 10px;
    margin: 0 0 1rem 0;
}

/* Toast */
.poet-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #0f172a;
    color: #ffffff;
    padding: 0.75rem 1.75rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid #f97316;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.poet-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Empty State */
.diwan-empty-box {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px dashed #e2e8f0;
}

.diwan-empty-icon {
    font-size: 2.8rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.diwan-empty-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.5rem;
}

.diwan-empty-box p {
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
}

/* Poet-not-found state (whole page level) */
.diwan-empty-state {
    text-align: center;
    padding: 4.5rem 2rem;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

/* Citation/academic reference card */
.poet-cite-card {
    border-top: 4px solid #f97316;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .poet-layout-grid {
        grid-template-columns: 1fr;
    }
    .poet-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .poet-hero-card {
        padding: 1.5rem;
    }
    .poet-title-box {
        min-width: 0;
    }
    .poet-main-name {
        font-size: 1.8rem;
    }
    .poet-stats-grid {
        grid-template-columns: 1fr;
    }
    .poet-diwan-grid {
        grid-template-columns: 1fr;
    }
    .preview-bayt {
        flex-direction: column;
        gap: 0.25rem;
    }
    .shatr-sep {
        display: none;
    }
}

/* Mobile full-width utilization (95–98% of viewport) */
@media (max-width: 768px) {
    .poet-diwan-container {
        width: 100%;
        max-width: 100%;
        padding-left: 8px;
        padding-right: 8px;
    }
    .poet-layout-grid {
        min-width: 0;
    }
    .poet-layout-grid > * {
        min-width: 0;
    }
    .poet-cite-text,
    .poet-side-title {
        overflow-wrap: anywhere;
    }
}

/* =========================================================
   PHASE 6 - hero icon moved out of inline style (poet.php)
   ========================================================= */
.diwan-hero-icon {
    font-size: 3rem;
    color: #f97316;
    margin-bottom: 1rem;
}
