/* ==========================================
   SurahTranslator2025.css
   IslamAwakened Surah-by-Translator Pages
   Matches Hub + WFW + Ayah 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: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   SITE HEADER (identical to all other pages)
   ========================================== */

.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;
    max-width: 1200px;
}

.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
   ========================================== */

.breadcrumbs {
    background: #f1f5f9;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.85rem;
}

.breadcrumbs .container {
    max-width: 1200px;
}

.breadcrumbs a {
    color: #2563eb;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .separator {
    color: #94a3b8;
    margin: 0 6px;
}

.breadcrumbs .current {
    color: #64748b;
    font-weight: 500;
}

/* ==========================================
   PAGE TITLE (replaces Arabic hero)
   ========================================== */

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

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

.page-title-section .subtitle {
    font-size: 1rem;
    opacity: 0.85;
    font-weight: 400;
}

.page-title-section .subtitle a {
    color: white;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.page-title-section .subtitle a:hover {
    opacity: 1;
    text-decoration-style: solid;
}

/* ==========================================
   SURAH NAVIGATION (prev/next surah)
   ========================================== */

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

.surah-nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 1200px;
}

.surah-nav a.surahNav,
.surah-nav span.surahNav {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.surah-nav a.surahNav {
    color: #2563eb;
    text-decoration: none;
}

.surah-nav a.surahNav:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    text-decoration: none;
}

.surah-nav span.surahNav.current {
    color: #1e3a8a;
    font-weight: 700;
    background: #dbeafe;
    border-color: #93c5fd;
}

.surah-nav.bottom {
    border-top: 1px solid #e2e8f0;
    border-bottom: none;
}

/* ==========================================
   AYAH ROWS
   ========================================== */

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

.ayah-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.15s;
}

.ayah-row:last-child {
    border-bottom: none;
}

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

/* Ayah number badge */
.ayah-number {
    flex-shrink: 0;
    min-width: 56px;
    text-align: center;
}

.ayah-number a {
    display: inline-block;
    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;
}

.ayah-number a:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    text-decoration: none;
}

/* ==========================================
   TRANSLATION TEXT CSS CLASSES
   Preserved from original site:
   stcl1 = Standard (white bg)
   stcl2 = Modern (green tint)
   stcl3 = Apologetic (yellow tint)
   stcl4 = Unique (red tint)
   stcl5 = Shia (cyan tint)
   stcl6 = Other (grey)
   stcl{n}-a = Arabic variant (RTL, larger)
   ========================================== */

.stcl1, .stcl2, .stcl3, .stcl4, .stcl5, .stcl6 {
    flex: 1;
    font-size: 1rem;
    line-height: 1.8;
    color: #1f2937;
    min-width: 0;
}

/* Mild category color tints on the translation text */
.stcl1 { color: #1f2937; }
.stcl2 { color: #14532d; }
.stcl3 { color: #713f12; }
.stcl4 { color: #7f1d1d; }
.stcl5 { color: #164e63; }
.stcl6 { color: #374151; }

/* Arabic variants: RTL, larger font, green */
.stcl1-a, .stcl2-a, .stcl3-a, .stcl4-a, .stcl5-a, .stcl6-a {
    flex: 1;
    font-family: 'Amiri', 'Traditional Arabic', serif;
    font-size: 1.5rem;
    line-height: 2;
    color: green;
    text-align: right;
    direction: rtl;
    min-width: 0;
}

/* ==========================================
   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);
    text-decoration: none;
}

.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
   ========================================== */

.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;
    }

    .page-title-section h1 {
        font-size: 1.4rem;
    }

    .page-title-section .subtitle {
        font-size: 0.9rem;
    }

    .container {
        padding: 0 12px;
    }

    .ayah-row {
        padding: 12px;
        gap: 10px;
    }

    .ayah-number {
        min-width: 48px;
    }

    .ayah-number a {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .stcl1, .stcl2, .stcl3, .stcl4, .stcl5, .stcl6 {
        font-size: 0.95rem;
    }

    .stcl1-a, .stcl2-a, .stcl3-a, .stcl4-a, .stcl5-a, .stcl6-a {
        font-size: 1.3rem;
    }

    .surah-nav a.surahNav,
    .surah-nav span.surahNav {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .donate-simple {
        margin: 20px 10px;
    }
}

@media (max-width: 480px) {
    .ayah-row {
        flex-direction: column;
        gap: 6px;
    }

    .ayah-number {
        min-width: auto;
        text-align: left;
    }
}

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

@media print {
    .site-header,
    .breadcrumbs,
    .surah-nav,
    .donate-simple,
    .site-footer {
        display: none;
    }

    .page-title-section {
        background: white;
        color: black;
        border-bottom: 2px solid black;
    }

    .ayah-row {
        break-inside: avoid;
    }

    body {
        background: white;
    }
}