/* ==========================================
   WfwCv2025.css - Column View Dedicated Stylesheet
   IslamAwakened Word-for-Word Column View
   Matches Hub + BV 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 (identical to BV)
   ========================================== */

.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 (identical to BV)
   ========================================== */

.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 (identical to BV)
   ========================================== */

.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 (identical to BV)
   ========================================== */

.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 (identical to BV)
   ========================================== */

.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;
}

#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-FOR-WORD TABLE - POLISHED COLUMNAR
   ========================================== */

.wfw-table-container {
    padding: 24px 0;
}

.wfw-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Row layout */
.wfw-row {
    display: flex;
    min-width: 600px;
    border-bottom: 1px solid #e2e8f0;
}

.wfw-row:last-child {
    border-bottom: none;
}

/* Alternating row colors */
.wfw-row:nth-child(even) {
    background-color: #f8fafc;
}

/* Hover highlight */
.wfw-row:not(.header):hover {
    background-color: #eff6ff;
}

/* Header row */
.wfw-row.header {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #1e3a8a;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 2px solid #1e40af;
}

/* Column cells */
.wfw-english,
.wfw-translit,
.wfw-arabic,
.wfw-root {
    padding: 12px 14px;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: flex;
    align-items: center;
}

/* Column proportions */
.wfw-english {
    flex: 3;
    color: #1f2937;
    font-weight: 500;
}

.wfw-translit {
    flex: 2;
    color: #6b7280;
    font-size: 0.9rem;
    justify-content: center;
    text-align: center;
}

.wfw-arabic {
    flex: 2;
    justify-content: center;
    text-align: center;
}

.wfw-root {
    flex: 2;
    justify-content: center;
    text-align: center;
}

/* Header cell overrides */
.wfw-row.header .wfw-english,
.wfw-row.header .wfw-translit,
.wfw-row.header .wfw-arabic,
.wfw-row.header .wfw-root {
    color: white;
}

/* Arabic buttons in table */
.wfw-arabic .BtnArabic {
    border: none;
    color: darkgreen;
    background-color: transparent;
    font-family: 'Amiri', 'Traditional Arabic', serif;
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.wfw-arabic .BtnArabic:hover {
    color: #006400;
}

/* Root links */
.wfw-root a.wfwRootA {
    color: green;
    text-decoration: none;
    font-family: 'Amiri', 'Traditional Arabic', serif;
    font-size: 1.2rem;
    font-weight: bold;
}

.wfw-root a.wfwRootA:hover {
    text-decoration: underline;
    color: #1e40af;
}

/* ==========================================
   ACKNOWLEDGEMENTS (matches BV)
   ========================================== */

#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, matches BV)
   ========================================== */

.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 BV + 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;
    }

    /* Table scrolls horizontally on mobile */
    .wfw-table {
        overflow-x: auto;
    }

    .wfw-row {
        min-width: 550px;
    }

    .wfw-english,
    .wfw-translit,
    .wfw-arabic,
    .wfw-root {
        font-size: 0.85rem;
        padding: 10px 8px;
    }

    .wfw-arabic .BtnArabic {
        font-size: 1.1rem;
    }

    .donate-simple {
        margin: 20px 10px;
    }
}

@media (max-width: 480px) {
    .wfw-row {
        min-width: 480px;
    }

    .wfw-english,
    .wfw-translit,
    .wfw-arabic,
    .wfw-root {
        font-size: 0.8rem;
        padding: 8px 6px;
    }

    .wfw-row.header {
        font-size: 0.7rem;
    }

    .wfw-arabic .BtnArabic {
        font-size: 1rem;
    }

    .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;
    }

    .wfw-table {
        box-shadow: none;
        border: 1px solid #333;
    }

    .wfw-row {
        min-width: 100%;
    }

    .wfw-arabic .BtnArabic {
        color: black;
    }

    body {
        background: white;
    }
}