/** Shopify CDN: Minification failed

Line 2109:0 All "@import" rules must come first

**/
/* =============================================
   QURAN ANALYSER - ENHANCED STYLES
   Non-Muslim Friendly, Smart Search, Chat UI
   ============================================= */

:root {
    --qa-teal: #1a2c2c;
    --qa-teal-soft: #2a3f3f;
    --qa-yellow: #e6b54a;
    --qa-yellow-soft: #f5d794;
    --qa-cream: #fdfbf7;
    --qa-white: #ffffff;
    --qa-text: #1a1a1a;
    --qa-text-muted: #6b7280;
    --qa-border: #e5e7eb;
    --qa-success: #059669;
    --qa-purple: #7c3aed;
    --qa-purple-soft: #a78bfa;
    --qa-radius: 16px;
    --qa-radius-sm: 10px;
    --qa-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --qa-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.quran-analyser {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--qa-cream) 0%, var(--qa-white) 100%);
    overflow: hidden;
    padding: 40px 20px 80px;
}

/* Decorative Blobs */
.qa-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.qa-blob--1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--qa-yellow-soft) 0%, var(--qa-yellow) 100%);
    top: -150px;
    right: -150px;
}

.qa-blob--2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #a8d8d8 0%, var(--qa-teal-soft) 100%);
    bottom: 100px;
    left: -150px;
    opacity: 0.3;
}

.qa-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

/* =============================================
   HEADER
   ============================================= */

.qa-header {
    text-align: center;
    margin-bottom: 32px;
}

.qa-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--qa-teal) 0%, var(--qa-teal-soft) 100%);
    color: var(--qa-yellow);
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.qa-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    color: var(--qa-teal);
    margin: 0 0 12px;
    line-height: 1.2;
}

.qa-subtitle {
    font-size: 1.05rem;
    color: var(--qa-text-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =============================================
   SMART SEARCH
   ============================================= */

.qa-search-section {
    position: relative;
    margin-bottom: 40px;
}

.qa-search-wrapper {
    display: flex;
    align-items: center;
    background: var(--qa-white);
    border: 2px solid var(--qa-border);
    border-radius: 60px;
    padding: 6px 6px 6px 20px;
    box-shadow: var(--qa-shadow);
    transition: all 0.2s ease;
}

.qa-search-wrapper:focus-within {
    border-color: var(--qa-teal);
    box-shadow: 0 4px 24px rgba(26, 44, 44, 0.12);
}

.qa-search-icon {
    color: var(--qa-text-muted);
    flex-shrink: 0;
}

.qa-search-input {
    flex: 1;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    color: var(--qa-text);
    background: transparent;
    border: none;
    outline: none;
    min-width: 0;
}

.qa-search-input::placeholder {
    color: var(--qa-text-muted);
}

.qa-search-btn {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    color: var(--qa-yellow);
    background: linear-gradient(135deg, var(--qa-teal) 0%, var(--qa-teal-soft) 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.qa-search-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(26, 44, 44, 0.2);
}

/* Search Suggestions */
.qa-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: var(--qa-white);
    border: 1px solid var(--qa-border);
    border-radius: var(--qa-radius);
    box-shadow: var(--qa-shadow-lg);
    z-index: 100;
    overflow: hidden;
}

.qa-suggestions-header {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--qa-text-muted);
    background: var(--qa-cream);
    border-bottom: 1px solid var(--qa-border);
}

.qa-suggestion-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 14px 16px;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid var(--qa-border);
    cursor: pointer;
    transition: background 0.15s ease;
}

.qa-suggestion-item:last-child {
    border-bottom: none;
}

.qa-suggestion-item:hover {
    background: var(--qa-cream);
}

.qa-suggestion-ref {
    font-size: 14px;
    font-weight: 600;
    color: var(--qa-teal);
}

.qa-suggestion-text {
    font-size: 13px;
    color: var(--qa-text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =============================================
   EXPLORE SECTION (Tabbed Interface)
   ============================================= */

.qa-explore-container {
    margin-bottom: 40px;
}

/* Verse Preview Modal */
.qa-verse-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qa-verse-preview-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.qa-verse-preview-content {
    position: relative;
    background: var(--qa-white);
    border-radius: 16px;
    padding: 28px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: qa-modal-appear 0.2s ease-out;
}

@keyframes qa-modal-appear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.qa-verse-preview-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--qa-cream);
    border-radius: 50%;
    font-size: 20px;
    color: var(--qa-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qa-verse-preview-close:hover {
    background: var(--qa-border);
    color: var(--qa-text);
}

.qa-verse-preview-ref {
    font-size: 13px;
    font-weight: 600;
    color: var(--qa-teal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.qa-verse-preview-arabic {
    font-family: 'Amiri', 'Traditional Arabic', serif;
    font-size: 28px;
    line-height: 1.8;
    text-align: right;
    direction: rtl;
    color: var(--qa-text);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--qa-border);
}

.qa-verse-preview-translation {
    font-size: 15px;
    line-height: 1.7;
    color: var(--qa-text-muted);
    margin-bottom: 24px;
}

.qa-verse-preview-goto {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--qa-teal);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qa-verse-preview-goto:hover {
    background: var(--qa-teal-soft);
    transform: translateX(2px);
}

.qa-verse-preview-goto svg {
    transition: transform 0.2s ease;
}

.qa-verse-preview-goto:hover svg {
    transform: translateX(3px);
}

/* Tab Navigation - Clean title-style */
.qa-explore-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    overflow-x: auto;
    padding: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-bottom: 1px solid var(--qa-border);
}

.qa-explore-tabs::-webkit-scrollbar {
    display: none;
}

.qa-explore-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--qa-text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex: 1;
    margin-bottom: -1px;
}

.qa-explore-tab svg {
    flex-shrink: 0;
    opacity: 0.5;
    width: 16px;
    height: 16px;
}

/* Mobile: Allow tab text to wrap on 2 lines */
@media (max-width: 600px) {
    .qa-explore-tab {
        padding: 10px 8px;
        font-size: 12px;
        gap: 4px;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
        flex-direction: column;
    }

    .qa-explore-tab svg {
        width: 18px;
        height: 18px;
        margin-bottom: 2px;
    }
}

.qa-explore-tab:hover {
    color: var(--qa-text);
}

.qa-explore-tab:hover svg {
    opacity: 0.8;
}

.qa-explore-tab--active {
    color: var(--qa-text);
    border-bottom-color: var(--qa-teal);
}

.qa-explore-tab--active svg {
    opacity: 1;
    color: var(--qa-teal);
}

.qa-explore-tab--active:hover {
    color: var(--qa-text);
}

/* Tab Panels */
.qa-explore-panel {
    display: none;
}

.qa-explore-panel--active {
    display: block;
}

.qa-explore-section {
    margin-bottom: 40px;
}

.qa-explore-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--qa-text);
    margin: 0 0 8px;
}

.qa-explore-title svg {
    color: var(--qa-teal);
}

.qa-explore-subtitle {
    font-size: 14px;
    color: var(--qa-text-muted);
    margin: 0 0 20px;
}

.qa-explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

/* Scroll Wrapper with Fade Indicator */
.qa-scroll-wrapper {
    position: relative;
}

/* Fade gradient on right edge */
.qa-scroll-wrapper::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 20px;
    width: 60px;
    background: linear-gradient(to left, var(--qa-cream) 20%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* Scroll Arrow Hint */
.qa-scroll-hint {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: var(--qa-white);
    border: 1px solid var(--qa-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--qa-shadow);
    z-index: 3;
    animation: qa-scroll-pulse 2s ease-in-out infinite;
    pointer-events: none;
}

.qa-scroll-hint svg {
    color: var(--qa-teal);
    width: 16px;
    height: 16px;
}

@keyframes qa-scroll-pulse {

    0%,
    100% {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }

    50% {
        transform: translateY(-50%) translateX(4px);
        opacity: 0.7;
    }
}

/* Hide scroll hint when scrolled */
.qa-scroll-wrapper.scrolled .qa-scroll-hint,
.qa-scroll-wrapper.scrolled::after {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Explore Scroll Container (Horizontal on Mobile) */
.qa-explore-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 12px 4px 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}

.qa-explore-scroll::-webkit-scrollbar {
    display: none;
}

/* Legacy styles - keep for compatibility */
.qa-explore-section {
    position: relative;
}

/* Modern Card Pills */
.qa-explore-pill {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    min-width: 180px;
    max-width: 220px;
    background: var(--qa-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    scroll-snap-align: start;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

/* Subtle top accent line */
.qa-explore-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--qa-teal), var(--qa-purple));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.qa-explore-pill:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    border-color: rgba(45, 106, 79, 0.15);
}

.qa-explore-pill:hover::before {
    opacity: 1;
}

/* Question type pills - soft purple tint */
.qa-explore-pill--question {
    background: linear-gradient(145deg, #fafafa 0%, #f5f3ff 100%);
    border-color: rgba(124, 58, 237, 0.1);
}

.qa-explore-pill--question::before {
    background: linear-gradient(90deg, var(--qa-purple), #a78bfa);
}

.qa-explore-pill--question:hover {
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.1), 0 4px 8px rgba(124, 58, 237, 0.05);
}

/* Positive type pills - soft teal tint */
.qa-explore-pill--positive {
    background: linear-gradient(145deg, #fafafa 0%, #f0fdf9 100%);
    border-color: rgba(45, 106, 79, 0.1);
}

.qa-explore-pill--positive::before {
    background: linear-gradient(90deg, var(--qa-teal), #34d399);
}

.qa-explore-pill--positive:hover {
    border-color: rgba(45, 106, 79, 0.2);
    box-shadow: 0 12px 24px rgba(45, 106, 79, 0.1), 0 4px 8px rgba(45, 106, 79, 0.05);
}

/* Theology type pills - soft blue tint */
.qa-explore-pill--theology {
    background: linear-gradient(145deg, #fafafa 0%, #eff6ff 100%);
    border-color: rgba(59, 130, 246, 0.1);
}

.qa-explore-pill--theology::before {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.qa-explore-pill--theology:hover {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.1), 0 4px 8px rgba(59, 130, 246, 0.05);
}

/* Badge styling */
.qa-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--qa-text-muted);
}

.qa-explore-pill--question .qa-pill-badge {
    color: var(--qa-purple);
}

.qa-explore-pill--positive .qa-pill-badge {
    color: var(--qa-teal);
}

.qa-explore-pill--theology .qa-pill-badge {
    color: #3b82f6;
}

/* Text styling */
.qa-pill-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--qa-text);
    line-height: 1.4;
}

/* Mobile scroll hint arrow */
.qa-explore-scroll-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--qa-text-muted);
    margin-top: 8px;
    animation: qa-scroll-hint 1.5s ease-in-out infinite;
}

@keyframes qa-scroll-hint {

    0%,
    100% {
        transform: translateX(0);
        opacity: 0.6;
    }

    50% {
        transform: translateX(4px);
        opacity: 1;
    }
}

/* Desktop: show as wrapped flexbox */
@media (min-width: 768px) {
    .qa-explore-scroll {
        flex-wrap: wrap;
        overflow-x: visible;
        padding: 8px 0;
        justify-content: flex-start;
    }

    .qa-explore-pill {
        min-width: unset;
        max-width: unset;
        flex: 0 0 calc(33.333% - 10px);
    }

    /* Hide scroll fade on desktop */
    .qa-explore-section::after {
        display: none;
    }

    .qa-explore-scroll-hint {
        display: none;
    }
}

.qa-explore-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: var(--qa-white);
    border: 1px solid var(--qa-border);
    border-radius: var(--qa-radius);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--qa-shadow);
}

.qa-explore-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--qa-shadow-lg);
    border-color: var(--qa-teal);
}

.qa-explore-card--positive {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #a7f3d0;
}

.qa-explore-card--positive:hover {
    border-color: var(--qa-success);
}

.qa-explore-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--qa-teal);
}

.qa-explore-card--positive .qa-explore-label {
    color: var(--qa-success);
}

.qa-explore-verse {
    font-size: 15px;
    font-weight: 600;
    color: var(--qa-text);
    line-height: 1.4;
}

.qa-explore-hint {
    font-size: 13px;
    color: var(--qa-text-muted);
    margin-top: auto;
}

/* =============================================
   VERSE CARD
   ============================================= */

.qa-verse-section {
    animation: qa-fade-in 0.4s ease;
}

@keyframes qa-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qa-verse-card {
    background: var(--qa-white);
    border: 1px solid var(--qa-border);
    border-radius: var(--qa-radius);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--qa-shadow-lg);
    position: relative;
    overflow: hidden;
}

.qa-verse-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--qa-yellow);
}

.qa-verse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.qa-verse-ref {
    font-size: 14px;
    font-weight: 600;
    color: var(--qa-teal);
    background: rgba(26, 44, 44, 0.08);
    padding: 6px 14px;
    border-radius: 50px;
}

.qa-verse-name {
    font-size: 14px;
    color: var(--qa-text-muted);
    font-style: italic;
}

.qa-verse-arabic {
    font-family: "Scheherazade New", "Traditional Arabic", "Noto Naskh Arabic", serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 2.2;
    color: var(--qa-text);
    text-align: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--qa-border);
    margin-bottom: 20px;
}

.qa-verse-translation {
    margin-bottom: 24px;
}

.qa-translation-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--qa-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.qa-translation-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--qa-text);
    margin: 0;
}

.qa-verse-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.qa-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--qa-teal);
    background: var(--qa-cream);
    border: 1px solid var(--qa-border);
    border-radius: var(--qa-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.qa-action-btn:hover {
    background: var(--qa-teal);
    color: var(--qa-yellow);
    border-color: var(--qa-teal);
}

/* Verse Navigation */
.qa-verse-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--qa-border);
}

.qa-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--qa-text-muted);
    background: transparent;
    border: 1px solid var(--qa-border);
    border-radius: var(--qa-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.qa-nav-btn:hover {
    color: var(--qa-teal);
    border-color: var(--qa-teal);
    background: var(--qa-cream);
}

.qa-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.qa-nav-btn svg {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .qa-nav-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* =============================================
   ANSWER SECTION (Standalone)
   ============================================= */

.qa-answer-section {
    margin-bottom: 20px;
}

.qa-answer-box {
    background: linear-gradient(145deg, #fefce8 0%, #fef9c3 100%);
    border: 1px solid #fde047;
    border-radius: var(--qa-radius);
    padding: 20px;
    box-shadow: var(--qa-shadow);
}

.qa-answer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.qa-answer-icon {
    font-size: 20px;
}

.qa-answer-question {
    font-size: 15px;
    font-weight: 700;
    color: var(--qa-text);
}

.qa-answer-body {
    padding-left: 30px;
}

.qa-answer-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--qa-success);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qa-answer-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--qa-text);
}

/* Clickable verse links in answers */
.qa-verse-link {
    color: var(--qa-teal);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed var(--qa-teal);
    cursor: pointer;
    transition: all 0.2s ease;
}

.qa-verse-link:hover {
    color: var(--qa-purple);
    border-bottom-color: var(--qa-purple);
    border-bottom-style: solid;
}

/* =============================================
   AI CHAT SECTION
   ============================================= */

.qa-chat-section {
    background: var(--qa-white);
    border: 1px solid var(--qa-border);
    border-radius: var(--qa-radius);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--qa-shadow);
}

.qa-chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--qa-teal) 0%, var(--qa-teal-soft) 100%);
    color: white;
}

.qa-chat-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.qa-chat-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.qa-chat-hint {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 50px;
    flex-shrink: 0;
}

/* Answer Section (Standalone) */
.qa-answer-section {
    margin-bottom: 24px;
}

.qa-chat-messages {
    max-height: 300px;
    overflow-y: auto;
    padding: 20px;
}

.qa-chat-welcome {
    text-align: center;
    padding: 20px;
}

.qa-chat-welcome p {
    font-size: 14px;
    color: var(--qa-text-muted);
    margin: 0 0 16px;
    line-height: 1.6;
}

.qa-chat-disclaimer {
    font-size: 11px;
    color: var(--qa-text-muted);
    text-align: center;
    padding: 10px 16px;
    margin: 0;
    opacity: 0.7;
    background: rgba(26, 44, 44, 0.03);
    border-top: 1px solid var(--qa-border);
}

.qa-chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.qa-chat-suggestion {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--qa-teal);
    background: rgba(26, 44, 44, 0.08);
    border: 1px solid rgba(26, 44, 44, 0.2);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qa-chat-suggestion:hover {
    background: var(--qa-teal);
    color: white;
    border-color: var(--qa-teal);
}

/* Mobile: Smaller chat suggestions */
@media (max-width: 768px) {
    .qa-chat-welcome {
        padding: 12px;
    }

    .qa-chat-welcome p {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .qa-chat-suggestions {
        gap: 6px;
    }

    .qa-chat-suggestion {
        padding: 6px 12px;
        font-size: 11px;
    }
}

.qa-chat-message {
    margin-bottom: 16px;
    animation: qa-fade-in 0.3s ease;
}

.qa-chat-message--user {
    text-align: right;
}

.qa-chat-message--ai {
    text-align: left;
}

.qa-chat-bubble {
    display: inline-block;
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.qa-chat-message--user .qa-chat-bubble {
    background: var(--qa-teal);
    color: white;
    border-bottom-right-radius: 4px;
}

.qa-chat-message--ai .qa-chat-bubble {
    background: var(--qa-cream);
    color: var(--qa-text);
    border-bottom-left-radius: 4px;
}

/* Formatted AI message content */
.qa-chat-message--ai .qa-chat-bubble p {
    margin: 0 0 12px;
}

.qa-chat-message--ai .qa-chat-bubble p:last-child {
    margin-bottom: 0;
}

.qa-chat-message--ai .qa-chat-bubble strong {
    color: var(--qa-text);
    font-weight: 600;
}

.qa-chat-message--ai .qa-chat-bubble em {
    font-style: italic;
}

.qa-chat-input-wrapper {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(26, 44, 44, 0.03);
    border-top: 1px solid var(--qa-border);
}

.qa-chat-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    color: var(--qa-text);
    background: var(--qa-white);
    border: 1px solid var(--qa-border);
    border-radius: 50px;
    outline: none;
    transition: border-color 0.2s ease;
}

.qa-chat-input:focus {
    border-color: var(--qa-teal);
}

.qa-chat-send {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--qa-teal) 0%, var(--qa-teal-soft) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qa-chat-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(26, 44, 44, 0.3);
}

/* =============================================
   AI ANALYSIS SECTION
   ============================================= */

.qa-analysis-section {
    margin-bottom: 24px;
}

.qa-analysis-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    background: var(--qa-white);
    border: 1px solid var(--qa-border);
    border-radius: var(--qa-radius);
    color: var(--qa-text-muted);
    font-size: 14px;
}

.qa-analysis-loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--qa-border);
    border-top-color: var(--qa-teal);
    border-radius: 50%;
    animation: qa-spin 1s linear infinite;
}

@keyframes qa-spin {
    to {
        transform: rotate(360deg);
    }
}

.qa-analysis-content {
    background: var(--qa-white);
    border: 1px solid var(--qa-border);
    border-radius: var(--qa-radius);
    padding: 24px;
    box-shadow: var(--qa-shadow);
}

.qa-analysis-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--qa-text);
    margin: 0 0 20px;
}

.qa-analysis-header-title svg {
    color: var(--qa-yellow);
}

.qa-analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

/* =============================================
   MODERN INSIGHTS - BENTO STYLE
   ============================================= */

.qa-insights-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.qa-insights-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--qa-teal) 0%, var(--qa-teal-soft) 100%);
    color: var(--qa-yellow);
    font-size: 13px;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qa-insights-note {
    font-size: 12px;
    color: var(--qa-text-muted);
    font-style: italic;
}

.qa-insights-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .qa-insights-bento {
        grid-template-columns: 1fr;
    }
}

.qa-insight-card {
    position: relative;
    background: var(--qa-white);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--qa-border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.qa-insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--qa-teal);
}

.qa-insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26, 44, 44, 0.12);
}

.qa-insight-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.qa-insight-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: var(--qa-cream);
    border-radius: 12px;
    flex-shrink: 0;
}

.qa-insight-card--theme::before {
    background: linear-gradient(90deg, #059669, #10b981);
}

.qa-insight-card--theme .qa-insight-icon {
    background: rgba(5, 150, 105, 0.1);
}

.qa-insight-card--context::before {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.qa-insight-card--context .qa-insight-icon {
    background: rgba(59, 130, 246, 0.1);
}

.qa-insight-card--linguistic::before {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.qa-insight-card--linguistic .qa-insight-icon {
    background: rgba(139, 92, 246, 0.1);
}

.qa-insight-card--reflection::before {
    background: linear-gradient(90deg, var(--qa-yellow), #fbbf24);
}

.qa-insight-card--reflection .qa-insight-icon {
    background: rgba(230, 181, 74, 0.15);
}

.qa-insight-card--wisdom::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.qa-insight-card--wisdom .qa-insight-icon {
    background: rgba(245, 158, 11, 0.1);
}

/* Make theme card span full width for prominence */
.qa-insight-card--theme {
    grid-column: 1 / -1;
}

@media (min-width: 769px) {
    .qa-insight-card--theme {
        grid-column: 1 / -1;
    }
}

.qa-insight-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--qa-text);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.qa-insight-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--qa-text);
    margin: 0;
}

.qa-insight-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 1.7;
    color: var(--qa-text);
}

.qa-insight-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.qa-insight-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--qa-teal);
    border-radius: 50%;
}

.qa-insight-list li:last-child {
    margin-bottom: 0;
}

.qa-insight-list--prompts li::before {
    background: var(--qa-yellow);
}

/* =============================================
   ANSWER BOX (For controversial verses)
   ============================================= */

.qa-answer-box {
    background: var(--qa-white);
    border: 1px solid var(--qa-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--qa-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.qa-answer-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26, 44, 44, 0.12);
}

.qa-answer-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--qa-teal);
}

.qa-answer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.qa-answer-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(26, 44, 44, 0.05);
    /* Light teal bg */
    border-radius: 12px;
    flex-shrink: 0;
    color: var(--qa-teal);
}

.qa-answer-question {
    font-size: 16px;
    font-weight: 700;
    color: var(--qa-text);
}

.qa-answer-body {
    background: transparent;
    padding: 0;
    margin-top: 12px;
}

.qa-answer-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--qa-teal);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(26, 44, 44, 0.08);
    padding: 6px 12px;
    border-radius: 50px;
}

.qa-answer-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--qa-text);
    margin: 0;
}

/* =============================================
   TABS NAVIGATION
   ============================================= */

.qa-tabs {
    display: flex;
    gap: 4px;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.qa-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--qa-text-muted);
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.qa-tab svg {
    flex-shrink: 0;
}

.qa-tab:hover {
    color: var(--qa-text);
    background: rgba(255, 255, 255, 0.5);
}

.qa-tab--active {
    color: var(--qa-teal);
    background: var(--qa-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* On mobile, hide text and show only icons */
@media (max-width: 480px) {
    .qa-tab span {
        display: none;
    }

    .qa-tab {
        flex: 1;
        padding: 12px;
    }

    .qa-tab svg {
        width: 20px;
        height: 20px;
    }
}

/* =============================================
   TAB CONTENT
   ============================================= */

.qa-tab-content {
    display: none;
}

.qa-tab-content--active {
    display: block;
    animation: qa-fade-in 0.3s ease;
}

.qa-insight-single {
    margin-bottom: 20px;
}

.qa-insight-single:last-child {
    margin-bottom: 0;
}

.qa-insight-heading {
    font-size: 14px;
    font-weight: 700;
    color: var(--qa-text);
    margin: 0 0 10px;
}

.qa-insight-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--qa-text);
    margin: 0;
}

.qa-reflection-list,
.qa-language-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.qa-reflection-list li,
.qa-language-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--qa-text);
}

.qa-reflection-list li::before,
.qa-language-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.qa-reflection-list li::before {
    background: var(--qa-yellow);
}

.qa-language-list li::before {
    background: var(--qa-purple);
}

/* =============================================
   COMPACT ASK SECTION
   ============================================= */

.qa-ask-section {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(124, 58, 237, 0.02) 100%);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: var(--qa-radius);
    padding: 16px;
    margin-top: 24px;
}

.qa-ask-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--qa-purple);
    margin: 0 0 12px;
}

.qa-ask-input-wrapper {
    display: flex;
    gap: 8px;
}

.qa-ask-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--qa-border);
    border-radius: 10px;
    background: var(--qa-white);
    outline: none;
    transition: border-color 0.2s ease;
}

.qa-ask-input:focus {
    border-color: var(--qa-purple);
}

.qa-ask-input::placeholder {
    color: var(--qa-text-muted);
}

.qa-ask-send {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--qa-purple);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qa-ask-send:hover {
    background: var(--qa-purple-soft);
    transform: scale(1.05);
}

/* Chat messages within ask section */
.qa-ask-section .qa-chat-messages {
    max-height: 250px;
    overflow-y: auto;
    margin-top: 16px;
    padding: 0;
}

.qa-ask-section .qa-chat-messages:empty {
    display: none;
}

.qa-chat-message {
    margin-bottom: 12px;
    animation: qa-fade-in 0.3s ease;
}

.qa-chat-message--user {
    text-align: right;
}

.qa-chat-message--ai {
    text-align: left;
}

.qa-chat-bubble {
    display: inline-block;
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.6;
}

.qa-chat-message--user .qa-chat-bubble {
    background: var(--qa-teal);
    color: white;
    border-bottom-right-radius: 4px;
}

.qa-chat-message--ai .qa-chat-bubble {
    background: #f3f4f6;
    color: var(--qa-text);
    border-bottom-left-radius: 4px;
}

/* =============================================
   TAFSIR SECTION - EXPANDABLE ACCORDION
   ============================================= */

.qa-tafsir-section {
    background: var(--qa-white);
    border: 1px solid var(--qa-border);
    border-radius: var(--qa-radius);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--qa-shadow);
}

.qa-tafsir-header {
    padding: 24px 24px 20px;
    background: linear-gradient(135deg, rgba(26, 44, 44, 0.03) 0%, rgba(26, 44, 44, 0.01) 100%);
    border-bottom: 1px solid var(--qa-border);
}

.qa-tafsir-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--qa-text);
    margin: 0 0 4px;
}

.qa-tafsir-title svg {
    color: var(--qa-teal);
}

.qa-tafsir-subtitle {
    font-size: 14px;
    color: var(--qa-text-muted);
    margin: 0;
}

.qa-tafsir-accordion {
    padding: 0;
}

.qa-tafsir-item {
    border-bottom: 1px solid var(--qa-border);
}

.qa-tafsir-item:last-child {
    border-bottom: none;
}

.qa-tafsir-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.qa-tafsir-toggle:hover {
    background: var(--qa-cream);
}

.qa-tafsir-toggle--active {
    background: var(--qa-cream);
}

.qa-tafsir-toggle-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.qa-tafsir-author {
    font-size: 15px;
    font-weight: 600;
    color: var(--qa-text);
}

.qa-tafsir-period {
    font-size: 12px;
    color: var(--qa-text-muted);
}

.qa-tafsir-chevron {
    color: var(--qa-text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.qa-tafsir-toggle--active .qa-tafsir-chevron {
    transform: rotate(180deg);
    color: var(--qa-teal);
}

.qa-tafsir-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: var(--qa-white);
}

.qa-tafsir-body--open {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px 24px;
}

.qa-tafsir-body p {
    font-size: 14px;
    line-height: 1.9;
    color: var(--qa-text);
    margin: 0 0 16px;
    text-align: justify;
}

.qa-tafsir-body p:last-child {
    margin-bottom: 0;
}

.qa-tafsir-loading {
    font-style: italic;
    color: var(--qa-text-muted);
}

/* Custom scrollbar for tafsir body */
.qa-tafsir-body--open::-webkit-scrollbar {
    width: 6px;
}

.qa-tafsir-body--open::-webkit-scrollbar-track {
    background: var(--qa-cream);
    border-radius: 3px;
}

.qa-tafsir-body--open::-webkit-scrollbar-thumb {
    background: var(--qa-border);
    border-radius: 3px;
}

.qa-tafsir-body--open::-webkit-scrollbar-thumb:hover {
    background: var(--qa-teal);
}

/* =============================================
   FOOTER CTA
   ============================================= */

.qa-footer-cta {
    background: linear-gradient(135deg, var(--qa-teal) 0%, var(--qa-teal-soft) 100%);
    border-radius: var(--qa-radius);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--qa-shadow-lg);
}

.qa-cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--qa-white);
    margin: 0 0 8px;
}

.qa-cta-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 24px;
}

.qa-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    color: var(--qa-teal);
    background: #fdc40e;
    /* Brighter gold for better visibility */
    border: none;
    border-radius: var(--qa-radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.qa-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 200, 66, 0.5);
    background: #ffd046;
}

/* =============================================
   MOBILE RESPONSIVE
   ============================================= */

@media (max-width: 640px) {
    .quran-analyser {
        padding: 24px 16px 60px;
    }

    .qa-search-wrapper {
        flex-wrap: wrap;
        border-radius: var(--qa-radius);
        padding: 12px;
    }

    .qa-search-icon {
        display: none;
    }

    .qa-search-input {
        width: 100%;
        padding: 12px;
    }

    .qa-search-btn {
        width: 100%;
        margin-top: 8px;
    }

    .qa-explore-grid {
        grid-template-columns: 1fr;
    }

    .qa-verse-card {
        padding: 20px;
    }

    .qa-chat-header {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .qa-analysis-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   GOOGLE FONTS (Arabic)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Scheherazade+New:wght@400;700&display=swap');