/**
 * Poem Modal More Dropdown & Related Modals
 * Enterprise-grade styling for poemModalMore functionality
 * 
 * Features:
 * - Dropdown menu with smooth animations
 * - Poem info modal
 * - Reading statistics modal
 * - Report issue modal
 * - RTL-optimized layout
 * - Responsive design
 * - Accessibility support
 */

/* ============================================================================
   DROPDOWN MENU
   ============================================================================ */

.poem-modal-more-dropdown {
    position: fixed;
    z-index: 10001;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15),
                0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    max-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    overflow: hidden;
    direction: rtl;
    pointer-events: none;
}

.poem-modal-more-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-section {
    padding: 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #2c2c2c;
    font-family: 'Scheherazade New', 'Amiri', serif;
    font-size: 16px;
    text-align: right;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #F5F0EB;
    color: #1a1a1a;
}

.dropdown-item:active {
    background-color: #E8DFD6;
}

.dropdown-item svg {
    flex-shrink: 0;
    color: #8B7355;
    transition: color 0.2s ease;
}

.dropdown-item:hover svg {
    color: #6B5845;
}

.dropdown-item span {
    flex: 1;
}

.dropdown-divider {
    height: 1px;
    background: #E8DFD6;
    margin: 4px 12px;
}

/* ============================================================================
   POEM INFO MODAL - Enhanced Enterprise Design
   ============================================================================ */

.poem-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    direction: rtl;
}

.poem-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 18, 16, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: poemInfoFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes poemInfoFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.poem-info-content {
    position: relative;
    background: linear-gradient(180deg, #FFFCF8 0%, #FEFBF7 100%);
    border-radius: 20px;
    max-width: 440px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 
        0 32px 64px -12px rgba(139, 115, 85, 0.25),
        0 16px 32px -8px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(139, 115, 85, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: poemInfoSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes poemInfoSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.poem-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 252, 248, 0.7) 100%);
    border-bottom: 1px solid rgba(139, 115, 85, 0.12);
    position: relative;
}

.poem-info-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 115, 85, 0.15), transparent);
}

.poem-info-header h3 {
    font-family: 'Markazi Text', serif;
    font-size: 22px;
    font-weight: 700;
    color: #3D3428;
    margin: 0;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.poem-info-header h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #CE8040, #A66832);
    border-radius: 2px;
}

.poem-info-close {
    background: rgba(139, 115, 85, 0.06);
    border: 1px solid rgba(139, 115, 85, 0.1);
    color: #8B7355;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poem-info-close:hover {
    background: rgba(139, 115, 85, 0.12);
    border-color: rgba(139, 115, 85, 0.18);
    color: #5D4E3C;
    transform: scale(1.05);
}

.poem-info-close:active {
    transform: scale(0.95);
}

.poem-info-body {
    padding: 20px 24px 24px;
    overflow-y: auto;
    max-height: calc(85vh - 72px);
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 115, 85, 0.2) transparent;
}

.poem-info-body::-webkit-scrollbar {
    width: 6px;
}

.poem-info-body::-webkit-scrollbar-track {
    background: transparent;
}

.poem-info-body::-webkit-scrollbar-thumb {
    background: rgba(139, 115, 85, 0.2);
    border-radius: 3px;
}

.poem-info-body::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 115, 85, 0.35);
}

/* Info Rows - Refined Card Style */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 8px;
    background: rgba(139, 115, 85, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(139, 115, 85, 0.06);
    transition: all 0.2s ease;
}

.info-row:hover {
    background: rgba(139, 115, 85, 0.07);
    border-color: rgba(139, 115, 85, 0.1);
}

.info-row:last-of-type {
    margin-bottom: 0;
}

.info-label {
    font-family: 'Scheherazade New', serif;
    font-size: 15px;
    color: #8B7355;
    font-weight: 600;
    min-width: auto;
    flex-shrink: 0;
}

.info-value {
    font-family: 'Scheherazade New', serif;
    font-size: 16px;
    color: #3D3428;
    text-align: left;
    flex: 1;
    font-weight: 500;
    margin-right: 12px;
}

/* ============================================================================
   REPORT ISSUE MODAL
   ============================================================================ */

.poem-report-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    direction: rtl;
}

.poem-report-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.poem-report-content {
    position: relative;
    background: #FFFFFF;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.poem-report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #E8DFD6;
}

.poem-report-header h3 {
    font-family: 'Markazi Text', serif;
    font-size: 24px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0;
}

.poem-report-close {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poem-report-close:hover {
    background-color: #F5F0EB;
    color: #2c2c2c;
}

.poem-report-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

.report-description {
    font-family: 'Scheherazade New', serif;
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.report-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.report-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #F5F0EB;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.report-option:hover {
    background-color: #E8DFD6;
}

.report-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #8B7355;
}

.report-option span {
    font-family: 'Scheherazade New', serif;
    font-size: 16px;
    color: #2c2c2c;
    flex: 1;
}

.report-details {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E8DFD6;
    border-radius: 8px;
    font-family: 'Scheherazade New', serif;
    font-size: 16px;
    color: #2c2c2c;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 20px;
    direction: rtl;
    text-align: right;
}

.report-details:focus {
    outline: none;
    border-color: #8B7355;
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

.report-details::placeholder {
    color: #999;
}

.report-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.report-cancel,
.report-submit {
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Scheherazade New', serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.report-cancel {
    background: #F5F0EB;
    color: #666;
}

.report-cancel:hover {
    background: #E8DFD6;
    color: #2c2c2c;
}

.report-submit {
    background: #8B7355;
    color: #FFFFFF;
}

.report-submit:hover {
    background: #6B5845;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

.report-submit:active {
    transform: translateY(0);
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
    .poem-modal-more-dropdown {
        min-width: 200px;
        max-width: calc(100vw - 40px);
    }

    .dropdown-item {
        font-size: 15px;
        padding: 10px 14px;
    }

    .poem-info-content,
    .poem-stats-content,
    .poem-report-content {
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 40px);
    }

    .poem-info-header,
    .poem-stats-header,
    .poem-report-header {
        padding: 20px;
    }

    .poem-info-header h3,
    .poem-stats-header h3,
    .poem-report-header h3 {
        font-size: 20px;
    }

    .poem-info-body,
    .poem-stats-body,
    .poem-report-body {
        padding: 20px;
    }

    .poem-stats-body {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 28px;
    }

    .stat-label {
        font-size: 13px;
    }

    .info-row {
        flex-direction: column;
        gap: 8px;
    }

    .info-label {
        min-width: auto;
    }

    .info-value {
        text-align: right;
    }

    .report-actions {
        flex-direction: column-reverse;
    }

    .report-cancel,
    .report-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .poem-stats-body {
        grid-template-columns: 1fr;
    }

    .dropdown-item {
        font-size: 14px;
        padding: 10px 12px;
        gap: 10px;
    }

    .dropdown-item svg {
        width: 16px;
        height: 16px;
    }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

.dropdown-item:focus,
.poem-info-close:focus,
.poem-stats-close:focus,
.poem-report-close:focus,
.report-cancel:focus,
.report-submit:focus {
    outline: 2px solid #8B7355;
    outline-offset: 2px;
}

.report-option:has(input:focus) {
    outline: 2px solid #8B7355;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .dropdown-item {
        border: 1px solid transparent;
    }

    .dropdown-item:hover {
        border-color: currentColor;
    }

    .stat-card {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .poem-modal-more-dropdown,
    .dropdown-item,
    .stat-card,
    .report-submit {
        transition: none;
    }

    .poem-info-overlay,
    .poem-stats-overlay,
    .poem-report-overlay {
        animation: none;
    }

    .poem-info-content,
    .poem-stats-content,
    .poem-report-content {
        animation: none;
    }
}

/* Dark mode support - Enhanced Enterprise Design */
@media (prefers-color-scheme: dark) {
    .poem-modal-more-dropdown {
        background: linear-gradient(180deg, #2c2c2c 0%, #262626 100%);
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(80, 80, 80, 0.2);
    }

    .dropdown-item {
        color: #E8DFD6;
    }

    .dropdown-item:hover {
        background-color: rgba(139, 115, 85, 0.15);
        color: #FFFFFF;
    }

    .dropdown-divider {
        background: rgba(80, 80, 80, 0.5);
    }

    .poem-info-overlay {
        background: rgba(0, 0, 0, 0.75);
    }

    .poem-info-content,
    .poem-stats-content,
    .poem-report-content {
        background: linear-gradient(180deg, #2a2a2a 0%, #242424 100%);
        box-shadow: 
            0 32px 64px -12px rgba(0, 0, 0, 0.5),
            0 16px 32px -8px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(80, 80, 80, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.03);
    }

    .poem-info-header,
    .poem-stats-header,
    .poem-report-header {
        background: linear-gradient(180deg, rgba(50, 50, 50, 0.9) 0%, rgba(40, 40, 40, 0.7) 100%);
        border-bottom-color: rgba(80, 80, 80, 0.4);
    }

    .poem-info-header::after {
        background: linear-gradient(90deg, transparent, rgba(139, 115, 85, 0.25), transparent);
    }

    .poem-info-header h3,
    .poem-stats-header h3,
    .poem-report-header h3 {
        color: #E8DFD6;
    }

    .poem-info-header h3::before {
        background: linear-gradient(180deg, #B07848, #8A5C38);
    }

    .poem-info-close {
        background: rgba(80, 80, 80, 0.3);
        border-color: rgba(100, 100, 100, 0.3);
        color: #A0A0A0;
    }

    .poem-info-close:hover {
        background: rgba(100, 100, 100, 0.4);
        border-color: rgba(120, 120, 120, 0.4);
        color: #E8DFD6;
    }

    .poem-info-body {
        scrollbar-color: rgba(139, 115, 85, 0.3) transparent;
    }

    .poem-info-body::-webkit-scrollbar-thumb {
        background: rgba(139, 115, 85, 0.3);
    }

    .poem-info-body::-webkit-scrollbar-thumb:hover {
        background: rgba(139, 115, 85, 0.45);
    }

    .info-row {
        background: rgba(60, 60, 60, 0.4);
        border-color: rgba(80, 80, 80, 0.3);
    }

    .info-row:hover {
        background: rgba(70, 70, 70, 0.5);
        border-color: rgba(90, 90, 90, 0.4);
    }

    .info-label {
        color: #9A9080;
    }

    .info-value {
        color: #E8DFD6;
    }

    .stat-card {
        background: linear-gradient(135deg, #3a3a3a 0%, #2c2c2c 100%);
        border-color: #4a4a4a;
    }

    .stat-card.highlight {
        background: linear-gradient(135deg, #4a4a4a 0%, #3a3a3a 100%);
        border-color: #5a5a5a;
    }

    .stat-value {
        color: #E8DFD6;
    }

    .stat-label {
        color: #999;
    }

    .report-description {
        color: #999;
    }

    .report-option {
        background: #3a3a3a;
    }

    .report-option:hover {
        background: #4a4a4a;
    }

    .report-option span {
        color: #E8DFD6;
    }

    .report-details {
        background: #3a3a3a;
        border-color: #4a4a4a;
        color: #E8DFD6;
    }

    .report-cancel {
        background: #3a3a3a;
        color: #999;
    }

    .report-cancel:hover {
        background: #4a4a4a;
        color: #E8DFD6;
    }

    /* Dark mode analytics - Enhanced */
    .poem-analytics-section {
        background: linear-gradient(135deg, rgba(58, 58, 58, 0.8) 0%, rgba(48, 48, 48, 0.8) 100%);
        border-color: rgba(80, 80, 80, 0.4);
    }

    .analytics-stat {
        background: linear-gradient(145deg, #2a2a2a 0%, #252525 100%);
        border-color: rgba(70, 70, 70, 0.4);
        box-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.03);
    }

    .analytics-stat:hover {
        box-shadow: 
            0 8px 20px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .analytics-stat::before {
        background: linear-gradient(90deg, transparent, rgba(206, 128, 64, 0.4), transparent);
    }

    .analytics-stat-value {
        color: #E8DFD6;
    }

    .analytics-stat-label {
        color: #9A9080;
    }

    .popularity-badge {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .popularity-badge.popularity-normal {
        background: linear-gradient(135deg, #4a4a4a 0%, #3a3a3a 100%);
        color: #C0B0A0;
    }

    .popularity-info {
        color: #9A9080;
    }

    .popularity-info strong {
        color: #E8DFD6;
    }

    .popularity-bar {
        background: linear-gradient(90deg, #3a3a3a, #2a2a2a);
    }

    .info-divider {
        background: linear-gradient(90deg, transparent, rgba(139, 115, 85, 0.35), transparent);
    }

    .info-section-title {
        color: #B0A090;
    }

    .info-section-title::before {
        filter: brightness(0.8);
    }
}

/* ============================================================================
   POEM INFO ANALYTICS SECTION - Enhanced Enterprise Design
   ============================================================================ */

.info-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 115, 85, 0.25), transparent);
    margin: 20px 0 16px;
    position: relative;
}

.info-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(139, 115, 85, 0.15), transparent);
    border-radius: 2px;
}

.info-section-title {
    font-family: 'Markazi Text', serif;
    font-size: 17px;
    font-weight: 700;
    color: #8B7355;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.2px;
}

.info-section-title::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B7355' stroke-width='2'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='m19 9-5 5-4-4-3 3'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.8;
}

.poem-analytics-section {
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.06) 0%, rgba(139, 115, 85, 0.03) 100%);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(139, 115, 85, 0.08);
}

.analytics-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    color: #8B7355;
    font-size: 15px;
    font-family: 'Scheherazade New', serif;
}

.analytics-loading .spinner {
    animation: analyticsSpinner 0.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    color: #CE8040;
}

@keyframes analyticsSpinner {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.analytics-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    color: #999;
    font-size: 14px;
    font-family: 'Scheherazade New', serif;
}

.analytics-error svg {
    opacity: 0.5;
    color: #B0A090;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.analytics-stat {
    background: linear-gradient(145deg, #FFFFFF 0%, #FEFCFA 100%);
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
    box-shadow: 
        0 2px 8px rgba(139, 115, 85, 0.06),
        0 1px 2px rgba(139, 115, 85, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(139, 115, 85, 0.06);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.analytics-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(206, 128, 64, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.analytics-stat:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(139, 115, 85, 0.1),
        0 4px 8px rgba(139, 115, 85, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.analytics-stat:hover::before {
    opacity: 1;
}

.analytics-stat-value {
    display: block;
    font-family: 'Markazi Text', serif;
    font-size: 32px;
    font-weight: 700;
    color: #3D3428;
    line-height: 1;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.analytics-stat-label {
    display: block;
    font-size: 13px;
    color: #8B7355;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Popularity Section - Enhanced */
.popularity-section {
    text-align: center;
    padding-top: 4px;
}

.popularity-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.popularity-badge:hover {
    transform: scale(1.02);
}

.popularity-badge svg {
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.popularity-badge.popularity-top {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 50%, #FFB300 100%);
    color: #5D4037;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.35);
}

.popularity-badge.popularity-high {
    background: linear-gradient(135deg, #E0E0E0 0%, #BDBDBD 50%, #9E9E9E 100%);
    color: #37474F;
    box-shadow: 0 4px 16px rgba(158, 158, 158, 0.35);
}

.popularity-badge.popularity-medium {
    background: linear-gradient(135deg, #D4A574 0%, #C49A6C 50%, #B8895E 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(196, 154, 108, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.popularity-badge.popularity-normal {
    background: linear-gradient(135deg, #F0EBE5 0%, #E8DFD6 100%);
    color: #6B5845;
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.12);
}

.popularity-info {
    font-size: 14px;
    color: #6B5845;
    margin-bottom: 12px;
    font-family: 'Scheherazade New', serif;
    line-height: 1.5;
}

.popularity-info strong {
    color: #3D3428;
    font-weight: 700;
}

.popularity-bar {
    height: 8px;
    background: linear-gradient(90deg, #F5F0EB, #E8DFD6);
    border-radius: 4px;
    overflow: hidden;
    max-width: 220px;
    margin: 0 auto;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.popularity-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #CE8040, #A66832, #8B5A2B);
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.popularity-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent);
    border-radius: 4px 4px 0 0;
}
