/**
 * Rekhta Poetry - Frontend Styles
 * Rekhta-inspired typography and layout
 */

/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
    --rekhta-primary: #8B4513;
    --rekhta-primary-dark: #6B3410;
    --rekhta-primary-light: #A0522D;
    --rekhta-secondary: #D2691E;
    --rekhta-accent: #DAA520;
    --rekhta-bg: #FDF5E6;
    --rekhta-bg-warm: #FFF8F0;
    --rekhta-bg-card: #FFFFFF;
    --rekhta-text: #2C1810;
    --rekhta-text-light: #5D4037;
    --rekhta-text-muted: #8D6E63;
    --rekhta-border: #E8D5C4;
    --rekhta-shadow: rgba(139, 69, 19, 0.1);
    --rekhta-shadow-hover: rgba(139, 69, 19, 0.2);
    --rekhta-font-urdu: 'Noto Nastaliq Urdu', serif;
    --rekhta-font-hindi: 'Noto Sans Devanagari', sans-serif;
    --rekhta-font-roman: 'Playfair Display', Georgia, serif;
    --rekhta-font-body: 'Roboto', -apple-system, sans-serif;
    --rekhta-radius: 12px;
    --rekhta-radius-sm: 8px;
    --rekhta-transition: 0.3s ease;
}

/* ============================================
   Container & Layout
   ============================================ */
.rekhta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Breadcrumb
   ============================================ */
.rekhta-breadcrumb {
    padding: 15px 0;
    font-size: 0.875rem;
    color: var(--rekhta-text-muted);
    font-family: var(--rekhta-font-body);
}

.rekhta-breadcrumb a {
    color: var(--rekhta-primary);
    text-decoration: none;
    transition: color var(--rekhta-transition);
}

.rekhta-breadcrumb a:hover {
    color: var(--rekhta-primary-dark);
}

.rekhta-breadcrumb .separator {
    margin: 0 8px;
    opacity: 0.5;
}

.rekhta-breadcrumb .current {
    color: var(--rekhta-text);
    font-weight: 500;
}

/* ============================================
   Single Poem Page
   ============================================ */
.rekhta-single-poem {
    background: var(--rekhta-bg);
    min-height: 100vh;
}

.rekhta-poem-header {
    background: linear-gradient(135deg, var(--rekhta-primary-dark) 0%, var(--rekhta-primary) 100%);
    color: white;
    padding: 30px 0 40px;
}

.rekhta-poem-header .rekhta-breadcrumb {
    color: rgba(255,255,255,0.7);
}

.rekhta-poem-header .rekhta-breadcrumb a {
    color: rgba(255,255,255,0.8);
}

.rekhta-poem-header .rekhta-breadcrumb a:hover {
    color: white;
}

.rekhta-poem-title {
    font-family: var(--rekhta-font-urdu);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 15px 0 10px;
    line-height: 1.6;
    direction: rtl;
}

.rekhta-poem-poet-info {
    margin-bottom: 15px;
}

.rekhta-poem-poet-info .rekhta-poet-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-family: var(--rekhta-font-body);
    font-size: 1.1rem;
    transition: opacity var(--rekhta-transition);
}

.rekhta-poem-poet-info .rekhta-poet-link:hover {
    opacity: 0.85;
}

.rekhta-poet-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
}

.rekhta-poet-penname {
    opacity: 0.7;
    font-style: italic;
}

.rekhta-poem-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rekhta-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--rekhta-font-body);
    text-decoration: none;
    transition: all var(--rekhta-transition);
}

.rekhta-badge-form {
    background: rgba(255,255,255,0.2);
    color: white;
}

.rekhta-badge-mood {
    background: rgba(218, 165, 32, 0.3);
    color: #FFE4B5;
}

.rekhta-badge-language {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
}

.rekhta-badge-featured {
    background: var(--rekhta-accent);
    color: var(--rekhta-primary-dark);
    font-weight: 500;
}

/* ============================================
   Script Selector Tabs
   ============================================ */
.rekhta-script-selector {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 20px 0;
    margin-top: -20px;
    position: relative;
    z-index: 2;
}

.rekhta-script-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--rekhta-radius);
    background: var(--rekhta-bg-card);
    color: var(--rekhta-text-muted);
    cursor: pointer;
    transition: all var(--rekhta-transition);
    box-shadow: 0 2px 8px var(--rekhta-shadow);
    font-family: var(--rekhta-font-body);
}

.rekhta-script-btn .script-label {
    font-size: 1.1rem;
    font-weight: 600;
}

.rekhta-script-btn .script-name {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rekhta-script-btn:hover {
    background: var(--rekhta-bg-warm);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--rekhta-shadow-hover);
}

.rekhta-script-btn.active {
    background: var(--rekhta-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

/* ============================================
   Poetry Text Display (Rekhta Style)
   ============================================ */
.rekhta-poem-display {
    background: var(--rekhta-bg-card);
    border-radius: var(--rekhta-radius);
    padding: 50px 40px;
    box-shadow: 0 4px 20px var(--rekhta-shadow);
    margin-bottom: 30px;
    min-height: 200px;
}

.rekhta-poem-text {
    line-height: 2.4;
    display: none;
}

.rekhta-poem-text.active {
    display: block;
}

/* Urdu Text - Nastaliq Style */
.rekhta-text-urdu {
    font-family: var(--rekhta-font-urdu);
    font-size: 1.4rem;
    color: var(--rekhta-text);
    direction: rtl;
    text-align: right;
    padding: 20px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.rekhta-text-urdu p {
    margin-bottom: 1.5em;
    line-height: 2.6;
}

/* Hindi Text */
.rekhta-text-hindi {
    font-family: var(--rekhta-font-hindi);
    font-size: 1.15rem;
    color: var(--rekhta-text);
    text-align: center;
    padding: 20px 0;
    white-space: pre-wrap;
}

.rekhta-text-hindi p {
    margin-bottom: 1.2em;
    line-height: 2.2;
}

/* Roman Text */
.rekhta-text-roman {
    font-family: var(--rekhta-font-roman);
    font-size: 1.05rem;
    color: var(--rekhta-text);
    text-align: center;
    padding: 20px 0;
    font-style: italic;
    white-space: pre-wrap;
}

.rekhta-text-roman p {
    margin-bottom: 1.2em;
    line-height: 2;
}

/* ============================================
   Action Buttons
   ============================================ */
.rekhta-poem-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.rekhta-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 2px solid var(--rekhta-border);
    border-radius: 25px;
    background: var(--rekhta-bg-card);
    color: var(--rekhta-text-light);
    cursor: pointer;
    font-family: var(--rekhta-font-body);
    font-size: 0.9rem;
    transition: all var(--rekhta-transition);
    text-decoration: none;
}

.rekhta-action-btn:hover {
    border-color: var(--rekhta-primary);
    color: var(--rekhta-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--rekhta-shadow);
}

.rekhta-action-btn.active,
.rekhta-favorite-btn.active {
    background: var(--rekhta-primary);
    border-color: var(--rekhta-primary);
    color: white;
}

.rekhta-action-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ============================================
   Sections (Translation, Meanings, etc.)
   ============================================ */
.rekhta-translation-section,
.rekhta-meaning-section,
.rekhta-details-section,
.rekhta-notes-section {
    background: var(--rekhta-bg-card);
    border-radius: var(--rekhta-radius);
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px var(--rekhta-shadow);
}

.rekhta-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--rekhta-font-body);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--rekhta-primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--rekhta-border);
}

.rekhta-section-title .dashicons {
    color: var(--rekhta-accent);
}

.rekhta-translation-content,
.rekhta-meaning-content,
.rekhta-notes-content {
    font-family: var(--rekhta-font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--rekhta-text-light);
}

.rekhta-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.rekhta-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rekhta-text-muted);
    font-family: var(--rekhta-font-body);
}

.detail-value {
    font-size: 1rem;
    color: var(--rekhta-text);
    font-weight: 500;
}

/* ============================================
   Related Poems Section
   ============================================ */
.rekhta-related-section {
    background: var(--rekhta-bg-warm);
    padding: 50px 0;
    margin-top: 40px;
}

.rekhta-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.rekhta-related-card {
    background: var(--rekhta-bg-card);
    border-radius: var(--rekhta-radius-sm);
    padding: 20px;
    transition: all var(--rekhta-transition);
    border: 1px solid var(--rekhta-border);
}

.rekhta-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--rekhta-shadow-hover);
}

.rekhta-related-title {
    font-family: var(--rekhta-font-urdu);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.rekhta-related-title a {
    color: var(--rekhta-text);
    text-decoration: none;
}

.rekhta-related-title a:hover {
    color: var(--rekhta-primary);
}

.rekhta-related-preview {
    font-family: var(--rekhta-font-urdu);
    font-size: 0.95rem;
    color: var(--rekhta-text-muted);
    direction: rtl;
    line-height: 2;
}

/* ============================================
   Archive Pages (Poem/Poet Lists)
   ============================================ */
.rekhta-archive-page {
    background: var(--rekhta-bg);
    min-height: 100vh;
    padding: 40px 0;
}

.rekhta-archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.rekhta-archive-title {
    font-family: var(--rekhta-font-urdu);
    font-size: 1.8rem;
    color: var(--rekhta-primary);
    margin-bottom: 10px;
}

.rekhta-archive-description {
    font-family: var(--rekhta-font-body);
    font-size: 1.1rem;
    color: var(--rekhta-text-muted);
}

.rekhta-term-count {
    display: inline-block;
    background: var(--rekhta-primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 15px;
    font-family: var(--rekhta-font-body);
}

/* ============================================
   Filters Bar
   ============================================ */
.rekhta-filters-bar {
    margin-bottom: 30px;
}

.rekhta-filter-form {
    display: flex;
    justify-content: center;
}

.rekhta-filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.rekhta-filter-select {
    padding: 10px 16px;
    border: 2px solid var(--rekhta-border);
    border-radius: var(--rekhta-radius-sm);
    background: var(--rekhta-bg-card);
    font-family: var(--rekhta-font-body);
    font-size: 0.9rem;
    color: var(--rekhta-text);
    cursor: pointer;
    transition: all var(--rekhta-transition);
    min-width: 150px;
}

.rekhta-filter-select:focus {
    outline: none;
    border-color: var(--rekhta-primary);
}

.rekhta-filter-btn {
    padding: 10px 24px;
    background: var(--rekhta-primary);
    color: white;
    border: none;
    border-radius: var(--rekhta-radius-sm);
    font-family: var(--rekhta-font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--rekhta-transition);
}

.rekhta-filter-btn:hover {
    background: var(--rekhta-primary-dark);
}

/* Era Filter Buttons */
.rekhta-era-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.rekhta-era-btn {
    padding: 8px 20px;
    border-radius: 25px;
    background: var(--rekhta-bg-card);
    color: var(--rekhta-text-light);
    text-decoration: none;
    font-family: var(--rekhta-font-body);
    font-size: 0.9rem;
    border: 2px solid var(--rekhta-border);
    transition: all var(--rekhta-transition);
}

.rekhta-era-btn:hover,
.rekhta-era-btn.active {
    background: var(--rekhta-primary);
    color: white;
    border-color: var(--rekhta-primary);
}

/* Related Terms Navigation */
.rekhta-related-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.rekhta-term-link {
    padding: 6px 14px;
    background: var(--rekhta-bg-card);
    color: var(--rekhta-text-light);
    text-decoration: none;
    font-family: var(--rekhta-font-body);
    font-size: 0.85rem;
    border-radius: 20px;
    border: 1px solid var(--rekhta-border);
    transition: all var(--rekhta-transition);
}

.rekhta-term-link:hover {
    background: var(--rekhta-primary);
    color: white;
    border-color: var(--rekhta-primary);
}

.rekhta-term-link .count {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-left: 4px;
}

/* ============================================
   Poem Cards Grid
   ============================================ */
.rekhta-poems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.rekhta-poem-card {
    background: var(--rekhta-bg-card);
    border-radius: var(--rekhta-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px var(--rekhta-shadow);
    transition: all var(--rekhta-transition);
    position: relative;
    border: 1px solid var(--rekhta-border);
}

.rekhta-poem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--rekhta-shadow-hover);
}

.rekhta-featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--rekhta-accent);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.rekhta-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.rekhta-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--rekhta-transition);
}

.rekhta-poem-card:hover .rekhta-card-image img {
    transform: scale(1.05);
}

.rekhta-card-content {
    padding: 20px;
}

.rekhta-card-header {
    margin-bottom: 15px;
}

.rekhta-card-form {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rekhta-primary);
    font-family: var(--rekhta-font-body);
    margin-bottom: 8px;
}

.rekhta-card-form a {
    color: inherit;
    text-decoration: none;
}

.rekhta-card-form a:hover {
    color: var(--rekhta-primary-dark);
}

.rekhta-card-title {
    font-family: var(--rekhta-font-urdu);
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 0;
    direction: rtl;
}

.rekhta-card-title a {
    color: var(--rekhta-text);
    text-decoration: none;
    transition: color var(--rekhta-transition);
}

.rekhta-card-title a:hover {
    color: var(--rekhta-primary);
}

.rekhta-card-preview {
    margin-bottom: 15px;
}

.rekhta-preview-urdu {
    font-family: var(--rekhta-font-urdu);
    font-size: 1rem;
    line-height: 2.2;
    color: var(--rekhta-text-light);
    direction: rtl;
    text-align: right;
    margin: 0;
}

.rekhta-preview-roman {
    font-family: var(--rekhta-font-roman);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--rekhta-text-light);
    margin: 0;
}

.rekhta-preview-excerpt {
    font-family: var(--rekhta-font-body);
    font-size: 0.9rem;
    color: var(--rekhta-text-muted);
    margin: 0;
}

.rekhta-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--rekhta-border);
}

.rekhta-card-poet {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--rekhta-font-body);
    font-size: 0.85rem;
}

.rekhta-card-poet a {
    color: var(--rekhta-text-muted);
    text-decoration: none;
    transition: color var(--rekhta-transition);
}

.rekhta-card-poet a:hover {
    color: var(--rekhta-primary);
}

.rekhta-poet-avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.rekhta-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--rekhta-primary);
    text-decoration: none;
    font-family: var(--rekhta-font-body);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--rekhta-transition);
}

.rekhta-read-btn:hover {
    color: var(--rekhta-primary-dark);
    gap: 8px;
}

/* ============================================
   Poet Cards Grid
   ============================================ */
.rekhta-poets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.rekhta-poet-card {
    background: var(--rekhta-bg-card);
    border-radius: var(--rekhta-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px var(--rekhta-shadow);
    transition: all var(--rekhta-transition);
    border: 1px solid var(--rekhta-border);
}

.rekhta-poet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--rekhta-shadow-hover);
}

.rekhta-poet-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.rekhta-poet-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.rekhta-poet-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--rekhta-transition);
}

.rekhta-poet-card:hover .rekhta-poet-card-image img {
    transform: scale(1.05);
}

.rekhta-poet-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rekhta-bg);
    color: var(--rekhta-text-muted);
}

.rekhta-poet-card-placeholder .dashicons {
    font-size: 60px;
    width: 60px;
    height: 60px;
}

.rekhta-poet-card-info {
    padding: 18px;
    text-align: center;
}

.rekhta-poet-card-name {
    font-family: var(--rekhta-font-urdu);
    font-size: 1.1rem;
    margin: 0 0 5px;
    color: var(--rekhta-text);
}

.rekhta-poet-card-penname {
    font-size: 0.85rem;
    color: var(--rekhta-text-muted);
    font-style: italic;
    margin: 0 0 8px;
    font-family: var(--rekhta-font-body);
}

.rekhta-poet-card-years {
    font-size: 0.8rem;
    color: var(--rekhta-text-muted);
    margin: 0 0 8px;
    font-family: var(--rekhta-font-body);
}

.rekhta-poet-card-era {
    display: inline-block;
    background: var(--rekhta-bg);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--rekhta-primary);
    margin-bottom: 8px;
    font-family: var(--rekhta-font-body);
}

.rekhta-poet-card-count {
    display: block;
    font-size: 0.8rem;
    color: var(--rekhta-text-muted);
    font-family: var(--rekhta-font-body);
}

/* ============================================
   Single Poet Page
   ============================================ */
.rekhta-single-poet {
    background: var(--rekhta-bg);
    min-height: 100vh;
}

.rekhta-poet-header {
    background: linear-gradient(135deg, var(--rekhta-primary-dark) 0%, var(--rekhta-primary) 100%);
    color: white;
    padding: 30px 0 50px;
}

.rekhta-poet-header .rekhta-breadcrumb a {
    color: rgba(255,255,255,0.8);
}

.rekhta-poet-hero {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 20px;
}

.rekhta-poet-photo {
    flex-shrink: 0;
}

.rekhta-poet-photo img {
    width: 180px;
    height: 180px;
    border-radius: var(--rekhta-radius);
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.rekhta-poet-placeholder {
    width: 180px;
    height: 180px;
    border-radius: var(--rekhta-radius);
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rekhta-poet-placeholder .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: rgba(255,255,255,0.3);
}

.rekhta-poet-info {
    flex: 1;
}

.rekhta-poet-name {
    font-family: var(--rekhta-font-urdu);
    font-size: 1.8rem;
    margin: 0 0 10px;
    line-height: 1.5;
}

.rekhta-poet-info .rekhta-poet-penname {
    font-family: var(--rekhta-font-body);
    font-size: 1.1rem;
    opacity: 0.8;
    margin: 0 0 15px;
}

.rekhta-poet-info .rekhta-poet-penname .label {
    opacity: 0.6;
}

.rekhta-poet-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-family: var(--rekhta-font-body);
    font-size: 0.95rem;
}

.rekhta-poet-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.85;
}

.rekhta-poet-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.rekhta-poet-links {
    display: flex;
    gap: 10px;
}

.rekhta-poet-links .rekhta-poet-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.15);
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-family: var(--rekhta-font-body);
    font-size: 0.85rem;
    transition: all var(--rekhta-transition);
}

.rekhta-poet-links .rekhta-poet-link:hover {
    background: rgba(255,255,255,0.25);
}

.rekhta-poet-bio,
.rekhta-poet-famous,
.rekhta-poet-poems {
    padding: 40px 0;
}

.rekhta-bio-content,
.rekhta-famous-content {
    font-family: var(--rekhta-font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--rekhta-text-light);
}

.rekhta-view-all {
    text-align: center;
    margin-top: 30px;
}

.rekhta-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--rekhta-primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-family: var(--rekhta-font-body);
    font-size: 0.95rem;
    transition: all var(--rekhta-transition);
}

.rekhta-btn:hover {
    background: var(--rekhta-primary-dark);
    transform: translateY(-2px);
}

/* ============================================
   Pagination
   ============================================ */
.rekhta-pagination {
    text-align: center;
    margin-top: 40px;
}

.rekhta-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.rekhta-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    font-family: var(--rekhta-font-body);
    font-size: 0.9rem;
    color: var(--rekhta-text-light);
    background: var(--rekhta-bg-card);
    border: 2px solid var(--rekhta-border);
    transition: all var(--rekhta-transition);
}

.rekhta-pagination .page-numbers:hover,
.rekhta-pagination .page-numbers.current {
    background: var(--rekhta-primary);
    color: white;
    border-color: var(--rekhta-primary);
}

/* ============================================
   No Results
   ============================================ */
.rekhta-no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--rekhta-bg-card);
    border-radius: var(--rekhta-radius);
    color: var(--rekhta-text-muted);
    font-family: var(--rekhta-font-body);
    font-size: 1.1rem;
}

/* ============================================
   Shortcode Styles
   ============================================ */
.rekhta-search-container {
    max-width: 600px;
    margin: 30px auto;
}

.rekhta-search-input-wrapper {
    display: flex;
    gap: 10px;
}

.rekhta-search-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--rekhta-border);
    border-radius: var(--rekhta-radius-sm);
    font-family: var(--rekhta-font-body);
    font-size: 1rem;
    transition: border-color var(--rekhta-transition);
}

.rekhta-search-input:focus {
    outline: none;
    border-color: var(--rekhta-primary);
}

.rekhta-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 24px;
    background: var(--rekhta-primary);
    color: white;
    border: none;
    border-radius: var(--rekhta-radius-sm);
    font-family: var(--rekhta-font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--rekhta-transition);
}

.rekhta-search-btn:hover {
    background: var(--rekhta-primary-dark);
}

.rekhta-search-filters {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Forms Grid (Shortcode) */
.rekhta-forms-grid {
    display: grid;
    gap: 20px;
}

.rekhta-forms-grid.rekhta-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.rekhta-forms-grid.rekhta-grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.rekhta-form-card {
    display: block;
    padding: 25px;
    background: var(--rekhta-bg-card);
    border-radius: var(--rekhta-radius);
    text-decoration: none;
    transition: all var(--rekhta-transition);
    border: 2px solid var(--rekhta-border);
}

.rekhta-form-card:hover {
    border-color: var(--rekhta-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--rekhta-shadow-hover);
}

.rekhta-form-name {
    font-family: var(--rekhta-font-urdu);
    font-size: 1.1rem;
    color: var(--rekhta-primary);
    margin: 0 0 10px;
}

.rekhta-form-desc {
    font-family: var(--rekhta-font-body);
    font-size: 0.85rem;
    color: var(--rekhta-text-muted);
    margin: 0 0 10px;
    line-height: 1.5;
}

.rekhta-form-count {
    font-family: var(--rekhta-font-body);
    font-size: 0.8rem;
    color: var(--rekhta-text-muted);
}

/* Poems List (Shortcode) */
.rekhta-poems-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rekhta-poem-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--rekhta-bg-card);
    border-radius: var(--rekhta-radius-sm);
    border: 1px solid var(--rekhta-border);
    transition: all var(--rekhta-transition);
}

.rekhta-poem-list-item:hover {
    box-shadow: 0 4px 15px var(--rekhta-shadow);
}

.rekhta-poem-list-title {
    font-family: var(--rekhta-font-urdu);
    font-size: 1.2rem;
    margin: 0 0 8px;
}

.rekhta-poem-list-title a {
    color: var(--rekhta-text);
    text-decoration: none;
}

.rekhta-poem-list-title a:hover {
    color: var(--rekhta-primary);
}

.rekhta-poem-list-preview {
    font-family: var(--rekhta-font-urdu);
    font-size: 0.95rem;
    color: var(--rekhta-text-muted);
    margin: 0 0 8px;
    direction: rtl;
}

.rekhta-poem-list-meta {
    display: flex;
    gap: 15px;
    font-family: var(--rekhta-font-body);
    font-size: 0.8rem;
    color: var(--rekhta-text-muted);
}

.rekhta-poem-list-poet,
.rekhta-poem-list-form {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Grid Column Helpers */
.rekhta-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.rekhta-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.rekhta-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================
   Tags
   ============================================ */
.rekhta-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--rekhta-bg);
    color: var(--rekhta-text-light);
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.75rem;
    font-family: var(--rekhta-font-body);
    transition: all var(--rekhta-transition);
    border: 1px solid var(--rekhta-border);
}

.rekhta-tag:hover {
    background: var(--rekhta-primary);
    color: white;
    border-color: var(--rekhta-primary);
}

.rekhta-tag-mood {
    background: rgba(218, 165, 32, 0.1);
    border-color: rgba(218, 165, 32, 0.3);
    color: #B8860B;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 992px) {
    .rekhta-poet-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .rekhta-poet-meta {
        justify-content: center;
    }
    
    .rekhta-poet-links {
        justify-content: center;
    }
    
    .rekhta-poems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rekhta-poets-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .rekhta-poem-title {
        font-size: 1.4rem;
    }
    
    .rekhta-text-urdu {
        font-size: 1.2rem;
        line-height: 2.2;
    }
    
    .rekhta-poem-display {
        padding: 30px 20px;
    }
    
    .rekhta-poems-grid {
        grid-template-columns: 1fr;
    }
    
    .rekhta-poets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rekhta-script-btn {
        padding: 10px 16px;
    }
    
    .rekhta-poem-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .rekhta-filter-group {
        flex-direction: column;
        width: 100%;
    }
    
    .rekhta-filter-select {
        width: 100%;
    }
    
    .rekhta-forms-grid.rekhta-grid-cols-3,
    .rekhta-forms-grid.rekhta-grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .rekhta-poet-photo img,
    .rekhta-poet-placeholder {
        width: 140px;
        height: 140px;
    }
    
    .rekhta-poet-name {
        font-size: 1.4rem;
    }
    
    .rekhta-archive-title {
        font-size: 1.5rem;
    }
    
    .rekhta-poets-grid {
        grid-template-columns: 1fr;
    }
    
    .rekhta-forms-grid.rekhta-grid-cols-3,
    .rekhta-forms-grid.rekhta-grid-cols-4 {
        grid-template-columns: 1fr;
    }
}
