832 lines
32 KiB
CSS
832 lines
32 KiB
CSS
/* =========================================================================
|
||
FATİH BAYRAKTAR — ŞİİRİN SESSİZ DÜNYASI
|
||
Neumorphism ("soft UI") tasarım sistemi
|
||
Buz mavisi + inci beyazı | çift yönlü ışık ve gölge | 3B kitap
|
||
========================================================================= */
|
||
|
||
:root {
|
||
/* --- Tema renkleri (JS tema değiştirince bu değişkenler değişir) --- */
|
||
--bg: #e6eef6;
|
||
--bg-2: #eef3f9;
|
||
--ink: #26384a;
|
||
--ink-soft: #52687d;
|
||
--ink-mute: #8598a9;
|
||
|
||
--hi: rgba(255, 255, 255, 0.95); /* açık taraf (ışık) */
|
||
--lo: rgba(163, 187, 208, 0.62); /* koyu taraf (gölge) */
|
||
|
||
--accent: #5c8fb5;
|
||
--accent-2: #8db4d2;
|
||
--paper: #f6f4ee;
|
||
--paper-ink: #33302a;
|
||
--paper-line: rgba(70, 60, 45, 0.14);
|
||
|
||
--r-lg: 34px;
|
||
--r-md: 22px;
|
||
--r-sm: 14px;
|
||
|
||
--sh-raise:
|
||
-8px -8px 18px var(--hi),
|
||
9px 9px 22px var(--lo);
|
||
--sh-raise-sm:
|
||
-4px -4px 10px var(--hi),
|
||
5px 5px 12px var(--lo);
|
||
--sh-inset:
|
||
inset -6px -6px 12px var(--hi),
|
||
inset 6px 6px 14px var(--lo);
|
||
--sh-inset-sm:
|
||
inset -3px -3px 7px var(--hi),
|
||
inset 3px 3px 9px var(--lo);
|
||
--sh-float:
|
||
-14px -14px 34px var(--hi),
|
||
18px 18px 42px var(--lo);
|
||
|
||
--ease: cubic-bezier(.22, .85, .28, 1);
|
||
--ease-book: cubic-bezier(.55, .02, .28, 1);
|
||
|
||
--font-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
|
||
--font-sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
|
||
|
||
--reader-scale: 1;
|
||
}
|
||
|
||
/* ---------------------------------- GECE MODU ---------------------------------- */
|
||
body.night {
|
||
--bg: #1b2530;
|
||
--bg-2: #212c38;
|
||
--ink: #dbe7f2;
|
||
--ink-soft: #a6bdd1;
|
||
--ink-mute: #7a90a5;
|
||
|
||
--hi: rgba(58, 76, 94, 0.85);
|
||
--lo: rgba(8, 13, 19, 0.85);
|
||
|
||
--accent: #7fb0d6;
|
||
--accent-2: #4d7fa8;
|
||
--paper: #2c3846;
|
||
--paper-ink: #e6eef7;
|
||
--paper-line: rgba(190, 215, 235, 0.16);
|
||
}
|
||
|
||
/* ------------------------------------ TEMEL ------------------------------------ */
|
||
* { box-sizing: border-box; }
|
||
|
||
/* `hidden` özniteliği her zaman kazansın: display:grid/flex onu ezmesin */
|
||
[hidden] { display: none !important; }
|
||
|
||
html { scroll-behavior: smooth; }
|
||
|
||
body {
|
||
margin: 0;
|
||
min-height: 100vh;
|
||
background: var(--bg);
|
||
color: var(--ink);
|
||
font-family: var(--font-sans);
|
||
font-size: 16px;
|
||
line-height: 1.65;
|
||
-webkit-font-smoothing: antialiased;
|
||
overflow-x: hidden;
|
||
transition: background .6s var(--ease), color .4s var(--ease);
|
||
background-image:
|
||
radial-gradient(circle at 18% 12%, rgba(255,255,255,.55), transparent 42%),
|
||
radial-gradient(circle at 82% 78%, rgba(140,175,205,.28), transparent 46%);
|
||
background-attachment: fixed;
|
||
}
|
||
body.night {
|
||
background-image:
|
||
radial-gradient(circle at 18% 12%, rgba(90,130,170,.20), transparent 42%),
|
||
radial-gradient(circle at 82% 78%, rgba(20,30,42,.75), transparent 50%);
|
||
}
|
||
|
||
::selection { background: rgba(140, 180, 215, .45); }
|
||
|
||
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; letter-spacing: .01em; margin: 0; }
|
||
|
||
button { font-family: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
|
||
|
||
.sr-only {
|
||
position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
|
||
overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
|
||
}
|
||
|
||
/* ----------------------------------- SAHNE ------------------------------------- */
|
||
.sahne { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
|
||
|
||
.sahne .sek { position: absolute; opacity: .55; will-change: transform; }
|
||
.sahne .sek.s1 {
|
||
width: 260px; height: 260px; border-radius: 42% 58% 63% 37% / 47% 42% 58% 53%;
|
||
left: 6%; top: 16%;
|
||
background: linear-gradient(145deg, var(--bg-2), var(--bg));
|
||
box-shadow: var(--sh-float);
|
||
}
|
||
.sahne .sek.s2 {
|
||
width: 130px; height: 130px; border-radius: 26px; right: 12%; top: 22%;
|
||
transform: rotate(18deg);
|
||
background: linear-gradient(145deg, var(--bg-2), var(--bg));
|
||
box-shadow: var(--sh-raise);
|
||
}
|
||
.sahne .sek.s3 {
|
||
width: 200px; height: 200px; right: 8%; bottom: 12%;
|
||
border-radius: 50%;
|
||
background: linear-gradient(145deg, var(--bg-2), var(--bg));
|
||
box-shadow: var(--sh-float);
|
||
opacity: .45;
|
||
}
|
||
.sahne .sek.s4 {
|
||
width: 90px; height: 90px; left: 22%; bottom: 18%; border-radius: 24px;
|
||
background: linear-gradient(145deg, var(--bg-2), var(--bg));
|
||
box-shadow: var(--sh-raise-sm);
|
||
opacity: .5;
|
||
}
|
||
.sahne .sek.s5 {
|
||
width: 56px; height: 56px; left: 46%; top: 8%; border-radius: 50%;
|
||
background: linear-gradient(145deg, var(--bg-2), var(--bg));
|
||
box-shadow: var(--sh-raise-sm);
|
||
opacity: .38;
|
||
}
|
||
.sahne .sek.s6 {
|
||
width: 170px; height: 170px; left: 4%; top: 62%; border-radius: 58% 42% 37% 63% / 53% 58% 42% 47%;
|
||
background: linear-gradient(145deg, var(--bg-2), var(--bg));
|
||
box-shadow: var(--sh-float);
|
||
opacity: .38;
|
||
}
|
||
|
||
/* ------------------------------------ ÜST BAR ---------------------------------- */
|
||
.ustbar {
|
||
position: fixed; top: 0; left: 0; right: 0; z-index: 60;
|
||
display: flex; align-items: center; gap: 14px;
|
||
padding: 16px clamp(16px, 4vw, 46px);
|
||
background: color-mix(in srgb, var(--bg) 78%, transparent);
|
||
backdrop-filter: blur(14px);
|
||
-webkit-backdrop-filter: blur(14px);
|
||
border-bottom: 1px solid transparent;
|
||
transition: box-shadow .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
|
||
}
|
||
.ustbar.sabitlendi { box-shadow: 0 10px 30px -18px rgba(40,70,100,.55); border-bottom-color: rgba(255,255,255,.35); }
|
||
|
||
.marka { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; color: inherit; }
|
||
.marka .muhur {
|
||
width: 44px; height: 44px; border-radius: 14px;
|
||
display: grid; place-items: center;
|
||
background: var(--bg);
|
||
box-shadow: var(--sh-raise-sm);
|
||
font-family: var(--font-serif); font-size: 20px; color: var(--accent);
|
||
}
|
||
.marka b { font-family: var(--font-serif); font-size: 19px; letter-spacing: .02em; }
|
||
.marka small { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute); font-family: var(--font-sans); }
|
||
|
||
.ustnav { display: flex; gap: 8px; }
|
||
.ustnav a {
|
||
text-decoration: none; color: var(--ink-soft); font-size: 14px; font-weight: 600;
|
||
padding: 9px 16px; border-radius: 999px; transition: all .3s var(--ease);
|
||
}
|
||
.ustnav a:hover { color: var(--ink); box-shadow: var(--sh-raise-sm); background: var(--bg); }
|
||
|
||
.ustarac { display: flex; gap: 10px; align-items: center; }
|
||
|
||
/* Kabartmalı yuvarlak ikon butonu */
|
||
.ikon-btn {
|
||
width: 44px; height: 44px; border-radius: 50%;
|
||
display: grid; place-items: center;
|
||
background: var(--bg); box-shadow: var(--sh-raise-sm);
|
||
color: var(--ink-soft);
|
||
transition: box-shadow .25s var(--ease), transform .25s var(--ease), color .25s;
|
||
position: relative;
|
||
}
|
||
.ikon-btn:hover { color: var(--accent); transform: translateY(-1px); }
|
||
.ikon-btn:active { box-shadow: var(--sh-inset-sm); transform: translateY(0) scale(.97); }
|
||
.ikon-btn svg { width: 20px; height: 20px; }
|
||
.ikon-btn .rozet {
|
||
position: absolute; top: -2px; right: -2px;
|
||
min-width: 19px; height: 19px; border-radius: 999px; padding: 0 5px;
|
||
background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
|
||
display: grid; place-items: center; box-shadow: 0 3px 8px rgba(60,100,140,.4);
|
||
}
|
||
|
||
/* ------------------------------- ANA BÖLÜM / KİTAP ------------------------------ */
|
||
.kapak-bolum {
|
||
position: relative; z-index: 1;
|
||
min-height: 100vh;
|
||
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
||
gap: 26px;
|
||
padding: 120px 20px 70px;
|
||
perspective: 2200px;
|
||
}
|
||
|
||
.kitap-sahne {
|
||
position: relative;
|
||
width: min(440px, 84vw);
|
||
height: min(620px, 90vw);
|
||
perspective: 2000px;
|
||
transform-style: preserve-3d;
|
||
}
|
||
|
||
/* paralaks için JS transform verir */
|
||
.kitap-egim {
|
||
width: 100%; height: 100%;
|
||
transform-style: preserve-3d;
|
||
transition: transform .35s var(--ease);
|
||
will-change: transform;
|
||
}
|
||
|
||
/* ---- 3B kitap gövdesi: kapağı + sırtı + sayfa kalınlığı ---- */
|
||
.kitap3d {
|
||
position: absolute; inset: 0;
|
||
transform-style: preserve-3d;
|
||
cursor: pointer;
|
||
transform: translateZ(0);
|
||
transition: opacity .7s var(--ease);
|
||
}
|
||
.kitap3d:focus-visible { outline: 3px solid var(--accent); outline-offset: 14px; border-radius: 8px; }
|
||
|
||
/* Kitap açıldıktan sonra kapalı hâli kaybolur */
|
||
.kitap-sahne.acik .kitap3d { opacity: 0; pointer-events: none; }
|
||
|
||
.kapak-yuz, .sirt-yuz, .sayfa-yuz {
|
||
position: absolute;
|
||
backface-visibility: hidden;
|
||
}
|
||
|
||
.kapak-yuz {
|
||
inset: 0;
|
||
border-radius: 6px 18px 18px 6px;
|
||
background:
|
||
linear-gradient(135deg, rgba(255,255,255,.42), rgba(255,255,255,0) 45%),
|
||
linear-gradient(160deg, #4b7ea6 0%, #35618a 45%, #2a4e73 100%);
|
||
box-shadow:
|
||
26px 34px 60px -18px rgba(26, 53, 82, .62),
|
||
inset 0 0 0 1px rgba(255,255,255,.18),
|
||
inset -8px 0 22px rgba(0,0,0,.28);
|
||
transform: translateZ(22px);
|
||
overflow: hidden;
|
||
display: flex; flex-direction: column; justify-content: space-between;
|
||
padding: clamp(28px, 6vw, 46px);
|
||
}
|
||
/* Kapağın iç dokusu */
|
||
.kapak-yuz::before {
|
||
content: "";
|
||
position: absolute; inset: 0;
|
||
background-image:
|
||
repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 3px);
|
||
opacity: .9;
|
||
pointer-events: none;
|
||
}
|
||
/* Kenar ince altın çerçeve */
|
||
.kapak-yuz::after {
|
||
content: "";
|
||
position: absolute; inset: 16px;
|
||
border: 1px solid rgba(233, 221, 190, .42);
|
||
border-radius: 3px 12px 12px 3px;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.kapak-ust, .kapak-alt { position: relative; z-index: 2; }
|
||
|
||
.kapak-etiket {
|
||
font-family: var(--font-sans); font-size: 10px; letter-spacing: .34em;
|
||
text-transform: uppercase; color: rgba(233, 240, 248, .62);
|
||
display: block; text-align: center;
|
||
}
|
||
.kapak-yuz h1 {
|
||
font-size: clamp(30px, 7.6vw, 46px);
|
||
line-height: 1.04;
|
||
letter-spacing: .06em;
|
||
text-transform: uppercase;
|
||
color: #f3f7fb;
|
||
text-shadow: 0 2px 18px rgba(10, 28, 48, .55);
|
||
text-align: center;
|
||
margin: 0;
|
||
}
|
||
.kapak-yuz .altbaslik {
|
||
display: block; margin: 12px auto 0;
|
||
font-family: var(--font-serif); font-style: italic;
|
||
font-size: clamp(15px, 3.6vw, 20px);
|
||
color: rgba(236, 243, 250, .86);
|
||
text-align: center;
|
||
position: relative;
|
||
}
|
||
.kapak-yuz .altbaslik::before {
|
||
content: ""; display: block; width: 46px; height: 1px; margin: 0 auto 12px;
|
||
background: rgba(233,221,190,.6);
|
||
}
|
||
.kapak-alt { text-align: center; }
|
||
.kapak-yuz .slogan {
|
||
font-family: var(--font-serif); font-style: italic;
|
||
font-size: clamp(14px, 3.1vw, 17px);
|
||
line-height: 1.55; color: rgba(238, 245, 252, .93);
|
||
max-width: 30ch; margin: 0 auto;
|
||
}
|
||
.kapak-yuz .slogan-not {
|
||
display: block; margin-top: 10px;
|
||
font-family: var(--font-sans); font-style: normal; font-size: 10px;
|
||
letter-spacing: .1em; text-transform: uppercase; color: rgba(226, 236, 246, .5);
|
||
}
|
||
.kapak-yuz .ac-ipucu {
|
||
margin-top: 22px; display: inline-flex; align-items: center; gap: 8px;
|
||
font-family: var(--font-sans); font-size: 11px; letter-spacing: .2em;
|
||
text-transform: uppercase; color: rgba(233, 240, 248, .82);
|
||
padding: 9px 18px; border-radius: 999px;
|
||
border: 1px solid rgba(233, 221, 190, .35);
|
||
background: rgba(255,255,255,.06);
|
||
animation: ipucuNefes 3.4s ease-in-out infinite;
|
||
}
|
||
@keyframes ipucuNefes {
|
||
0%, 100% { box-shadow: 0 0 0 0 rgba(233,221,190,.22); }
|
||
50% { box-shadow: 0 0 0 9px rgba(233,221,190,0); }
|
||
}
|
||
|
||
/* Sırt (spine) — kapağın solunda, kütüphanede dururmuş gibi */
|
||
.sirt-yuz {
|
||
left: 0; top: 0; width: 44px; height: 100%;
|
||
transform: rotateY(-90deg) translateZ(0);
|
||
transform-origin: left center;
|
||
margin-left: 22px;
|
||
background: linear-gradient(90deg, #24425f, #2f5877 55%, #24425f);
|
||
box-shadow: inset 0 0 24px rgba(0,0,0,.5);
|
||
border-radius: 4px;
|
||
}
|
||
/* Sayfa bloğu (kitabın sağ kenarındaki kalınlık) */
|
||
.sayfa-yuz {
|
||
right: 0; top: 8px; bottom: 8px; width: 34px;
|
||
transform: rotateY(90deg) translateZ(0);
|
||
transform-origin: right center;
|
||
margin-right: 17px;
|
||
background:
|
||
repeating-linear-gradient(90deg, #f3f0e7 0 2px, #ded8c9 2px 3px);
|
||
box-shadow: inset 0 0 14px rgba(120,110,90,.35);
|
||
border-radius: 0 4px 4px 0;
|
||
}
|
||
|
||
/* Kitap önündeki yumuşak zemin gölgesi */
|
||
.kitap-golge {
|
||
position: absolute; left: 8%; right: 0; bottom: -34px; height: 60px;
|
||
background: radial-gradient(ellipse at center, rgba(70,110,145,.42), transparent 68%);
|
||
filter: blur(16px);
|
||
transform: translateZ(-30px);
|
||
transition: opacity .6s var(--ease);
|
||
}
|
||
.kitap-sahne.acik .kitap-golge { opacity: .25; }
|
||
|
||
/* ------------------------------ AÇILAN KİTAP / OKUYUCU ------------------------- */
|
||
/* Okuyucu açıkken sayfa kaymasın (modal tam ekran) */
|
||
body.okuyor { overflow: hidden; height: 100vh; position: fixed; inset: 0; width: 100%; }
|
||
|
||
.okuyucu {
|
||
position: fixed; inset: 0; z-index: 80;
|
||
height: 100vh; height: 100dvh; /* tam ekran: altındaki site sızmasın */
|
||
overflow: hidden;
|
||
display: grid; grid-template-rows: auto 1fr auto;
|
||
gap: 0;
|
||
background-color: var(--bg);
|
||
background-image:
|
||
radial-gradient(circle at 20% 10%, rgba(255,255,255,.55), transparent 45%),
|
||
radial-gradient(circle at 85% 85%, rgba(140,175,205,.25), transparent 50%);
|
||
opacity: 0; pointer-events: none;
|
||
visibility: hidden;
|
||
transition: opacity .45s var(--ease), visibility 0s linear .45s;
|
||
padding: 0 clamp(10px, 3vw, 40px) 18px;
|
||
}
|
||
body.night .okuyucu {
|
||
background-image:
|
||
radial-gradient(circle at 20% 10%, rgba(90,130,170,.18), transparent 45%),
|
||
radial-gradient(circle at 85% 85%, rgba(15,25,35,.6), transparent 50%);
|
||
}
|
||
.okuyucu.acik { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }
|
||
|
||
.okuyucu-ust {
|
||
display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
|
||
padding: 14px 4px 10px;
|
||
}
|
||
.okuyucu-ust .baslik-alani { margin-right: auto; min-width: 0; }
|
||
.okuyucu-ust .baslik-alani b {
|
||
font-family: var(--font-serif); font-size: 18px; letter-spacing: .04em; display: block;
|
||
}
|
||
.okuyucu-ust .baslik-alani span { font-size: 12px; color: var(--ink-mute); }
|
||
|
||
/* Kitap sahnesi: iki sayfa + çevrilen yaprak */
|
||
.kitap-alani {
|
||
position: relative;
|
||
display: grid; place-items: center;
|
||
perspective: 2400px;
|
||
min-height: 0;
|
||
}
|
||
|
||
.defter {
|
||
position: relative;
|
||
display: flex;
|
||
width: min(980px, 96vw);
|
||
height: min(660px, calc(100vh - 190px));
|
||
transform-style: preserve-3d;
|
||
transition: transform .5s var(--ease);
|
||
}
|
||
|
||
.sayfa {
|
||
position: relative;
|
||
flex: 1 1 50%;
|
||
background: var(--paper);
|
||
color: var(--paper-ink);
|
||
overflow-y: auto;
|
||
overflow-x: hidden;
|
||
scrollbar-width: thin;
|
||
scrollbar-color: rgba(120,110,90,.3) transparent;
|
||
padding: clamp(28px, 4.2vw, 58px);
|
||
transition: background .5s var(--ease), color .5s var(--ease);
|
||
-webkit-overflow-scrolling: touch;
|
||
}
|
||
.sayfa-sol { border-radius: 18px 4px 4px 18px; box-shadow: -18px 22px 54px -22px rgba(30,60,88,.55), inset -14px 0 26px -18px rgba(90,80,60,.35); }
|
||
.sayfa-sag { border-radius: 4px 18px 18px 4px; box-shadow: 18px 22px 54px -22px rgba(30,60,88,.55), inset 14px 0 26px -18px rgba(90,80,60,.35); }
|
||
|
||
/* Sağ sayfanın sol üstünde künye kutusu (JS ekler) */
|
||
.sag-kunye {
|
||
margin: 46px 0 0; padding: 20px 22px; border-radius: var(--r-sm);
|
||
background: rgba(120, 105, 80, .055);
|
||
border: 1px solid var(--paper-line);
|
||
border-left: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
|
||
font-family: var(--font-sans); font-size: 13px; line-height: 1.75;
|
||
color: color-mix(in srgb, var(--paper-ink) 72%, transparent);
|
||
}
|
||
.sag-kunye b { display: block; font-family: var(--font-serif); font-size: 16px; margin-bottom: 6px; color: var(--paper-ink); }
|
||
/* Kitabın orta kıvrımı */
|
||
.defter::after {
|
||
content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 58px;
|
||
transform: translateX(-50%);
|
||
background: linear-gradient(90deg, rgba(120,105,80,0) 0%, rgba(120,105,80,.18) 42%, rgba(120,105,80,.34) 50%, rgba(120,105,80,.18) 58%, rgba(120,105,80,0) 100%);
|
||
pointer-events: none; z-index: 5;
|
||
}
|
||
|
||
.sayfa-meta {
|
||
display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
|
||
font-family: var(--font-sans); font-size: 11px; letter-spacing: .16em;
|
||
text-transform: uppercase; color: color-mix(in srgb, var(--paper-ink) 52%, transparent);
|
||
}
|
||
.sayfa-meta .etiket {
|
||
padding: 4px 10px; border-radius: 999px;
|
||
border: 1px solid var(--paper-line);
|
||
}
|
||
.sayfa-meta .etiket.demo { border-color: rgba(200,140,60,.5); color: #b57a2e; }
|
||
|
||
.sayfa h2 {
|
||
font-size: calc(clamp(26px, 3.4vw, 40px) * var(--reader-scale));
|
||
line-height: 1.12;
|
||
margin: 18px 0 6px;
|
||
color: var(--paper-ink);
|
||
}
|
||
.sayfa .ince {
|
||
width: 64px; height: 1px; background: var(--paper-line); margin: 14px 0 22px;
|
||
}
|
||
.siir-metni {
|
||
font-family: var(--font-serif);
|
||
font-size: calc(clamp(17px, 2vw, 21px) * var(--reader-scale));
|
||
line-height: 1.95;
|
||
white-space: pre-wrap;
|
||
color: var(--paper-ink);
|
||
margin: 0;
|
||
letter-spacing: .005em;
|
||
}
|
||
/* Kıta başlarına hafif girinti */
|
||
.siir-metni .kita { display: block; margin-bottom: 1.15em; }
|
||
|
||
.siir-altbilgi {
|
||
margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--paper-line);
|
||
font-size: 12.5px; color: color-mix(in srgb, var(--paper-ink) 55%, transparent);
|
||
font-family: var(--font-sans);
|
||
}
|
||
|
||
/* Çevrilen yaprak (page-flip) */
|
||
.yaprak {
|
||
position: absolute; top: 0; bottom: 0; left: 50%; width: 50%;
|
||
transform-origin: left center;
|
||
transform-style: preserve-3d;
|
||
pointer-events: none; z-index: 8;
|
||
opacity: 0;
|
||
display: none;
|
||
}
|
||
.yaprak.ileri, .yaprak.geri { display: block; }
|
||
.yaprak.ileri { animation: yaprakIleri .78s var(--ease-book) forwards; }
|
||
.yaprak.geri { animation: yaprakGeri .78s var(--ease-book) forwards; left: 0; transform-origin: right center; }
|
||
|
||
.yaprak .on, .yaprak .arka {
|
||
position: absolute; inset: 0; backface-visibility: hidden;
|
||
background: var(--paper);
|
||
padding: clamp(28px, 4.2vw, 58px);
|
||
overflow: hidden;
|
||
}
|
||
.yaprak .on {
|
||
border-radius: 4px 18px 18px 4px;
|
||
box-shadow: inset 12px 0 24px -18px rgba(90,80,60,.5), 0 22px 44px -22px rgba(30,60,88,.5);
|
||
background-image: linear-gradient(90deg, rgba(120,105,80,.14), rgba(120,105,80,0) 26%);
|
||
}
|
||
.yaprak .arka {
|
||
transform: rotateY(180deg);
|
||
border-radius: 18px 4px 4px 18px;
|
||
box-shadow: inset -12px 0 24px -18px rgba(90,80,60,.5), 0 22px 44px -22px rgba(30,60,88,.5);
|
||
background-image: linear-gradient(270deg, rgba(120,105,80,.14), rgba(120,105,80,0) 26%);
|
||
}
|
||
.yaprak .on h2, .yaprak .arka h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 12px 0 8px; }
|
||
.yaprak p { font-family: var(--font-serif); font-size: clamp(14px, 1.5vw, 16px); line-height: 1.9; color: color-mix(in srgb, var(--paper-ink) 78%, transparent); }
|
||
/* Yaprağın üzerinden geçen ışık gölgesi */
|
||
.yaprak .on::after {
|
||
content: ""; position: absolute; inset: 0; pointer-events: none;
|
||
background: linear-gradient(90deg, rgba(60,50,35,.22), transparent 34%);
|
||
animation: yaprakGolge .78s var(--ease-book) forwards;
|
||
}
|
||
|
||
@keyframes yaprakIleri {
|
||
0% { transform: rotateY(0deg); opacity: 1; }
|
||
100% { transform: rotateY(-178deg); opacity: 1; }
|
||
}
|
||
@keyframes yaprakGeri {
|
||
0% { transform: rotateY(0deg); opacity: 1; }
|
||
100% { transform: rotateY(178deg); opacity: 1; }
|
||
}
|
||
@keyframes yaprakGolge {
|
||
0% { opacity: .85; }
|
||
60% { opacity: .3; }
|
||
100% { opacity: 0; }
|
||
}
|
||
|
||
/* Okuyucu alt bar */
|
||
.okuyucu-alt {
|
||
display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
|
||
padding: 12px 4px 0;
|
||
}
|
||
.buton {
|
||
display: inline-flex; align-items: center; gap: 9px;
|
||
padding: 12px 22px; border-radius: 999px;
|
||
background: var(--bg); box-shadow: var(--sh-raise-sm);
|
||
color: var(--ink-soft); font-size: 14px; font-weight: 600;
|
||
transition: all .25s var(--ease);
|
||
user-select: none;
|
||
}
|
||
.buton:hover { color: var(--accent); transform: translateY(-1px); box-shadow: var(--sh-raise); }
|
||
.buton:active, .buton.basili { box-shadow: var(--sh-inset-sm); transform: translateY(0) scale(.98); }
|
||
.buton svg { width: 18px; height: 18px; }
|
||
.buton.kucuk { padding: 10px 15px; font-size: 13px; }
|
||
.buton.kucuk svg { width: 16px; height: 16px; }
|
||
.buton[disabled] { opacity: .38; pointer-events: none; }
|
||
|
||
.sayfa-gostergesi {
|
||
margin-left: auto; font-size: 13px; letter-spacing: .12em; color: var(--ink-mute);
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
|
||
.yazi-ayar { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg); box-shadow: var(--sh-inset-sm); }
|
||
.yazi-ayar button { width: 34px; height: 34px; border-radius: 50%; font-size: 15px; font-weight: 700; color: var(--ink-soft); transition: all .2s; }
|
||
.yazi-ayar button:hover { box-shadow: var(--sh-raise-sm); color: var(--accent); }
|
||
|
||
/* ---------------------------------- BÖLÜMLER ---------------------------------- */
|
||
section.blok { position: relative; z-index: 1; padding: clamp(64px, 9vw, 120px) clamp(18px, 5vw, 60px); max-width: 1240px; margin: 0 auto; }
|
||
|
||
.blok-baslik { text-align: center; margin-bottom: 46px; }
|
||
.blok-baslik .ust-yazi {
|
||
font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--ink-mute);
|
||
display: block; margin-bottom: 12px;
|
||
}
|
||
.blok-baslik h2 { font-size: clamp(30px, 5vw, 50px); line-height: 1.1; }
|
||
.blok-baslik p { color: var(--ink-soft); max-width: 56ch; margin: 14px auto 0; font-size: 15.5px; }
|
||
|
||
/* --- Arama + kategori filtreleri --- */
|
||
.arama-kutu {
|
||
display: flex; align-items: center; gap: 12px;
|
||
max-width: 520px; margin: 0 auto 28px;
|
||
padding: 8px 10px 8px 22px; border-radius: 999px;
|
||
background: var(--bg); box-shadow: var(--sh-inset);
|
||
}
|
||
.arama-kutu svg { width: 19px; height: 19px; color: var(--ink-mute); flex: none; }
|
||
.arama-kutu input {
|
||
flex: 1; border: 0; background: none; outline: none; font-family: inherit;
|
||
box-shadow: none; -webkit-appearance: none; appearance: none;
|
||
font-size: 15px; color: var(--ink); min-width: 0;
|
||
}
|
||
.arama-kutu input::placeholder { color: var(--ink-mute); }
|
||
|
||
.filtreler { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
|
||
.cip {
|
||
padding: 10px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
|
||
background: var(--bg); color: var(--ink-soft); box-shadow: var(--sh-raise-sm);
|
||
transition: all .25s var(--ease);
|
||
}
|
||
.cip:hover { transform: translateY(-1px); box-shadow: var(--sh-raise); color: var(--accent); }
|
||
.cip.secili { box-shadow: var(--sh-inset-sm); color: var(--accent); }
|
||
|
||
/* --- Şiir kartları --- */
|
||
.kart-izgara {
|
||
display: grid; gap: clamp(16px, 2.4vw, 26px);
|
||
grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
|
||
}
|
||
.siir-kart {
|
||
position: relative; text-align: left;
|
||
padding: 28px 26px 24px; border-radius: var(--r-md);
|
||
background: linear-gradient(145deg, var(--bg-2), var(--bg));
|
||
box-shadow: var(--sh-raise);
|
||
transition: transform .45s var(--ease), box-shadow .45s var(--ease);
|
||
display: flex; flex-direction: column; gap: 10px; min-height: 210px;
|
||
cursor: pointer;
|
||
overflow: hidden;
|
||
}
|
||
.siir-kart::before {
|
||
content: ""; position: absolute; inset: 0; border-radius: inherit;
|
||
background: radial-gradient(circle at 82% 10%, rgba(255,255,255,.75), transparent 52%);
|
||
opacity: 0; transition: opacity .45s var(--ease); pointer-events: none;
|
||
}
|
||
body.night .siir-kart::before { background: radial-gradient(circle at 82% 10%, rgba(120,170,215,.22), transparent 52%); }
|
||
.siir-kart:hover { transform: translateY(-8px); box-shadow: var(--sh-float); }
|
||
.siir-kart:hover::before { opacity: 1; }
|
||
.siir-kart:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
|
||
|
||
.siir-kart .kategori-etiket {
|
||
font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent);
|
||
font-weight: 700;
|
||
}
|
||
.siir-kart h3 { font-size: 23px; line-height: 1.18; }
|
||
.siir-kart .onizleme { font-family: var(--font-serif); font-style: italic; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); flex: 1; }
|
||
.siir-kart .alt-satir { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--ink-mute); letter-spacing: .08em; }
|
||
.siir-kart .demo-rozet { padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(200,140,60,.5); color: #b57a2e; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
|
||
|
||
.bos-durum { text-align: center; padding: 60px 20px; color: var(--ink-mute); font-style: italic; font-family: var(--font-serif); font-size: 19px; }
|
||
|
||
/* ------------------------------- HAKKINDA BÖLÜMÜ ------------------------------- */
|
||
.hakkinda-izgara {
|
||
display: grid; gap: clamp(26px, 4vw, 54px); align-items: center;
|
||
grid-template-columns: minmax(0, 340px) 1fr;
|
||
}
|
||
.foto-cerceve {
|
||
padding: 14px; border-radius: var(--r-lg);
|
||
background: linear-gradient(145deg, var(--bg-2), var(--bg));
|
||
box-shadow: var(--sh-float);
|
||
transform: rotate(-1.6deg);
|
||
transition: transform .6s var(--ease);
|
||
}
|
||
.foto-cerceve:hover { transform: rotate(0deg) scale(1.01); }
|
||
.foto-cerceve .foto-ic { border-radius: 26px; overflow: hidden; box-shadow: var(--sh-inset-sm); background: var(--bg); }
|
||
.foto-cerceve img { width: 100%; display: block; aspect-ratio: 4 / 5; object-fit: cover; }
|
||
|
||
/* Fotoğraf henüz yokken gösterilen zarif yer tutucu */
|
||
.foto-tutucu {
|
||
aspect-ratio: 4 / 5; width: 100%;
|
||
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
|
||
border-radius: 26px;
|
||
background:
|
||
radial-gradient(circle at 50% 34%, rgba(255,255,255,.6), transparent 60%),
|
||
linear-gradient(160deg, var(--bg-2), var(--bg));
|
||
box-shadow: var(--sh-inset);
|
||
color: var(--ink-mute); text-align: center;
|
||
}
|
||
body.night .foto-tutucu { background: radial-gradient(circle at 50% 34%, rgba(90,130,170,.18), transparent 60%), linear-gradient(160deg, var(--bg-2), var(--bg)); }
|
||
.foto-tutucu .ft-muhur {
|
||
width: 86px; height: 86px; border-radius: 50%;
|
||
display: grid; place-items: center;
|
||
font-family: var(--font-serif); font-size: 32px; color: var(--accent);
|
||
background: var(--bg); box-shadow: var(--sh-raise);
|
||
}
|
||
.foto-tutucu .ft-yazi { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; line-height: 2; }
|
||
.foto-tutucu .ft-yazi b { color: var(--ink-soft); font-weight: 700; letter-spacing: .12em; }
|
||
.foto-cerceve .foto-not { margin: 12px 4px 0; font-size: 11px; color: var(--ink-mute); text-align: center; letter-spacing: .06em; }
|
||
|
||
.hakkinda-metin h2 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.12; }
|
||
.hakkinda-metin .giris { font-family: var(--font-serif); font-style: italic; font-size: 19px; color: var(--ink-soft); margin: 14px 0 26px; line-height: 1.6; }
|
||
|
||
.bilgi-listesi { display: grid; gap: 14px; margin: 0 0 26px; }
|
||
.bilgi-satir {
|
||
display: grid; grid-template-columns: 150px 1fr; gap: 14px;
|
||
padding: 14px 20px; border-radius: var(--r-sm);
|
||
background: var(--bg); box-shadow: var(--sh-raise-sm);
|
||
font-size: 14.5px;
|
||
}
|
||
.bilgi-satir dt { color: var(--ink-mute); letter-spacing: .06em; font-size: 12px; text-transform: uppercase; padding-top: 2px; }
|
||
.bilgi-satir dd { margin: 0; color: var(--ink); }
|
||
.bilgi-satir dd.bekliyor { color: var(--ink-mute); font-style: italic; }
|
||
|
||
.biyografi-kutu {
|
||
padding: 22px 24px; border-radius: var(--r-md);
|
||
background: var(--bg); box-shadow: var(--sh-inset);
|
||
font-size: 15px; color: var(--ink-soft); line-height: 1.75;
|
||
}
|
||
.biyografi-kutu b { color: var(--ink); }
|
||
|
||
/* ------------------------------- FAVORİLER ÇEKMECESİ --------------------------- */
|
||
.panel-arka {
|
||
position: fixed; inset: 0; z-index: 90;
|
||
background: rgba(25, 45, 65, .35);
|
||
backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
|
||
opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
|
||
}
|
||
.panel-arka.acik { opacity: 1; pointer-events: auto; }
|
||
|
||
.panel {
|
||
position: fixed; top: 0; right: 0; bottom: 0; z-index: 91;
|
||
width: min(420px, 92vw);
|
||
background: var(--bg);
|
||
box-shadow: -30px 0 80px -30px rgba(20,45,70,.6);
|
||
transform: translateX(102%);
|
||
visibility: hidden;
|
||
transition: transform .5s var(--ease), visibility 0s linear .5s;
|
||
display: flex; flex-direction: column;
|
||
padding: 20px;
|
||
}
|
||
/* Kapalıyken panel görünmez olsun: ekran dışına taşan öğe ölçüme/okuyucuya sızmasın */
|
||
.panel:not(.acik) { pointer-events: none; }
|
||
.panel.acik { transform: translateX(0); visibility: visible; transition: transform .5s var(--ease), visibility 0s; }
|
||
.panel-ust { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
|
||
.panel-ust h3 { font-size: 22px; margin-right: auto; }
|
||
.panel-liste { overflow-y: auto; display: grid; gap: 12px; padding-right: 4px; }
|
||
.favori-satir {
|
||
display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
|
||
padding: 14px 16px; border-radius: var(--r-sm);
|
||
background: var(--bg); box-shadow: var(--sh-raise-sm);
|
||
transition: all .25s var(--ease);
|
||
}
|
||
.favori-satir:hover { box-shadow: var(--sh-raise); transform: translateY(-1px); }
|
||
.favori-satir .fs-metin { flex: 1; min-width: 0; }
|
||
.favori-satir b { display: block; font-family: var(--font-serif); font-size: 17px; font-weight: 600; }
|
||
.favori-satir span { font-size: 11.5px; color: var(--ink-mute); letter-spacing: .1em; text-transform: uppercase; }
|
||
|
||
/* ---------------------------------- BİLDİRİM ---------------------------------- */
|
||
.bildirim {
|
||
position: fixed; left: 50%; bottom: 28px; z-index: 120;
|
||
transform: translate(-50%, 120%);
|
||
padding: 13px 26px; border-radius: 999px;
|
||
background: var(--bg); box-shadow: var(--sh-raise);
|
||
color: var(--ink); font-size: 14px; font-weight: 600;
|
||
transition: transform .45s var(--ease);
|
||
pointer-events: none; max-width: 90vw; text-align: center;
|
||
}
|
||
.bildirim.goster { transform: translate(-50%, 0); }
|
||
|
||
/* ---------------------------------- ALT BİLGİ ---------------------------------- */
|
||
.altbilgi {
|
||
position: relative; z-index: 1;
|
||
text-align: center; padding: 50px 20px 60px;
|
||
color: var(--ink-mute); font-size: 12.5px; letter-spacing: .06em;
|
||
border-top: 1px solid rgba(255,255,255,.25);
|
||
margin-top: 20px;
|
||
}
|
||
.altbilgi b { color: var(--ink-soft); font-family: var(--font-serif); font-size: 15px; letter-spacing: .04em; }
|
||
|
||
/* ------------------------------- GÖRÜNÜR OLMA ANİMASYONU ----------------------- */
|
||
.ortaya { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
|
||
.ortaya.gorundu { opacity: 1; transform: none; }
|
||
|
||
/* ---------------------------------- MOBİL ------------------------------------- */
|
||
@media (max-width: 900px) {
|
||
.hakkinda-izgara { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
|
||
.ustnav { display: none; }
|
||
.foto-cerceve { transform: none; }
|
||
}
|
||
|
||
@media (max-width: 760px) {
|
||
.kitap-sahne { width: min(320px, 78vw); height: min(450px, 110vw); }
|
||
.kapak-yuz { padding: 24px 20px; }
|
||
.kapak-yuz h1 { font-size: clamp(24px, 7.4vw, 32px); }
|
||
.sirt-yuz { width: 32px; margin-left: 16px; }
|
||
.sayfa-yuz { width: 24px; margin-right: 12px; }
|
||
|
||
/* Mobilde kitap TEK SAYFA okunur — okumak her zaman kolay olsun */
|
||
.defter { width: min(560px, 94vw); height: calc(100vh - 200px); }
|
||
.sayfa-sol { display: none; }
|
||
.sayfa-sag { border-radius: 18px; flex: 1 1 100%; box-shadow: 0 18px 44px -22px rgba(30,60,88,.55); }
|
||
.defter::after { display: none; }
|
||
.yaprak { display: none; }
|
||
.sayfa { padding: 24px 22px 32px; }
|
||
/* Mobil tam ekran okuma: kâğıt ekranı doldursun, alttaki sayfa sızmasın */
|
||
.okuyucu { padding: 0 8px 10px; grid-template-rows: auto 1fr auto; height: 100dvh; }
|
||
.kitap-alani { align-items: stretch; perspective: none; }
|
||
.defter { height: 100%; width: 100%; }
|
||
.sayfa-sag { height: 100%; border-radius: 16px; }
|
||
.okuyucu-ust { padding: 10px 2px 8px; gap: 8px; flex-wrap: nowrap; }
|
||
.okuyucu-ust .baslik-alani { min-width: 0; overflow: hidden; }
|
||
.okuyucu-ust .baslik-alani b { font-size: 14px; line-height: 1.25; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||
.okuyucu-ust .baslik-alani span { font-size: 10.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||
.okuyucu-ust .ikon-btn { width: 38px; height: 38px; flex: none; }
|
||
.okuyucu-alt { gap: 8px; padding: 10px 0 0; }
|
||
.buton { padding: 11px 16px; font-size: 13px; }
|
||
.buton.kucuk { padding: 9px 12px; }
|
||
.buton .yazi { display: none; } /* mobilde sadece ikon */
|
||
.buton.kucuk .yazi { display: inline; }
|
||
.sayfa-gostergesi { margin-left: 0; order: 9; width: 100%; text-align: center; font-size: 12px; }
|
||
.okuyucu-alt { row-gap: 6px; justify-content: center; }
|
||
|
||
.bilgi-satir { grid-template-columns: 1fr; gap: 4px; }
|
||
.kart-izgara { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
|
||
}
|
||
|
||
@media (max-width: 380px) {
|
||
.marka small { display: none; }
|
||
}
|
||
|
||
/* --------------------------- HAREKET AZALTMA TERCİHİ -------------------------- */
|
||
@media (prefers-reduced-motion: reduce) {
|
||
*, *::before, *::after {
|
||
animation-duration: .001ms !important;
|
||
animation-iteration-count: 1 !important;
|
||
transition-duration: .001ms !important;
|
||
scroll-behavior: auto !important;
|
||
}
|
||
.sahne .sek { display: none; }
|
||
.kapak-yuz .ac-ipucu { animation: none; }
|
||
}
|
||
body.az-hareket .sahne .sek { display: none; }
|
||
body.az-hareket .kapak-yuz .ac-ipucu { animation: none; }
|
||
body.az-hareket .kitap-egim { transition: none; }
|
||
body.az-hareket .yaprak.ileri, body.az-hareket .yaprak.geri { animation-duration: .2s; }
|