/* ===== poetry-discovery.php — extracted inline <style> → poetry-discovery.css ===== */
/* ===================================================
   DISCOVERY PAGE ENHANCED STYLES (MATCHING ARTICLE.PHP)
=================================================== */
.discovery-wrapper {
    width: 94%;
    max-width: 1300px;
    margin: 0 auto 3.5rem auto;
    padding: 0 1rem;
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #334155;
    background: transparent;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

/* 1. Breadcrumb */
.discovery-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #8a8378;
    margin: 1.5rem 0 1.5rem 0;
}
.discovery-breadcrumb a {
    color: #1d4f69;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}
.discovery-breadcrumb a:hover {
    color: #f97316;
}
.discovery-breadcrumb .sep {
    color: #cbbfa9;
    font-size: 0.95rem;
}
.discovery-breadcrumb .current {
    color: #0f2233;
    font-weight: 700;
}

/* 2. Hero Section */
.discovery-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    padding: 3rem 2rem 2.5rem;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.discovery-hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.discovery-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}
.discovery-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: #fed7aa;
    margin-bottom: 1rem;
    backdrop-filter: blur(6px);
}
.discovery-hero-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}
.discovery-hero-title span {
    color: #f97316;
}
.discovery-hero-subtitle {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.65;
}

/* Quick Search & In-page Filter */
.discovery-filter-bar {
    max-width: 620px;
    margin: 0 auto 1.75rem auto;
    position: relative;
}
.discovery-filter-input {
    width: 100%;
    border: none;
    border-radius: 50px;
    padding: 14px 50px 14px 22px;
    font-size: 0.98rem;
    font-family: inherit;
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.discovery-filter-input:focus {
    box-shadow: 0 8px 28px rgba(249, 115, 22, 0.25);
    outline: 2px solid #f97316;
}
.discovery-filter-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.05rem;
}

/* Stats Bar */
.discovery-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.discovery-stat-item {
    text-align: center;
}
.discovery-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    display: block;
    line-height: 1.2;
}
.discovery-stat-label {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-top: 0.25rem;
    display: block;
}

/* Interactive Daily Gems Widget */
.discovery-gems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.25rem;
}
.discovery-gem-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #edf2f7;
    padding: 1.65rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}
.discovery-gem-card:hover {
    border-color: #fed7aa;
}
.discovery-gem-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #f97316, #ea580c);
}
.discovery-gem-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.discovery-gem-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.discovery-gem-title i {
    color: #f97316;
}
.discovery-gem-badge {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}
.discovery-gem-verse {
    font-family: 'Amiri', serif;
    font-size: 1.25rem;
    line-height: 1.95;
    color: #1e293b;
    margin: 0.5rem 0 1.25rem 0;
    padding: 0.85rem 1.15rem;
    background: #f8fafc;
    border-radius: 12px;
    border-right: 3px solid #f97316;
    text-align: center;
}
.discovery-gem-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    font-size: 0.85rem;
    padding-top: 0.5rem;
}
.discovery-gem-poet {
    color: #f97316;
    font-weight: 700;
    text-decoration: none;
}
.discovery-gem-poet:hover {
    color: #ea580c;
}
.discovery-gem-link {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 0.45rem 1.15rem;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}
.discovery-gem-link:hover {
    background: #f97316;
    border-color: #f97316;
    color: #ffffff;
}

/* Quick Jump Nav */
.discovery-quick-nav {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding: 0.35rem 0 0.85rem;
    margin-bottom: 2rem;
    scrollbar-width: none;
}
.discovery-quick-nav::-webkit-scrollbar {
    display: none;
}
.discovery-nav-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 0.45rem 1.15rem;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.discovery-nav-pill:hover, .discovery-nav-pill.active {
    background: #f97316;
    color: #ffffff;
    border-color: #f97316;
}
.discovery-nav-pill i {
    color: #f97316;
    font-size: 0.85rem;
}
.discovery-nav-pill:hover i {
    color: #ffffff;
}

/* Card Improvements */
.discovery-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.15rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}
.discovery-text-link {
    color: #334155;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.discovery-text-link:hover {
    color: #ea580c;
    background: #fff7ed;
}
.discovery-pill {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.discovery-pill:hover {
    background: #f97316;
    color: #ffffff;
}
.discovery-chip {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.discovery-chip:hover {
    background: #f97316;
    color: #ffffff;
}
.discovery-btn-dark {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 9999px;
    padding: 0.45rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-family: inherit;
    min-width: 90px;
}
.discovery-btn-dark:hover {
    background: #f97316;
    border-color: #f97316;
    color: #ffffff;
}
.discovery-alphabet-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}
.discovery-alphabet-letter:hover {
    background: #f97316;
    border-color: #f97316;
    color: #ffffff;
}

/* Mobile full-width utilization (95–98% of viewport) */
@media (max-width: 768px) {
    .discovery-wrapper {
        width: 100%;
        max-width: 100%;
        padding-left: 8px;
        padding-right: 8px;
    }
    .discovery-gems-grid {
        grid-template-columns: 1fr;
    }
}




