/* ==========================================
   WfwBv2025.css - Block View Dedicated Stylesheet
   IslamAwakened Word-for-Word Block View
   Matches Hub page design language
   ========================================== */

/* ==========================================
   BASE / RESET
   ========================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f8fafc;
}

a {
    color: #2563eb;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   SITE HEADER (matches Hub)
   ========================================== */

.site-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

    .site-header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .site-header .logo {
        font-family: 'Inter', sans-serif;
        font-size: 1.5rem;
        font-weight: 700;
        color: white;
        text-decoration: none;
        letter-spacing: 0.02em;
    }

        .site-header .logo:hover {
            text-decoration: none;
            opacity: 0.9;
        }

    .site-header .primary-nav {
        display: flex;
        gap: 1.5rem;
    }

        .site-header .primary-nav a {
            color: rgba(255, 255, 255, 0.85);
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 500;
            transition: color 0.2s;
        }

            .site-header .primary-nav a:hover {
                color: white;
                text-decoration: none;
            }

/* ==========================================
   BREADCRUMBS (matches Hub)
   ========================================== */

.breadcrumbs {
    background: #f1f5f9;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.85rem;
}

    .breadcrumbs a {
        color: #2563eb;
        text-decoration: none;
    }

        .breadcrumbs a:hover {
            text-decoration: underline;
        }

    .breadcrumbs .separator {
        color: #94a3b8;
        margin: 0 6px;
    }

    .breadcrumbs .current {
        color: #64748b;
        font-weight: 500;
    }

/* ==========================================
   ARABIC HERO (full ayah text, clickable)
   ========================================== */

.arabic-hero {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    padding: 30px 0;
    text-align: center;
    border-bottom: 2px solid #e5e7eb;
}

    .arabic-hero .arabic-label {
        font-size: 0.85rem;
        color: #1e3a8a;
        font-weight: 600;
        margin-bottom: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .arabic-hero .arabic-text-btn {
        display: block;
        width: 100%;
        max-width: 900px;
        margin: 0 auto;
        background: #1e3a8a;
        color: white;
        border: none;
        border-radius: 8px;
        padding: 20px 24px;
        font-family: 'Amiri', 'Traditional Arabic', serif;
        font-size: 1.8rem;
        font-weight: 700;
        line-height: 2;
        cursor: pointer;
        transition: background-color 0.2s, box-shadow 0.2s;
        box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
    }

        .arabic-hero .arabic-text-btn:hover {
            background: #1e40af;
            box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
        }

        .arabic-hero .arabic-text-btn:active {
            transform: scale(0.99);
        }

/* ==========================================
   AYAH NAVIGATION (prev / next bar)
   ========================================== */

.ayah-nav {
    background: #f8fafc;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

    .ayah-nav .container {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .ayah-nav a,
    .ayah-nav .ayahNav {
        display: inline-block;
        color: #2563eb;
        text-decoration: none;
        padding: 6px 14px;
        border-radius: 6px;
        font-size: 0.9rem;
        font-weight: 500;
        background: white;
        border: 1px solid #e2e8f0;
        transition: all 0.2s;
    }

        .ayah-nav a:hover,
        .ayah-nav .ayahNav:hover {
            background: #dbeafe;
            border-color: #93c5fd;
            text-decoration: none;
        }

    .ayah-nav.bottom {
        border-top: 1px solid #e2e8f0;
        border-bottom: none;
        margin-top: 0;
    }

/* ==========================================
   LANGUAGE SELECTOR (horizontal bar)
   ========================================== */

.language-bar {
    padding: 12px 0;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

    .language-bar .container {
        display: flex;
        justify-content: center;
    }

.language-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

/* Styled by languageSelector.js - these override the fixed sidebar */
#dd1 {
    position: static;
    width: auto;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    z-index: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

    #dd1::before {
        content: "Language:";
        display: flex;
        align-items: center;
        font-size: 0.8rem;
        font-weight: 600;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 0 8px 0 0;
        border-bottom: none;
        margin: 0;
    }

    #dd1 .ddlink {
        display: inline-block;
        margin: 0;
    }

        #dd1 .ddlink a {
            display: inline-block;
            padding: 6px 14px;
            text-decoration: none;
            color: #2563eb;
            font-size: 0.85rem;
            font-weight: 500;
            border-radius: 6px;
            border: 1px solid #e2e8f0;
            background: white;
            transition: all 0.2s;
        }

            #dd1 .ddlink a:hover {
                background: #dbeafe;
                border-color: #93c5fd;
                transform: none;
            }

        #dd1 .ddlink.current-lang a {
            font-weight: 700;
            background: #2563eb;
            color: white;
            border-color: #2563eb;
            box-shadow: none;
        }

            #dd1 .ddlink.current-lang a:hover {
                background: #1e40af;
                transform: none;
            }

/* ==========================================
   WORD CARDS CONTAINER - NARROW CENTERED
   ========================================== */

.word-cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================
   INDIVIDUAL WORD CARD - 450px CENTERED
   (matches old BV flashcard style)
   ========================================== */

.word-card {
    display: flex;
    flex-direction: column;
    width: 450px;
    background: white;
    border: 1px solid #999;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .word-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    /* ==========================================
   WORD CARD SECTIONS - CLASSIC COLORS
   ========================================== */

    /* Arabic word - IVORY background, GREEN text */
    .word-card .arabic {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: ivory;
        border-bottom: 1px solid #999;
        padding: 10px;
        min-height: 60px;
    }

        .word-card .arabic .BtnArabic {
            border: none;
            color: darkgreen;
            background-color: transparent;
            font-family: 'Amiri', 'Traditional Arabic', serif;
            font-size: 2rem;
            font-weight: bold;
            cursor: pointer;
            padding: 4px 8px;
            transition: color 0.2s;
        }

            .word-card .arabic .BtnArabic:hover {
                color: #006400;
                background-color: rgba(0, 100, 0, 0.05);
                border-radius: 4px;
            }

    /* Transliteration - LIGHT CYAN, grey text */
    .word-card .transliteration {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: lightcyan;
        border-bottom: 1px solid #999;
        color: #555;
        padding: 10px;
        min-height: 40px;
        font-size: 0.95rem;
        text-align: center;
    }

    /* English translation - DARK CYAN, white text */
    .word-card .translation {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: darkcyan;
        border-bottom: 1px solid #999;
        color: white;
        padding: 12px;
        min-height: 45px;
        font-size: 1rem;
        font-weight: 600;
        text-align: center;
    }

    /* Grammar/morphology - LIGHT GREY, italic */
    .word-card .grammar {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f0f0f0;
        border-bottom: 1px solid #999;
        color: #555;
        padding: 8px 12px;
        min-height: 35px;
        font-size: 0.8rem;
        text-align: center;
        font-style: italic;
        line-height: 1.5;
    }

        /* Hide empty grammar rows */
        .word-card .grammar:empty {
            display: none;
        }

    /* Root reference - LIGHT YELLOW */
    .word-card .reference {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: lightyellow;
        padding: 10px;
        min-height: 45px;
        font-size: 0.85rem;
        text-align: center;
    }

        .word-card .reference a.wfwRootA {
            color: green;
            text-decoration: none;
            font-family: 'Amiri', 'Traditional Arabic', serif;
            font-size: 1.3rem;
            font-weight: bold;
            padding: 2px 4px;
        }

            .word-card .reference a.wfwRootA:hover {
                text-decoration: underline;
                color: #1e40af;
            }

/* ==========================================
   ACKNOWLEDGEMENTS
   ========================================== */

#NLP-ack {
    max-width: 700px;
    margin: 30px auto;
    padding: 20px;
    background: #374151;
    color: #e2e8f0;
    border-radius: 8px;
    text-align: left;
}

    #NLP-ack h3 {
        color: #93c5fd;
        margin-bottom: 12px;
        font-size: 1rem;
    }

.P-ack {
    color: #e2e8f0;
    line-height: 1.6;
    margin: 8px 0 8px 15px;
    font-size: 0.9rem;
}

    .P-ack a {
        color: #60a5fa;
        text-decoration: none;
    }

        .P-ack a:hover {
            color: #93c5fd;
            text-decoration: underline;
        }

/* ==========================================
   DONATE BLOCK (shared blue style)
   ========================================== */

.donate-simple {
    max-width: 700px;
    margin: 30px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.donate-header {
    text-align: center;
    margin-bottom: 30px;
}

    .donate-header h2 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        color: #1e3a8a;
    }

    .donate-header p {
        font-size: 1.1rem;
        color: #666;
    }

.support-option {
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

    .support-option.primary {
        background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
        border-color: #2563eb;
    }

    .support-option.secondary {
        background: #f9fafb;
    }

.option-content {
    max-width: 600px;
    margin: 0 auto;
}

.option-badge {
    display: inline-block;
    background: #fbbf24;
    color: #78350f;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.support-option h3 {
    font-size: 1.5rem;
    margin: 10px 0;
    color: #1e3a8a;
}

.support-option p {
    color: #4b5563;
    line-height: 1.6;
    margin: 10px 0;
}

.option-benefits {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

    .option-benefits li {
        padding: 8px 0;
        color: #4b5563;
    }

.donate-simple .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    margin: 10px 0;
}

.donate-simple .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

    .donate-simple .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
    }

.option-note {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 10px;
}

#paypal-donate-container {
    margin: 20px 0;
    text-align: center;
}

.donate-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
    color: #6b7280;
}

    .donate-footer strong {
        color: #1e3a8a;
    }

/* ==========================================
   SITE FOOTER (matches Hub)
   ========================================== */

.site-footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .site-header .logo {
        font-size: 1.2rem;
    }

    .site-header .primary-nav {
        gap: 1rem;
    }

        .site-header .primary-nav a {
            font-size: 0.85rem;
        }

    .breadcrumbs {
        font-size: 0.8rem;
    }

    .arabic-hero .arabic-text-btn {
        font-size: 1.4rem;
        padding: 16px 18px;
    }

    .word-cards-container {
        padding: 20px 10px;
        gap: 15px;
    }

    .word-card {
        width: 90%;
        max-width: 450px;
    }

    .donate-simple {
        margin: 20px 10px;
    }

    .donate-header h2 {
        font-size: 1.5rem;
    }

    .donate-simple .btn {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .word-card {
        width: 95%;
    }

        .word-card .arabic .BtnArabic {
            font-size: 1.5rem;
        }

        .word-card .transliteration,
        .word-card .translation,
        .word-card .grammar,
        .word-card .reference {
            font-size: 0.8rem;
            padding: 8px;
        }

    .arabic-hero .arabic-text-btn {
        font-size: 1.2rem;
        padding: 14px;
    }
}

/* ==========================================
   PRINT
   ========================================== */

@media print {
    .site-header,
    .breadcrumbs,
    .ayah-nav,
    .language-bar,
    .donate-simple,
    .site-footer,
    #NLP-ack {
        display: none;
    }

    .word-card {
        page-break-inside: avoid;
        border: 1px solid #333;
        box-shadow: none;
    }

        .word-card .arabic .BtnArabic {
            color: black;
        }

    body {
        background: white;
    }
}
