/* kuranikerim.gen.tr - Modern Tasarim */

:root {
    --primary: #1a6b4a;
    --primary-light: #e8f5ee;
    --primary-dark: #0d4a30;
    --gold: #c8a84e;
    --gold-light: #faf3e0;
    --text: #2c3e50;
    --text-light: #6b7c8d;
    --bg: #f8faf9;
    --white: #ffffff;
    --border: #e2e8f0;
    --red: #e74c3c;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.1);
    --radius: 10px;
    --radius-sm: 6px;
}

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

:root { --font-size: 15px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: var(--font-size);
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

/* Layout */
.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.site-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-logo span { color: var(--gold); }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.site-nav a:hover, .site-nav a.active { color: var(--primary); }

/* Footer */
.site-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 24px 0;
    margin-top: 48px;
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}
.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

/* Search Form */
.search-box {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 28px;
    margin-bottom: 28px;
}
.search-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 180px;
}
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-input, .form-select {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}
.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,107,74,0.1);
}
.btn {
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(26,107,74,0.3);
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text);
}
.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

/* Verse Display */
.verse-block {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.verse-block:last-child { border-bottom: none; }
.verse-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}
.translation {
    margin-bottom: 12px;
    padding-left: 16px;
    border-left: 3px solid var(--border);
}
.translation:last-child { margin-bottom: 0; }
.translator-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.translation-text {
    font-size: 1em;
    line-height: 1.8;
    color: var(--text);
}
.highlight { background: #fff3cd; padding: 1px 3px; border-radius: 3px; color: var(--red); font-weight: 600; }

/* Surah List */
.surah-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}
.surah-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    border: 1px solid transparent;
}
.surah-item:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}
.surah-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.surah-name { font-weight: 600; font-size: 14px; color: var(--text); }
.surah-name-tr { font-size: 12px; color: var(--text-light); }

/* Tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.tag:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
}

/* Search Results */
.result-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.result-item:last-child { border-bottom: none; }
.result-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.result-surah {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: 12px;
}
.result-ayetno {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
}
.result-text { font-size: 1em; line-height: 1.7; }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.page-link:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.page-link.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.page-link.arrow { font-weight: 700; }

/* Info Box */
.info-box {
    background: var(--gold-light);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 24px;
}
.info-box h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--primary-dark);
}
.info-box ul { padding-left: 20px; }
.info-box li { margin-bottom: 8px; font-size: 14px; color: var(--text); }

/* Stats */
.stats {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}
.stat {
    text-align: center;
    padding: 12px 20px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
}
.stat-value { font-size: 20px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--text-light); }

/* Hero */
.hero {
    text-align: center;
    padding: 48px 0 32px;
}
.hero h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}
.hero p {
    font-size: 16px;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

/* Bismillah */
.bismillah {
    text-align: center;
    font-size: 18px;
    color: var(--gold);
    padding: 16px 0;
    font-style: italic;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

/* Section Title */
.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Surah Table */
.surah-table { width: 100%; border-collapse: collapse; }
.surah-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    border-bottom: 2px solid var(--border);
}
.surah-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.surah-table tr:hover td { background: var(--primary-light); }
.surah-table a { font-weight: 600; }

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    transition: all 0.2s;
}
.icon-btn:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.font-size-controls { display: flex; gap: 2px; }
.font-size-controls .icon-btn { width: 28px; height: 28px; font-size: 12px; font-weight: 700; }

/* Share Button */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    font-size: 12px;
    color: var(--text-light);
    transition: all 0.2s;
    font-family: inherit;
}
.share-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* Sure Info Card */
.sure-info {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.sure-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--primary-light);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}
.sure-info-item.medeni { background: #e8f0fe; color: #1a56db; }
.sure-info-konu {
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 16px;
}

/* Continue Reading */
.continue-reading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--gold-light);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
    transition: all 0.2s;
}
.continue-reading:hover { background: var(--gold); color: var(--white); }

/* Daily Verse */
.daily-verse {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 28px;
    text-align: center;
}
.daily-verse-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 12px;
}
.daily-verse-text {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 12px;
}
.daily-verse-source {
    font-size: 13px;
    opacity: 0.7;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 14px;
    z-index: 10000;
    animation: toastIn 0.3s ease, toastOut 0.3s ease forwards;
    pointer-events: none;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; } }

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text);
    color: var(--white);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 9999;
    font-size: 13px;
    flex-wrap: wrap;
}
.cookie-banner a { color: var(--gold); }
.cookie-banner .btn { padding: 8px 20px; font-size: 13px; background: var(--primary); }
.cookie-banner.hidden { display: none; }

/* Dark Mode */
html.dark {
    --primary: #4ade80;
    --primary-light: #1a2e23;
    --primary-dark: #86efac;
    --gold: #fbbf24;
    --gold-light: #292524;
    --text: #e2e8f0;
    --text-light: #94a3b8;
    --bg: #0f172a;
    --white: #1e293b;
    --border: #334155;
    --red: #f87171;
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.4);
}
html.dark .site-header { background: rgba(30,41,59,0.95); }
html.dark .daily-verse { background: linear-gradient(135deg, #064e3b, #065f46); }
html.dark .form-input, html.dark .form-select { background: #0f172a; color: var(--text); border-color: var(--border); }
html.dark .icon-btn { background: var(--white); }
html.dark .share-btn { background: var(--white); }
html.dark .cookie-banner { background: #334155; }
html.dark .toast { background: var(--primary-light); color: var(--primary); }
html.dark img { opacity: 0.85; }

/* Responsive */
@media (max-width: 640px) {
    .hero h1 { font-size: 22px; }
    .hero p { font-size: 14px; }
    .search-form { flex-direction: column; }
    .form-group { min-width: 100%; }
    .surah-grid { grid-template-columns: 1fr; }
    .site-header .container-wide { flex-direction: column; gap: 8px; }
    .site-nav { justify-content: center; }
    .card { padding: 16px; }
    .search-box { padding: 20px; }
    .translation { padding-left: 12px; }
    .daily-verse { padding: 20px; }
    .cookie-banner { flex-direction: column; text-align: center; }
}
