/* ==========================================
   IslamAwakened Multilang Pages 2025
   Covers: Language Index, Language Detail,
   Translation Index, Chapter, Verse Comparison
   ========================================== */

/* ==========================================
   RESET & BASE
   ========================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #f9fafb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

a { color: #1e3a8a; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ==========================================
   SITE HEADER (Hub-style compact blue)
   ========================================== */

.site-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    padding: 10px 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header .logo {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
}

.site-header .primary-nav a {
    color: rgba(255, 255, 255, 0.85);
    margin-left: 16px;
    font-size: 0.85rem;
    text-decoration: none;
}

.site-header .primary-nav a:hover { color: white; }

/* ==========================================
   BREADCRUMBS
   ========================================== */

.breadcrumbs {
    background: #f1f5f9;
    padding: 8px 0;
    font-size: 0.8rem;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumbs a { color: #475569; }
.breadcrumbs a:hover { color: #1e3a8a; }
.breadcrumbs .separator { margin: 0 6px; color: #94a3b8; }
.breadcrumbs .current { color: #1e3a8a; font-weight: 600; }

/* ==========================================
   ARABIC HERO (Verse Comparison only)
   ========================================== */

.arabic-hero {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 32px 0;
    text-align: center;
    border-bottom: 2px solid #bfdbfe;
}

.arabic-text-btn {
    font-family: 'Amiri', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e3a8a;
    background: white;
    border: 2px solid #93c5fd;
    border-radius: 10px;
    padding: 16px 28px;
    cursor: pointer;
    line-height: 2;
    transition: all 0.2s;
}

.arabic-text-btn:hover {
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
}

/* ==========================================
   PAGE TITLE SECTION
   ========================================== */

.page-title-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    padding: 24px 0;
    text-align: center;
    color: white;
}

.page-title-section h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.page-title-section .subtitle {
    font-size: 0.95rem;
    opacity: 0.85;
}

.page-title-section .chapter-info {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 4px;
}

/* ==========================================
   CARD GRID (Language/Translation indexes)
   ========================================== */

.card-grid-container {
    padding: 24px 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.ml-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ml-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ml-card h3 {
    color: #1e3a8a;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.ml-card h4 {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.ml-card .native-name,
.ml-card .translator {
    font-style: italic;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.ml-card .arabic-name {
    font-family: 'Amiri', serif;
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 6px;
}

.ml-card .year {
    font-size: 0.85rem;
    color: #6b7280;
}

.ml-card p {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 8px;
}

.ml-card .chapter-number {
    display: inline-block;
    background: #1e3a8a;
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    text-align: center;
    line-height: 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.ml-btn {
    display: inline-block;
    background: #1e3a8a;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
    margin-top: 6px;
}

.ml-btn:hover {
    background: #2563eb;
    text-decoration: none;
    color: white;
}

/* ==========================================
   VERSE NAVIGATION (Verse Comparison)
   ========================================== */

.verse-nav {
    background: #f8fafc;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.verse-nav .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.verseNav {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    border: 1px solid #e2e8f0;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
}

a.verseNav:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e3a8a;
    text-decoration: none;
}

.verseNav.current {
    font-weight: 700;
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e3a8a;
}

.verseNav.hub-link {
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
    font-weight: 600;
}

.verseNav.hub-link:hover {
    background: #2563eb;
}

/* ==========================================
   CHAPTER NAVIGATION
   ========================================== */

.chapter-nav {
    background: #f8fafc;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.chapter-nav .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.chapterNav {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    border: 1px solid #e2e8f0;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
}

a.chapterNav:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e3a8a;
    text-decoration: none;
}

.chapterNav.current {
    font-weight: 700;
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e3a8a;
}

/* ==========================================
   LANGUAGE GROUPS (Verse Comparison)
   ========================================== */

.translations-container {
    padding: 16px 0;
}

.language-group {
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.language-header {
    display: block;
    width: 100%;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    background: #1e3a8a;
    margin: 0;
}

.translation-entry {
    padding: 12px 18px;
    border-bottom: 1px solid #e5e7eb;
}

.translation-entry:last-child {
    border-bottom: none;
}

.translation-entry:hover {
    background: #f8fafc;
}

.translator-info {
    margin-bottom: 4px;
}

.translator-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-decoration: none;
}

.translator-name:hover {
    color: #2563eb;
    text-decoration: underline;
}

.translator-detail {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-left: 8px;
}

.translation-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #1f2937;
    padding: 2px 0;
}

.translation-text[dir="rtl"] {
    text-align: right;
    font-size: 1.1rem;
    line-height: 2;
}

/* ==========================================
   VERSE LIST (Chapter pages)
   ========================================== */

.verse-list-container {
    padding: 16px 0;
}

.verse-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.verse-row:hover {
    background: #f0f9ff;
}

.verse-badge {
    flex-shrink: 0;
    display: inline-block;
    min-width: 56px;
    text-align: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e3a8a;
    background: #dbeafe;
    border: 1px solid #93c5fd;
    text-decoration: none;
    transition: all 0.2s;
}

.verse-badge:hover {
    background: #2563eb;
    color: white;
    text-decoration: none;
}

.verse-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.8;
    color: #1f2937;
}

.verse-text.missing-text {
    font-style: italic;
    color: #9ca3af;
}

/* ==========================================
   DONATE (shared blue style)
   ========================================== */

.donate-simple { max-width: 600px; margin: 30px auto; padding: 0 16px; }
.donate-header { text-align: center; margin-bottom: 16px; }
.donate-header h2 { font-size: 1.2rem; color: #1e3a8a; }
.donate-header p { color: #64748b; font-size: 0.9rem; }
.support-option { background: white; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; margin-bottom: 12px; }
.support-option.primary { border-color: #bfdbfe; background: #f8faff; }
.option-badge { display: inline-block; background: #78350f; color: #fbbf24; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; }
.option-content h3 { font-size: 1rem; color: #1f2937; margin-bottom: 6px; }
.option-content p { font-size: 0.9rem; color: #4b5563; margin-bottom: 8px; }
.option-benefits { list-style: none; padding: 0; margin-bottom: 12px; }
.option-benefits li { font-size: 0.85rem; color: #4b5563; padding: 2px 0; }
.donate-simple .btn { display: inline-flex; align-items: center; gap: 8px; background: #1e3a8a; color: white; padding: 10px 20px; border-radius: 6px; text-decoration: none; font-weight: 600; transition: background 0.2s; }
.donate-simple .btn:hover { background: #2563eb; }
.btn-icon { font-size: 1.1rem; }
.btn-arrow { font-size: 1rem; }
.option-note { font-size: 0.75rem; color: #9ca3af; margin-top: 6px; }
.donate-footer { text-align: center; padding: 10px 0; }
.donate-footer p { font-size: 0.85rem; color: #64748b; }

/* ==========================================
   SITE FOOTER
   ========================================== */

.site-footer {
    background: #1f2937;
    color: #9ca3af;
    text-align: center;
    padding: 16px 0;
    font-size: 0.8rem;
    margin-top: 20px;
}

.site-footer a { color: #93c5fd; }

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

@media (max-width: 768px) {
    .card-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .arabic-text-btn { font-size: 1.6rem; padding: 12px 20px; }
    .page-title-section h1 { font-size: 1.3rem; }
    .verse-row { flex-direction: column; gap: 6px; }
    .verse-badge { align-self: flex-start; }
}

@media (max-width: 480px) {
    .card-grid { grid-template-columns: 1fr; }
    .arabic-text-btn { font-size: 1.3rem; padding: 10px 16px; }
    .site-header .container { flex-direction: column; gap: 8px; text-align: center; }
}

/* ==========================================
   PRINT
   ========================================== */

@media print {
    .site-header, .breadcrumbs, .verse-nav, .chapter-nav, .donate-simple, .site-footer { display: none; }
    .page-title-section { background: none; color: black; }
    .language-group { break-inside: avoid; }
}
