/* Digital Library v5: a branded section of informaldestek.com, with a light 3D bookshelf. */
:root {
  --canvas: #f7f8fc;
  --surface: #ffffff;
  --ink: #151722;
  --muted: #667085;
  --line: #e5e7eb;
  --soft-blue: #f1ecfb;
  --blue: #6b2cbf;
  --blue-dark: #4b168c;
  --green: #6ba000;
  --orange: #b45309;
  --radius: 18px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

html, body { min-height: 100%; background: var(--canvas); }
body { color: var(--ink); font-family: 'Figtree', system-ui, sans-serif; }
h1, h2, h3 { font-family: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif; }
.sidebar, .top, .mobile-nav { display: none !important; }
.skip { left: 16px; z-index: 1200; }
.header .nav-library-link { color: #fff; }
.header .nav-library-link.active { border-color: rgba(75,22,140,.85); background: linear-gradient(135deg,#6b2cbf,#4b168c); color: #fff; box-shadow: 0 9px 20px rgba(75,22,140,.20); }
.nav-drawer .drawer-library-link { color: #36551b; }
.site-library-header { scroll-margin-top: 36px; }

.workspace { margin: 0; min-height: calc(100vh - 190px); padding: 28px 0 20px; }
.shell { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 clamp(18px, 3.2vw, 42px); }
.workspace-heading { align-items: flex-end; margin: 0 0 20px; }
.workspace-heading .eyebrow { color: var(--blue); }
.workspace-heading h1 { color: var(--ink); font-size: clamp(27px, 3vw, 36px); letter-spacing: -1.25px; font-weight: 750; }
.workspace-heading p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.workspace-badge { color: #38551c; background: #f3f9e4; border-color: #e0edc8; border-radius: 999px; padding: 9px 13px; }
.status-dot { background: #78a800; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
  min-height: 330px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e8e0f3;
  border-radius: 22px;
  background: linear-gradient(115deg, #f4effb 0%, #f7f5fb 54%, #eff6df 100%);
  box-shadow: 0 12px 32px rgba(75, 22, 140, .07);
}
.hero::before { content: ""; position: absolute; width: 280px; height: 280px; right: 8%; top: -170px; border-radius: 50%; background: rgba(255,255,255,.64); }
.hero-copy { position: relative; z-index: 2; max-width: 590px; padding: 42px 10px 42px clamp(24px, 4vw, 54px); }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 15px; color: #4b168c; font-size: 11px; font-weight: 750; letter-spacing: 1.15px; }
.hero-tag .icon { width: 16px; height: 16px; color: #6b2cbf; fill: #6b2cbf; stroke: none; }
.hero h2 { max-width: 570px; color: #25183a; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.08; font-weight: 760; letter-spacing: -2px; }
.hero h2 span { color: var(--blue); }
.hero p { max-width: 475px; margin: 16px 0 21px; color: #5e5868; font-size: 15px; line-height: 1.75; }
.hero .primary { min-height: 46px; padding: 11px 17px; border-radius: 11px; background: linear-gradient(135deg, #6b2cbf, #4b168c); box-shadow: 0 7px 18px rgba(75,22,140,.19); font-size: 13px; }
.hero .primary:hover { background: #4b168c; transform: translateY(-1px); }
.hero-scene { position: relative; z-index: 1; display: flex; min-width: 0; height: 100%; align-items: center; justify-content: center; padding: 10px 18px 0 0; }
.hero-art { position: relative; right: -1%; width: min(112%, 630px); max-width: none; height: auto; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(75,22,140,.12)); animation: library-float 8s ease-in-out infinite; }
.scene-caption { position: absolute; right: clamp(16px, 4vw, 44px); bottom: 25px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid #e6edda; border-radius: 999px; background: rgba(255,255,255,.94); color: #425b28; box-shadow: 0 6px 18px rgba(38,46,26,.08); font-size: 11px; font-weight: 650; }
.scene-caption .icon { width: 15px; height: 15px; color: #6ba000; }

.hero-stats { display: grid; grid-template-columns: 1fr 1fr 1.25fr; margin-top: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 3px 12px rgba(16,24,40,.025); }
.stat-item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 13px 20px; }
.stat-item + .stat-item::before { position: absolute; top: 21px; bottom: 21px; left: 0; width: 1px; background: var(--line); content: ""; }
.stat-icon { display: flex; width: 38px; height: 38px; flex: 0 0 38px; align-items: center; justify-content: center; border-radius: 11px; background: #f1ecfb; color: #6b2cbf; }
.stat-icon.orange { background: #fff4e8; color: #b45309; }
.stat-icon .icon { width: 18px; height: 18px; }
.stat-item strong { display: block; color: var(--ink); font-size: 20px; line-height: 1.25; letter-spacing: -.55px; }
.stat-item div > span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.exam-stat strong { font-size: 13px; letter-spacing: 0; }

.continue-section { padding-top: 30px; }
.library { padding-top: 36px; scroll-margin-top: 112px; }
.section-top { align-items: flex-end; margin-bottom: 18px; }
.section-top h2 { color: var(--ink); font-size: clamp(22px, 2.2vw, 27px); font-weight: 750; letter-spacing: -.8px; }
.section-top p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.result-count { flex: 0 0 auto; padding: 6px 11px; border-radius: 999px; background: #f1ecfb; color: #542495; font-size: 11px; font-weight: 700; }
.toolbar { max-width: 100%; gap: 10px; margin-bottom: 13px; }
.search { min-height: 48px; border-color: #e3e2e9; border-radius: 12px; box-shadow: 0 2px 8px rgba(16,24,40,.025); }
.search:focus-within { border-color: #a886d4; box-shadow: 0 0 0 3px rgba(107,44,191,.11); }
.search > .icon { color: #7652a3; }
.search input { color: var(--ink); font-size: 13px; }
.saved-filter { min-height: 48px; border-radius: 12px; }
.chips { gap: 8px; margin: 0 0 12px; }
.chip { min-height: 40px; padding: 8px 14px; border-color: #e7e4eb; border-radius: 999px; color: #5d5964; font-size: 12px; }
.chip span { background: #f0edf4; color: #6a6471; }
.chip:hover:not(.on) { border-color: #c4b0df; color: #542495; }
.chip.on, .chip[aria-pressed="true"] { border-color: #6b2cbf; background: #6b2cbf; color: white; box-shadow: 0 4px 12px rgba(107,44,191,.16); }
.chip.on span, .chip[aria-pressed="true"] span { background: rgba(255,255,255,.19); color: white; }

.shelf-grid, .shelf-grid.single { --shelf-overhang: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); align-items: stretch; gap: 20px; padding: 8px 0 52px; perspective: 1400px; }
.book-card, .single .book-card { position: relative; display: flex; min-width: 0; max-width: none; flex-direction: column; overflow: visible; isolation: isolate; padding: 13px 13px 11px; border: 1px solid #e8e5ec; border-radius: 17px; background: #fff; box-shadow: 0 4px 15px rgba(39,28,54,.045); animation: book-arrive .45s both; transition: transform .28s var(--ease), border-color .28s, box-shadow .28s; }
.book-card:hover, .book-card:focus-within { transform: translateY(-3px); border-color: #d2c0e8; box-shadow: 0 12px 26px rgba(75,22,140,.10); }
.book-stage { position: relative; display: grid; width: 100%; height: 260px; min-height: 0; place-items: center; padding: 4px 0 16px; overflow: hidden; border-radius: 12px; background: linear-gradient(145deg, #faf9fc 0%, #f2eff7 100%); perspective: 1300px; }
.book-stage::before { position: absolute; right: 12%; bottom: 27px; left: 12%; height: 35px; border-radius: 50%; background: rgba(59,38,83,.10); filter: blur(12px); content: ""; }
.book-stage::after { position: absolute; z-index: 1; right: 6%; bottom: 18px; left: 6%; height: 8px; border: 1px solid #ddd6e7; border-radius: 8px; background: linear-gradient(180deg, #fff 0%, #ece7f2 100%); box-shadow: 0 5px 9px rgba(48,34,62,.08); content: ""; }
.book-open { position: relative; z-index: 2; display: block; width: clamp(132px, 14vw, 176px); max-width: 84%; height: auto; aspect-ratio: .705; padding: 0; overflow: visible; border-radius: 3px 5px 5px 3px; background: #f4f0e5; transform: rotateY(-13deg) rotateZ(-1deg) translateY(-4px); transform-style: preserve-3d; box-shadow: 11px 15px 19px rgba(31,22,39,.21), 1px 2px 4px rgba(255,255,255,.45); transition: transform .42s var(--ease), filter .42s, box-shadow .42s; flex-shrink: 0; }
.book-open::after { position: absolute; z-index: -1; inset: 3px -5px -4px 5px; border-radius: 2px 4px 4px 2px; background: repeating-linear-gradient(180deg,#fffdf7 0 2px,#dedbd3 2px 3px); transform: translateZ(-5px); box-shadow: 4px 6px 9px rgba(31,22,39,.15); content: ""; }
.book-spine { left: -8px; width: 15px; border-radius: 3px 0 0 3px; background: linear-gradient(90deg,#4b168c,#9b72c8 48%,#4b168c); transform: rotateY(90deg) translateZ(-1px); }
.book-pages { right: -5px; width: 9px; background: repeating-linear-gradient(90deg,#d5d1ca 0 1px,#fffdf7 1px 3px); }
.book-face { inset: 0; overflow: hidden; border-radius: 2px 5px 5px 2px; background: #eeeae0; transform: translateZ(7px); box-shadow: inset 3px 0 8px rgba(0,0,0,.20), inset -2px 0 4px rgba(255,255,255,.13); }
.book-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.book-open:hover, .book-open:focus-visible { transform: rotateY(-5deg) rotateZ(0) translateY(-10px) translateZ(12px) scale(1.035); filter: saturate(1.06); box-shadow: 16px 22px 26px rgba(31,22,39,.25); }
.book-meta { width: 100%; padding: 12px 4px 3px; text-align: center; }
.book-stage, .book-meta { position: relative; z-index: 2; }
.book-shelf { position: absolute; z-index: 1; right: -12px; bottom: -13px; left: -12px; height: 19px; border: 1px solid #b99b6b; border-top: 2px solid #fff4db; border-radius: 3px 3px 7px 7px; background: linear-gradient(180deg,#f6e7c8 0 3px,#ddc398 3px 6px,#c8a979 6px 15px,#af8b5c 15px 19px); box-shadow: 0 8px 12px rgba(70,49,20,.17), 0 2px 0 rgba(255,255,255,.7) inset; pointer-events: none; }
.book-title { display: block; max-width: 100%; margin: 0 auto; overflow: visible; color: #272331; font-size: 13px; font-weight: 700; line-height: 1.45; letter-spacing: -.15px; text-wrap: pretty; overflow-wrap: anywhere; }
.book-category, .save-book, .solution-badge, .book-subject, .book-counts, .book-progress-label, .cover-progress, .book-action { display: none !important; }
.cover-fallback { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; padding: 17px; color: white; text-align: center; background: linear-gradient(145deg,#6b2cbf,#4b168c 70%,#32204b); }
.cover-fallback span { font-size: 16px; font-weight: 800; line-height: 1.2; }
.empty { display: flex; grid-column: 1/-1; min-height: 180px; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; border: 1px dashed #d4cadd; border-radius: 16px; background: #fff; color: var(--muted); font-size: 13px; text-align: center; }
.empty button { min-height: 44px; padding: 10px 20px; border-radius: 9px; background: #f1ecfb; color: #542495; font-weight: 650; }
.loading-dot { width: 20px; height: 20px; border: 2px solid #e0d4ee; border-top-color: #6b2cbf; border-radius: 50%; animation: spin .8s linear infinite; }
.how { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 18px; margin: 14px 0 32px; padding: 25px 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.how-intro h2 { color: var(--ink); font-size: 18px; letter-spacing: -.5px; }
.how-step { display: flex; align-items: center; gap: 11px; }
.how-step > span { display: flex; width: 32px; height: 32px; flex: 0 0 32px; align-items: center; justify-content: center; border: 1px solid #d8c8e9; border-radius: 9px; color: #6b2cbf; font-size: 10px; font-weight: 750; }
.how-step h3 { color: #282431; font-size: 12px; font-weight: 700; }
.how-step p { margin-top: 3px; color: var(--muted); font-size: 10px; }
.footer { display: flex; align-items: center; justify-content: space-between; width: min(100%,1248px); margin: 0 auto; padding: 17px clamp(18px, 3.2vw, 42px) 23px; border-top: 1px solid var(--line); background: transparent; color: #73717c; font-size: 11px; }

.detail-head { border-color: var(--line); }
.detail-head .eyebrow { color: var(--blue); }
.konu-h, .test-h { color: var(--ink); }
.konu-h:hover, .test-h:hover { background: #f7f4fb; }
.kn, .q .no { color: #542495; background: #f1ecfb; }
.q:hover { background: #f8f5fc; border-color: #d1bce8; }
.question-open { color: #542495; background: #f1ecfb; }
.question-open:hover { background: #e7def4; }
.primary { background: linear-gradient(135deg,#6b2cbf,#4b168c); }
.primary:hover { background: #4b168c; }

@keyframes library-float { 0%,100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-7px) rotate(.4deg); } }
@keyframes book-arrive { from { opacity: 0; transform: translateY(11px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1500px) { .hero { min-height: 360px; } .book-stage { height: 280px; } }
@media (max-width: 960px) {
  .workspace { padding-top: 23px; }
  .workspace-badge { display: none; }
  .hero { min-height: 300px; grid-template-columns: 1.1fr .9fr; }
  .hero-copy { padding-left: 30px; }
  .hero h2 { font-size: clamp(33px,5vw,45px); }
  .hero-art { width: 122%; right: -5%; }
  .hero-stats { grid-template-columns: 1fr 1fr 1.1fr; }
  .stat-item { gap: 9px; padding: 12px; }
  .stat-item strong { font-size: 18px; }
  .exam-stat strong { font-size: 12px; }
  .how { grid-template-columns: 1fr 1fr; }
  .how-intro { grid-column: 1/-1; }
}
@media (max-width: 720px) {
  .workspace { padding-top: 20px; }
  .shell { padding: 0 18px; }
  .workspace-heading { margin-bottom: 16px; }
  .workspace-heading h1 { font-size: 27px; }
  .workspace-heading p { max-width: 360px; font-size: 12px; }
  .workspace-heading .eyebrow { margin-bottom: 5px; font-size: 9px; }
  .hero { grid-template-columns: 1fr; min-height: 0; border-radius: 18px; }
  .hero-copy { padding: 25px 23px 0; }
  .hero-tag { margin-bottom: 11px; font-size: 9px; }
  .hero h2 { font-size: clamp(32px,9vw,42px); line-height: 1.07; letter-spacing: -1.3px; }
  .hero p { margin: 11px 0 15px; font-size: 12px; line-height: 1.65; }
  .hero .primary { min-height: 44px; font-size: 11px; }
  .hero-scene { height: 195px; justify-content: center; padding: 0 0 3px; }
  .hero-art { position: absolute; right: -2%; bottom: -15px; width: 98%; max-width: 430px; }
  .scene-caption { right: 14px; bottom: 12px; padding: 7px 10px; font-size: 9px; }
  .hero-stats { grid-template-columns: 1fr 1fr; margin-top: 10px; }
  .stat-item { min-height: 66px; padding: 10px 12px; }
  .stat-item:nth-child(3) { grid-column: 1/-1; border-top: 1px solid var(--line); }
  .stat-item:nth-child(3)::before { display: none; }
  .stat-icon { width: 32px; height: 32px; flex-basis: 32px; border-radius: 9px; }
  .stat-icon .icon { width: 16px; height: 16px; }
  .stat-item strong { font-size: 17px; }
  .stat-item div > span { font-size: 9px; }
  .exam-stat strong { font-size: 11px; }
  .library, .continue-section { padding-top: 25px; }
  .section-top { align-items: center; gap: 10px; }
  .section-top h2 { font-size: 20px; }
  .section-top p { max-width: 260px; font-size: 11px; }
  .result-count { font-size: 10px; }
  .toolbar { gap: 8px; margin-bottom: 11px; }
  .search { min-height: 46px; padding: 0 11px; gap: 8px; }
  .search input { height: 44px; font-size: 11px; }
  .saved-filter { width: 46px; min-height: 46px; padding: 9px; flex: 0 0 46px; font-size: 0; }
  .saved-filter .icon { width: 18px; height: 18px; }
  .chips { gap: 7px; margin-bottom: 10px; }
  .chip { min-height: 38px; padding: 7px 11px; font-size: 10px; }
  .shelf-grid, .shelf-grid.single { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 6px 0 38px; }
  .book-card, .single .book-card { padding: 8px 8px 9px; border-radius: 14px; }
  .book-shelf { right: -6px; left: -6px; bottom: -11px; height: 17px; }
  .book-stage { height: clamp(188px,55vw,235px); padding-bottom: 12px; }
  .book-stage::after { right: 4%; left: 4%; bottom: 15px; height: 7px; }
  .book-stage::before { bottom: 23px; }
  .book-open { width: clamp(116px,36vw,157px); max-width: 88%; }
  .book-title { font-size: 11px; line-height: 1.4; }
  .book-meta { padding: 10px 2px 1px; }
  .how { grid-template-columns: 1fr; gap: 15px; margin: 6px 0 24px; padding: 20px 16px; }
  .how-intro { grid-column: 1; }
  .how-intro h2 { font-size: 16px; }
  .how-step p { font-size: 10px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 5px; padding: 15px 18px 20px; font-size: 9px; }
  .detail-head { padding: 17px; gap: 13px; }
}
@media (max-width: 360px) {
  .shell { padding: 0 13px; }
  .hero-copy { padding-right: 18px; padding-left: 18px; }
  .hero h2 { font-size: 30px; }
  .hero-scene { height: 175px; }
  .book-stage { height: 180px; }
  .book-open { width: 112px; }
  .book-card, .single .book-card { padding: 6px; }
  .book-title { font-size: 10px; }
  .footer { padding-right: 13px; padding-left: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .book-open { transform: rotateY(-9deg); }
}
