/**
 * Kuran-ı Kerim - Profesyonel Dini Site Tasarımı
 * Saygılı, sade, okunaklı
 */

:root {
    --color-primary: #0d5c2e;
    --color-primary-dark: #0a4723;
    --color-accent: #c9a227;
    --color-accent-light: #e8d48a;
    --color-bg: #f8f6f0;
    --color-bg-card: #ffffff;
    --color-text: #2c2c2c;
    --color-text-muted: #5a5a5a;
    --color-border: #e5e0d5;
    --font-arabic: 'Amiri', 'Traditional Arabic', serif;
    --font-body: 'Source Sans 3', -apple-system, sans-serif;
    --shadow-soft: 0 2px 12px rgba(13, 92, 46, 0.08);
    --shadow-card: 0 4px 20px rgba(13, 92, 46, 0.06);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    background: var(--color-primary);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-soft);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.logo-arabic {
    font-family: var(--font-arabic);
    font-size: 1.5rem;
}

.logo-turkish {
    font-size: 0.9rem;
    opacity: 0.95;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    font-weight: 500;
}

.main-nav a:hover {
    color: white;
}

/* Main content */
.main-content {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
}

/* Bismillah */
.bismillah-banner {
    text-align: center;
    padding: 2.5rem 1rem;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: white;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.bismillah-banner.compact {
    padding: 1.5rem;
}

.bismillah-arabic {
    font-family: var(--font-arabic);
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
}

.bismillah-turkish {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

/* Section titles */
.section-title {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin: 0 0 1.5rem 0;
    font-weight: 600;
}

/* Daily ayah card */
.daily-ayah-card {
    background: var(--color-bg-card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
}

.daily-ayah-card.large {
    padding: 2.5rem;
}

.surah-badge {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.ayah-arabic {
    font-family: var(--font-arabic);
    font-size: 1.75rem;
    line-height: 2;
    color: var(--color-primary-dark);
    margin: 1rem 0;
    text-align: right;
}

.ayah-turkish {
    font-size: 1.05rem;
    color: var(--color-text);
    margin: 1rem 0;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Chapters grid */
.chapters-preview {
    margin-top: 3rem;
}

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.chapter-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: all 0.2s;
}

.chapter-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-soft);
}

.chapter-number {
    font-size: 0.8rem;
    color: var(--color-accent);
    font-weight: 600;
}

.chapter-arabic {
    font-family: var(--font-arabic);
    font-size: 1.5rem;
    color: var(--color-primary);
}

.chapter-turkish {
    font-size: 0.95rem;
    font-weight: 500;
}

.chapter-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.view-all-link {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Chapters full list */
.chapters-page {
    margin-top: 1rem;
}

.page-heading {
    font-size: 1.75rem;
    color: var(--color-primary);
    margin: 0 0 0.5rem 0;
}

.page-intro {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.chapters-full-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chapter-row {
    display: grid;
    grid-template-columns: 40px 1fr 120px 80px 80px;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.chapter-row:hover {
    border-color: var(--color-primary);
}

.chapter-num {
    font-weight: 600;
    color: var(--color-accent);
}

.chapter-ayat {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.chapter-place {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Surah page */
.surah-page {
    padding-bottom: 2rem;
}

.surah-header {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.back-link:hover {
    text-decoration: underline;
}

.surah-title {
    margin: 0 0 0.5rem 0;
}

.surah-arabic {
    display: block;
    font-family: var(--font-arabic);
    font-size: 2rem;
    color: var(--color-primary);
}

.surah-turkish {
    font-size: 1.25rem;
    color: var(--color-text);
}

.surah-meta {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

.bismillah-inline {
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(13,92,46,0.06) 0%, rgba(201,162,39,0.04) 100%);
    border-radius: 8px;
}

.bismillah-inline p {
    font-family: var(--font-arabic);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin: 0;
}

.ayahs-list {
    margin: 2rem 0;
}

.ayah-block {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.ayah-block:last-child {
    border-bottom: none;
}

.ayah-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.ayah-number-link {
    text-decoration: none;
    transition: opacity 0.2s;
}

.ayah-number-link:hover {
    opacity: 0.9;
}

.ayah-block .ayah-arabic {
    font-size: 1.5rem;
}

.surah-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.nav-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.nav-link:hover {
    text-decoration: underline;
}

/* Ayet detay sayfası */
.ayet-page {
    padding-bottom: 2rem;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .sep {
    margin: 0 0.4rem;
}

.ayet-header {
    margin-bottom: 2rem;
}

.ayet-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin: 0 0 0.5rem 0;
}

.ayet-meta {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0;
}

.ayah-block-single {
    padding: 2rem;
    background: var(--color-bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
}

.ayet-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

/* Daily page */
.daily-page {
    text-align: center;
}

.date-display {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0 0 1.5rem 0;
}

/* Footer */
.site-footer {
    background: var(--color-primary-dark);
    color: white;
    padding: 2rem 1.5rem;
    margin-top: 3rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.site-footer .bismillah {
    font-family: var(--font-arabic);
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
}

.footer-text {
    margin: 0 0 0.25rem 0;
    opacity: 0.95;
}

.footer-note {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
}

.footer-credit {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0.75rem 0 0 0;
}

.footer-credit a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.footer-credit a:hover {
    color: white;
    text-decoration: underline;
}

/* Ses kontrolleri */
.btn-play-ayah,
.btn-play-surah {
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-play-surah {
    width: auto;
    padding: 0.5rem 1rem;
    border-radius: 24px;
    gap: 0.4rem;
}

.btn-play-ayah:hover,
.btn-play-surah:hover {
    background: var(--color-primary-dark);
}

.btn-play-daily {
    width: auto;
    padding: 0.5rem 1rem;
    border-radius: 24px;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.icon-play {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 8px solid currentColor;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    margin-left: 2px;
}

.btn-audio-toggle .icon-pause {
    display: none;
}

.btn-audio-toggle .icon-pause i {
    display: inline-block;
    width: 4px;
    height: 14px;
    background: currentColor;
    margin: 0 1px;
}

.audio-player.playing .btn-audio-toggle .icon-play {
    display: none;
}

.audio-player.playing .btn-audio-toggle .icon-pause {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ayah-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.ayah-header .ayah-number {
    margin-bottom: 0;
}

.surah-audio-control {
    margin-top: 1rem;
}

/* Sticky ses çalar */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-primary-dark);
    color: white;
    padding: 0.75rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.audio-player.visible {
    transform: translateY(0);
}

.audio-player-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-audio-toggle {
    background: var(--color-accent);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-audio-toggle:hover {
    background: var(--color-accent-light);
    color: var(--color-primary-dark);
}

.audio-info {
    flex: 1;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav {
        gap: 1.5rem;
    }

    .bismillah-arabic {
        font-size: 1.5rem;
    }

    .chapter-row {
        grid-template-columns: 35px 1fr 70px;
        gap: 0.5rem;
    }

    .chapter-row .chapter-place {
        display: none;
    }

    .surah-footer {
        flex-direction: column;
        gap: 1rem;
    }
}
