/* Dünya Edebiyatı Destansı Aşk Hikayeleri ve Bilgelik Atlası - Özel Stil Dosyası */
:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --accent-gold: #f59e0b;
  --accent-rose: #e11d48;
  --card-border: rgba(251, 191, 36, 0.22);
}

body.light-theme {
  --bg-primary: #fffbeb;
  --bg-secondary: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --card-border: rgba(217, 119, 6, 0.25);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.font-serif-title {
  font-family: 'Playfair Display', Georgia, Cambria, serif;
}

.glass-panel {
  background: rgba(30, 41, 59, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
}

body.light-theme .glass-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(217, 119, 6, 0.28);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
}

.card-hover {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.35);
  border-color: rgba(251, 191, 36, 0.55);
}

.quote-border {
  border-left: 4px solid #f59e0b;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}

/* R234: site reading style, mobile layout, keyboard access and reduced motion. */
.site-return{display:flex;flex-wrap:wrap;gap:16px;padding:14px 20px;background:#073748;color:white;position:relative;z-index:40}.site-return a{color:white;text-decoration:underline;min-height:28px}
.module-storage-status,.editorial-note{padding:16px;margin:16px;border:1px solid #0b7e87;border-radius:12px;background:#f5eedd;color:#111;line-height:1.7}.module-storage-status:empty{display:none}
*{box-sizing:border-box;scroll-behavior:auto!important;animation:none!important;transition:none!important}html,body{max-width:100%;margin:0}img,svg,canvas{max-width:100%}canvas{height:auto}button,a,input,select{touch-action:manipulation}button{min-height:40px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #008b95;outline-offset:3px}button:disabled{cursor:default;opacity:.75}
main p,main li,#bookModalBody p{font-size:1rem!important;line-height:1.75!important}main h2,main h3,main h4{line-height:1.35}header.sticky{position:relative!important}table{min-width:650px}td{white-space:normal!important}#bookModalBody{max-height:90dvh;overflow-y:auto}#bookModalBody>div:last-child{max-height:none}#bookModalBody .absolute.bottom-4{position:relative;inset:auto;padding:16px;background:#073748}#bookModalBody>div:first-child{height:auto}#bookModalBody>div:first-child>img{height:160px}#bookModalBody>div:first-child>.absolute.inset-0{display:none}
@media(max-width:640px){.site-return{padding:12px;gap:12px}main{padding-left:12px!important;padding-right:12px!important}#bookDetailModal{padding:8px}#bookModalBody .p-6{padding:16px}#toastNotification{left:12px;right:12px;bottom:12px}h1{overflow-wrap:anywhere}button{white-space:normal!important}}

body.light-theme{background:#f5eedd;color:#111}body.light-theme main .glass-panel,body.light-theme #bookModalBody,body.light-theme #bookModalBody .bg-slate-900\/90,body.light-theme #bookModalBody .bg-slate-900\/85,body.light-theme #bookModalBody .bg-slate-900\/70{background:#f5eedd;color:#111}body.light-theme main .glass-panel p,body.light-theme main .glass-panel blockquote,body.light-theme #bookModalBody p{color:#111!important}body.light-theme main h2,body.light-theme main h3,body.light-theme #bookModalBody h3,body.light-theme #bookModalBody h4{color:#111}body.light-theme #bookModalBody .bg-gradient-to-r{background:#eee2c6}body.light-theme .editorial-note{color:#111}body.light-theme #bookModalBody>div:first-child p{color:white!important}

body.light-theme button{color:#fff}body.light-theme button[class*="bg-amber-500"]{color:#111}body.light-theme header p{color:#475569}body.light-theme main .text-amber-400{color:#795000}body.light-theme #booksGrid .bg-slate-900\/75{background:#eee2c6}body.light-theme #booksGrid .relative p,body.light-theme #booksGrid .relative h3{color:#fff!important}body.light-theme #booksGrid .relative .text-amber-300{color:#fde68a}body.light-theme #continentPills button{color:#fff}body.light-theme #continentPills button[class*="bg-amber-500"]{color:#111}body.light-theme #booksCountLabel,body.light-theme #wisdomCountLabel{color:#334155}body.light-theme #bookModalBody>div:first-child h2{color:white}
#bookModalBody>div:first-child .flex.items-center{flex-wrap:wrap}body.light-theme #bookModalBody button{background:#073748;color:#fff!important}body.light-theme #bookModalBody button[class*="bg-amber-500"]{background:#f59e0b;color:#111!important}body.light-theme main .glass-panel>div>span.text-amber-300{color:#795000}#bookModalBody .absolute.bottom-4>div{min-width:0;max-width:100%}
body.light-theme #bookModalBody button{background:#073748!important}body.light-theme #bookModalBody button[class*="bg-amber-500"]{background:#f59e0b!important}body.light-theme #booksGrid strong,body.light-theme #booksGrid .text-slate-400{color:#53421a!important}

/* R264: one literature module and shared reading controls. */
.atlas-kind-filter,.atlas-related,.atlas-general{padding:22px;border:1px solid #b6c8c5;border-radius:14px;background:#F5EEDD;color:#111;font:17px/1.8 system-ui}.atlas-kind-filter label{display:block;font-weight:700}.atlas-kind-filter select{font:inherit;max-width:100%;width:100%;margin-top:10px;padding:12px;background:#fffaf0;color:#111;border:1px solid #719294;border-radius:8px}.atlas-related a{display:inline-block;margin:8px 22px 8px 0;color:#00676d;text-decoration:underline}.atlas-general h2,.atlas-related h2{font:700 25px/1.4 Georgia,serif;margin-bottom:12px}.atlas-reader-controls{display:flex;flex-wrap:wrap;gap:10px;padding:16px 24px;background:#F5EEDD;color:#111}.atlas-reader-controls button{background:#092e38;color:white;font:600 16px/1.6 system-ui;border-radius:8px;padding:8px 14px}.reader-prose p{font-size:var(--reader-size,18px)!important;line-height:1.9!important;white-space:pre-line;margin-bottom:1.2em}#bookModalBody .p-6 p{font-size:var(--reader-size,18px);line-height:1.8}#readerManualCopy{width:100%;background:white;color:#111;font:16px/1.7 system-ui;padding:16px}#bookDetailModal{overflow:auto;padding:12px}#bookModalBody{max-height:94dvh;overflow:auto}#bookModalBody>.max-h-\[70vh\]{max-height:none}button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #c7273e;outline-offset:3px}@media(max-width:650px){header.sticky{position:relative}.atlas-kind-filter{padding:16px}#bookModalBody .h-56{height:auto;min-height:300px}#bookModalBody .absolute.bottom-4{position:relative;left:auto;right:auto;bottom:auto;padding:20px}#bookModalBody .h-56>img{position:absolute;height:100%;inset:0}}

.light-theme main>section:first-of-type .inline-flex{color:#61450b}
