/* QuranIndex2025.css - Dedicated CSS for Gen.Index pages */
/* Quran Index (surah card grid) and Surah Index (ayah link grid) */

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

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

/* ---- Site Header ---- */
.site-header {
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 50%, #42a5f5 100%);
    padding: 20px 0;
}
.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-header .logo {
    font-family: 'Cinzel', serif;
    color: #fff;
    font-size: 1.8em;
    text-decoration: none;
    font-weight: 600;
}
.site-header .tagline {
    color: rgba(255,255,255,0.8);
    font-size: 0.85em;
    margin-top: 2px;
}
.site-header .primary-nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.95em;
}
.site-header .primary-nav a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
    background: #e3f2fd;
    padding: 10px 20px;
    font-size: 0.85em;
}
.breadcrumbs .container {
    max-width: 1200px;
    margin: 0 auto;
}
.breadcrumbs a {
    color: #1565c0;
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs .separator {
    color: #90a4ae;
    margin: 0 6px;
}
.breadcrumbs .current {
    color: #546e7a;
}

/* ---- Page Title (Quran Index) ---- */
.page-title {
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
    color: #fff;
    padding: 30px 20px;
    text-align: center;
}
.page-title h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.8em;
    margin-bottom: 6px;
}
.page-title .subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 1em;
}

/* ---- Main Container ---- */
main.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* ---- Surah Card Grid (Quran Index) ---- */
.surah-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.surah-card {
    background: #fff;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.15s;
}
.surah-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}
.surah-num {
    background: linear-gradient(135deg, #1565c0, #42a5f5);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1em;
    flex-shrink: 0;
}
.surah-info {
    flex: 1;
    min-width: 0;
}
.surah-info .name-trans {
    font-weight: 600;
    font-size: 1.05em;
    color: #1565c0;
}
.surah-info .name-eng {
    font-size: 0.85em;
    color: #666;
}
.surah-info .name-ar {
    font-family: 'Amiri', serif;
    font-size: 1.1em;
    color: #333;
}
.surah-meta {
    font-size: 0.78em;
    color: #999;
    margin-top: 2px;
}

/* ---- Surah Hero (Surah Index) ---- */
.surah-hero {
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 50%, #42a5f5 100%);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}
.surah-hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 2em;
}
.surah-hero .arabic {
    font-family: 'Amiri', serif;
    font-size: 2.2em;
    margin: 10px 0;
}
.surah-hero .meta {
    color: rgba(255,255,255,0.85);
    font-size: 0.95em;
}

/* ---- Ayah Link Grid (Surah Index) ---- */
.section-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}
.ayah-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 0;
}
.ayah-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    min-width: 44px;
    height: 36px;
    padding: 0 10px;
    text-decoration: none;
    color: #1565c0;
    font-size: 0.9em;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s;
}
.ayah-link:hover {
    background: #e3f2fd;
    border-color: #1976d2;
}

/* ---- Surah Prev/Next Navigation ---- */
.surah-nav {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
}
.surah-nav a {
    color: #1565c0;
    text-decoration: none;
    font-weight: 500;
}
.surah-nav a:hover {
    text-decoration: underline;
}

/* ---- Donate Block Overrides ---- */
.donate-simple {
    max-width: 700px;
    margin: 40px auto;
}
.donate-simple .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}
.donate-simple .btn-primary {
    background: linear-gradient(135deg, #1565c0 0%, #42a5f5 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(21,101,192,0.3);
}
.donate-simple .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(21,101,192,0.4);
}
.donate-header {
    text-align: center;
    padding: 40px 20px 20px;
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
    border-radius: 16px 16px 0 0;
    color: white;
}
.donate-header h2 { margin: 0 0 10px; font-size: 1.6rem; font-weight: 700; }
.donate-header p { margin: 0; font-size: 1rem; opacity: 0.9; }
.support-option { padding: 30px; background: #fff; border-left: 4px solid #e0e0e0; }
.support-option.primary {
    border-left-color: #1565c0;
    border-left-width: 6px;
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
}
.option-content { max-width: 600px; margin: 0 auto; }
.option-badge {
    display: inline-block;
    background: #fbbf24;
    color: #78350f;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}
.support-option h3 { margin: 0 0 10px; font-size: 1.4rem; color: #1a237e; }
.support-option p { color: #5a6c7d; line-height: 1.6; margin-bottom: 20px; }
.option-benefits { list-style: none; padding: 0; margin: 20px 0; }
.option-benefits li { padding: 8px 0; color: #2c3e50; font-size: 1rem; }
.option-note { text-align: center; color: #8492a6; font-size: 0.9rem; margin-top: 15px; font-style: italic; }
.donate-footer {
    text-align: center;
    padding: 25px 20px;
    background: #f8f9fa;
    border-radius: 0 0 16px 16px;
}
.donate-footer p { margin: 0; color: #5a6c7d; line-height: 1.6; }

/* ---- Site Footer ---- */
.site-footer {
    background: #263238;
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.85em;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .surah-grid {
        grid-template-columns: 1fr;
    }
    .site-header .container {
        flex-direction: column;
        gap: 8px;
    }
    .surah-hero h1 {
        font-size: 1.5em;
    }
    .surah-hero .arabic {
        font-size: 1.6em;
    }
}
