/* ==========================================
   AyahTranslations2025.css
   IslamAwakened Ayah Translation Comparison
   Matches Hub + WFW 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 WFW)
   ========================================== */

.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 (identical to WFW)
   ========================================== */

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

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

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

.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: 800px;
    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 WFW)
   ========================================== */

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

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

/* ==========================================
   TRANSLATIONS CONTAINER
   ========================================== */

.translations-container {
    padding: 24px 0 10px;
}

/* ==========================================
   CATEGORY FIELDSETS (polished, color-coded)
   ========================================== */

fieldset {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 0 0 20px 0;
    padding: 0;
    overflow: hidden;
}

/* Category legend - styled as section header */
.cat-legend {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    background: #6b7280;
    border: none;
    float: none;
}

/* ==========================================
   CATEGORY COLOR CODING
   Preserved from the original site identity:
   cat1 = white (classical/standard)
   cat2 = soft green (modern/interpretive)
   cat3 = soft yellow (apologetic)
   cat4 = soft red (unique/controversial)
   cat5 = soft cyan (Shia)
   cat6 = grey (other)
   ========================================== */

/* Category 1: Classical / Standard */
fieldset.cat1 {
    border-color: #bfdbfe;
}

fieldset.cat1 .cat-legend {
    background: #1e3a8a;
}

fieldset.cat1 .translation-entry {
    background: #ffffff;
}

/* Category 2: Modern / Interpretive */
fieldset.cat2 {
    border-color: #bbf7d0;
}

fieldset.cat2 .cat-legend {
    background: #166534;
}

fieldset.cat2 .translation-entry {
    background: #f0fdf4;
}

/* Category 3: Apologetic */
fieldset.cat3 {
    border-color: #fde68a;
}

fieldset.cat3 .cat-legend {
    background: #92400e;
}

fieldset.cat3 .translation-entry {
    background: #fefce8;
}

/* Category 4: Unique / Controversial */
fieldset.cat4 {
    border-color: #fecaca;
}

fieldset.cat4 .cat-legend {
    background: #991b1b;
}

fieldset.cat4 .translation-entry {
    background: #fef2f2;
}

/* Category 5: Shia */
fieldset.cat5 {
    border-color: #a5f3fc;
}

fieldset.cat5 .cat-legend {
    background: #155e75;
}

fieldset.cat5 .translation-entry {
    background: #ecfeff;
}

/* Category 6: Other */
fieldset.cat6 {
    border-color: #d1d5db;
}

fieldset.cat6 .cat-legend {
    background: #4b5563;
}

fieldset.cat6 .translation-entry {
    background: #f9fafb;
}

/* ==========================================
   INDIVIDUAL TRANSLATION ENTRIES
   ========================================== */

.translation-entry {
    padding: 14px 20px;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.15s;
}

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

.translation-entry:hover {
    filter: brightness(0.97);
}

/* Translator name */
.translator-name {
    margin-bottom: 6px;
}

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

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

/* Translation text CSS classes (from TranslatorInfo.CssClass) */

/* Standard translation text (cl1 through cl6) */
.cl1, .cl2, .cl3, .cl4, .cl5, .cl6 {
    font-size: 1rem;
    line-height: 1.8;
    color: #1f2937;
    padding: 2px 0;
}

/* Arabic special case: right-to-left, larger font, green */
.cl1-a, .cl2-a, .cl3-a, .cl4-a, .cl5-a, .cl6-a {
    font-family: 'Amiri', 'Traditional Arabic', serif;
    font-size: 1.5rem;
    line-height: 2;
    color: green;
    text-align: right;
    direction: rtl;
    padding: 4px 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 (matches WFW + 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;
    }

    .container {
        padding: 0 12px;
    }

    .translation-entry {
        padding: 12px 14px;
    }

    .cat-legend {
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    .cl1, .cl2, .cl3, .cl4, .cl5, .cl6 {
        font-size: 0.95rem;
    }

    .cl1-a, .cl2-a, .cl3-a, .cl4-a, .cl5-a, .cl6-a {
        font-size: 1.3rem;
    }

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

@media (max-width: 480px) {
    .arabic-hero .arabic-text-btn {
        font-size: 1.2rem;
        padding: 14px;
    }

    .translation-entry {
        padding: 10px 12px;
    }

    .translator-name a {
        font-size: 0.75rem;
    }

    .cl1, .cl2, .cl3, .cl4, .cl5, .cl6 {
        font-size: 0.9rem;
    }
}

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

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

    .arabic-hero .arabic-text-btn {
        color: black;
        background: white;
        border: 1px solid black;
        box-shadow: none;
    }

    fieldset {
        break-inside: avoid;
    }

    .cat-legend {
        color: black;
        background: #e5e7eb;
    }

    body {
        background: white;
    }
}
