/* Ana səhifə: geniş tərtibat, tam şəkilli hero və şüşə kartlar */
body.home .container { max-width: 1520px; padding-left: 32px; padding-right: 32px; }

/* ---------------------------------------------------------------- Hero */
body.home .hero-wrap { padding-top: 20px; padding-bottom: 10px; }
body.home .hero-card {
  position: relative; display: block; isolation: isolate;
  min-height: clamp(540px, 76vh, 780px); border-radius: 34px; overflow: hidden;
  background: #4d6a96; box-shadow: 0 30px 70px -34px rgba(40, 55, 90, .7);
}
body.home .hero-media { position: absolute; inset: 0; min-height: 0; height: auto; z-index: -2; background: #4d6a96; }
body.home .hero-media::after { display: none; }
body.home .hero-slide { object-position: 70% 60%; }
.hero-shade { /* mətn oxunsun deyə solda tünd keçid */
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(22, 30, 52, .78) 0%, rgba(22, 30, 52, .52) 32%, rgba(22, 30, 52, .1) 58%, transparent 72%),
    linear-gradient(0deg, rgba(22, 30, 52, .35), transparent 30%);
}
body.home .hero-copy {
  position: relative; max-width: 640px; min-height: inherit; padding: 64px 60px 56px;
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
}
body.home .hero-eyebrow {
  color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
body.home .hero-copy h1 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); color: #fff; text-shadow: 0 2px 24px rgba(10, 20, 40, .35); }
body.home .hero-copy p { color: #e4e9f3; font-size: 1.1rem; }
body.home .search.hero-search input {
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .7);
}
body.home .btn-light-outline { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .12); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
body.home .btn-light-outline:hover { background: rgba(255, 255, 255, .24); color: #fff; }
body.home .hero-stats { color: #c9d2e3 !important; }
body.home .hero-stats strong { color: #fff; }
body.home .hero-dots { left: auto; right: 24px; bottom: 22px; top: auto; transform: none; background: rgba(20, 30, 52, .45); }

/* Şüşə “Ona görə” kartı — heroda sağda */
.hero-col {
  position: absolute; right: 28px; top: 28px; width: 380px; z-index: 2;
  padding: 20px 20px 16px; border-radius: 28px; color: #fff;
  background: linear-gradient(140deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .14));
  border: 1px solid rgba(255, 255, 255, .5);
  backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 24px 50px -20px rgba(15, 25, 50, .55), inset 0 1px 0 rgba(255, 255, 255, .5);
  animation: hc-in .7s cubic-bezier(.2, .9, .25, 1.05) .5s both;
}
.hero-col[hidden] { display: none; }
@keyframes hc-in { from { opacity: 0; transform: translateY(26px) scale(.96); } }
.hc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hc-brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.hc-brand small { display: block; font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.hc-go {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #22304d; text-decoration: none; transition: transform .2s;
}
.hc-go:hover { transform: rotate(45deg); color: #22304d; }
.hc-post { display: block; margin-top: 14px; text-decoration: none; color: #fff; }
.hc-post:hover { color: #fff; }
.hc-by { display: flex; align-items: center; gap: 10px; font-size: .84rem; }
.hc-by b { display: block; font-weight: 700; }
.hc-by span { opacity: .85; }
.hc-title { display: block; font-family: var(--serif); font-size: 1.28rem; font-weight: 600; line-height: 1.25; margin-top: 12px; }
.hc-ex { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; font-size: .88rem; color: rgba(255, 255, 255, .86); }
.hc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .3); font-size: .8rem; }
.hc-new { padding: 2px 8px; border-radius: 999px; background: #f2c14e; color: #2b1d08; font-weight: 800; font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; margin-right: 6px; }
.hc-nav { display: flex; gap: 6px; }
.hc-nav button {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .14);
  color: #fff; cursor: pointer; display: grid; place-items: center;
}
.hc-nav button:hover { background: rgba(255, 255, 255, .3); }
.hc-post.swap { animation: hc-swap .35s ease; }
@keyframes hc-swap { from { opacity: 0; transform: translateX(14px); } }
.hero-col .au-avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }

/* ---------------------------------------------------------------- Kitablar: solda kateqoriya sütunu */
@media (min-width: 1200px) {
  body.home .books-area { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 34px; }
  body.home .chips {
    position: sticky; top: 88px; flex-direction: column; gap: 4px; overflow: visible; padding: 18px 14px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  }
  body.home .chips::before { content: "Kateqoriyalar"; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; padding: 2px 10px 10px; }
  body.home .chip { border: 0; background: none; padding: 9px 12px; border-radius: 12px; font-size: .94rem; }
  body.home .chip:hover { background: var(--surface-2); }
  body.home .chip[aria-current="page"] { background: var(--ink); color: #fff8ea; }
  body.home #content .section:first-child { padding-top: 0; }
  body.home .book-grid { gap: 34px 28px; }
}

/* ---------------------------------------------------------------- Planşet və telefon */
@media (max-width: 1100px) {
  .hero-col { width: 330px; }
  body.home .hero-copy { max-width: 560px; padding: 52px 44px; }
}
@media (max-width: 860px) {
  body.home .container { padding-left: 20px; padding-right: 20px; }
  body.home .hero-card { min-height: 0; display: flex; flex-direction: column; border-radius: 26px; }
  body.home .hero-media { position: absolute; inset: 0; height: auto; order: 0; }
  body.home .hero-slide { object-position: 72% 50%; }
  .hero-shade { background: linear-gradient(0deg, rgba(22, 30, 52, .85) 0%, rgba(22, 30, 52, .6) 45%, rgba(22, 30, 52, .15) 75%, transparent 100%); }
  body.home .hero-copy { padding: 200px 28px 24px; max-width: none; min-height: 0; gap: 14px; }
  .hero-col { position: relative; right: auto; top: auto; width: auto; margin: 0 16px 16px; }
}
@media (max-width: 640px) {
  body.home .container { padding-left: 16px; padding-right: 16px; }
  body.home .hero-wrap { padding-top: 12px; }
  body.home .hero-card { border-radius: 22px; }
  /* Telefonda şəkil yuxarıda zolaq kimi (pavilyon görünsün), mətn altda tünd fonda */
  body.home .hero-card { background: linear-gradient(180deg, #3a4c72, #26324f); }
  body.home .hero-media { position: relative; inset: auto; height: 190px; z-index: 0; }
  body.home .hero-slide { object-position: 74% 72%; transform: scale(2.1); transform-origin: 88% 84%; }
  .hero-shade { inset: 0 0 auto 0; height: 190px; background: linear-gradient(0deg, #3a4c72 0%, rgba(58, 76, 114, 0) 55%); z-index: 0; }
  body.home .hero-copy { order: 2; padding: 4px 18px 18px; gap: 12px; margin-top: -34px; z-index: 1; }
  .hero-col { order: 3; }
  body.home .hero-copy h1 { font-size: 2rem; }
  body.home .hero-copy p { font-size: .95rem; }
  .hero-col { margin: 0 10px 10px; padding: 14px; border-radius: 20px; }
  .hc-top { display: none; }
  .hc-post { margin-top: 0; }
  .hc-title { font-size: 1.05rem; margin-top: 8px; }
  .hc-ex { display: none; }
  .hc-foot { margin-top: 10px; padding-top: 8px; }
}
@media (min-width: 861px) and (max-height: 820px) {
  body.home .hero-card { min-height: 500px; }
  body.home .hero-copy { padding: 40px 52px; gap: 16px; }
  body.home .hero-copy h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
}
@media (prefers-reduced-motion: reduce) { .hero-col { animation: none; } }

/* ---------------------------------------------------------------- Ən çox oxunanlar və tövsiyələr */
body.home .chip-special { font-weight: 600; }
.chip-ico { margin-right: 6px; font-size: .9em; }
.chip-special .chip-ico { color: #c2410c; }
@media (min-width: 1200px) {
  /* Solda sütunda xüsusi bölmələr kateqoriyalardan nazik xətlə ayrılır */
  body.home .chip-special + .chip:not(.chip-special) { margin-top: 8px; position: relative; }
  body.home .chip-special + .chip:not(.chip-special)::before {
    content: ""; position: absolute; left: 12px; right: 12px; top: -5px; border-top: 1px dashed var(--line);
  }
}
.sec-ico { margin-right: 8px; font-size: .85em; }
.sec-picks .sec-ico { color: #c0392b; }

.ranked, .picked { position: relative; display: flex; flex-direction: column; min-width: 0; }
.rank-badge {
  position: absolute; z-index: 3; top: -10px; left: -10px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.05rem;
  background: var(--surface); color: var(--ink); border: 2px solid var(--line); box-shadow: var(--shadow-sm);
}
.rank-badge.top1 { background: linear-gradient(145deg, #f6d27a, #d9a032); border-color: #fff3d0; color: #3b2606; }
.rank-badge.top2 { background: linear-gradient(145deg, #eef0f2, #b9bfc6); border-color: #fff; color: #2f343a; }
.rank-badge.top3 { background: linear-gradient(145deg, #e9b48a, #b06d3b); border-color: #fbe3cf; color: #2e1806; }
.rank-stat { margin: 6px 0 0; font-size: .8rem; color: var(--ink-soft); }
.rank-stat b { color: var(--ink); }

.pick-note {
  margin: 10px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); position: relative;
}
.pick-note::before { /* kartı kitaba bağlayan kiçik üçbucaq */
  content: ""; position: absolute; top: -7px; left: 22px; width: 12px; height: 12px; transform: rotate(45deg);
  background: var(--surface); border-left: 1px solid var(--line); border-top: 1px solid var(--line);
}
.pick-note blockquote { margin: 0 0 8px; font-family: var(--serif); font-style: italic; font-size: .9rem; line-height: 1.4; color: var(--ink); }
.pick-note figcaption { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink); }
.pick-note figcaption small { display: block; color: var(--ink-faint); font-size: .72rem; }
.pn-av {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .74rem;
}
.pn-more { margin: 6px 0 0; font-size: .74rem; color: var(--accent-strong); font-weight: 600; }

.top-readers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: -6px 0 18px; font-size: .82rem; color: var(--ink-soft); }
.tr-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.tr-chip .pn-av { width: 22px; height: 22px; font-size: .68rem; }
.tr-chip small { color: var(--accent-strong); font-weight: 700; }

.picks-invite {
  display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-radius: 18px;
  background: var(--surface); border: 1px dashed var(--line); color: var(--ink-soft);
}
.picks-invite > span { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fbe3dc; color: #c0392b; font-size: 1.1rem; }
.picks-invite p { margin: 0; font-size: .9rem; }
.picks-invite b { color: var(--ink); }

@media (max-width: 640px) {
  .rank-badge { width: 28px; height: 28px; top: -8px; left: -6px; font-size: .9rem; }
  .pick-note { padding: 8px 10px; }
  .pick-note blockquote { font-size: .84rem; }
}
/* Yer nömrəsi “Oxundu ✓” nişanını örtməsin */
.ranked .status-badge { left: 30px; }
@media (max-width: 640px) { .ranked .status-badge { left: 26px; } }
