/* Ana səhifə: klub görüşləri təqvimi (sağ sütun) */

/* ---------------------------------------------------------------- Yerləşmə */
.meet-cal { min-width: 0; scroll-margin-top: 90px; }
.meet-cal[hidden] { display: none; }
body.home #content { min-width: 0; }
@media (min-width: 1200px) {
  body.home .books-area { grid-template-columns: 220px minmax(0, 1fr) 320px; gap: 36px; }
  .meet-cal { position: sticky; top: 88px; }
}
@media (min-width: 861px) and (max-width: 1199px) {
  body.home .books-area { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 0 28px; align-items: start; }
  body.home .chips { grid-column: 1 / -1; }
  body.home #content { grid-column: 1; }
  .meet-cal { grid-column: 2; position: sticky; top: 88px; margin-top: 18px; }
}
@media (max-width: 860px) {
  body.home .books-area { display: flex; flex-direction: column; }
  body.home .chips { order: 0; }
  .meet-cal { order: 1; margin: 6px 0 4px; }
  body.home #content { order: 2; }
}

/* ---------------------------------------------------------------- Kart */
.mc-card {
  padding: 18px 16px 16px; border-radius: 24px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.mc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px 12px; }
.mc-head small { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); }
.mc-head strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.2; color: var(--ink); }
.mc-nav { display: flex; gap: 6px; }
.mc-nav button {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background .15s;
}
.mc-nav button:hover { background: var(--surface-2); }

.mc-week, .mc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mc-week span { text-align: center; font-size: .68rem; font-weight: 700; color: var(--ink-faint); padding: 4px 0 6px; }
.mc-grid { gap: 2px; }
.mc-day {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px;
  font-size: .88rem; color: var(--ink-soft); font-variant-numeric: tabular-nums;
}
.mc-day.empty { visibility: hidden; }
.mc-day.past { color: var(--ink-faint); }
.mc-day.today { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--ink); font-weight: 700; }

/* Görüş günü: rəqəm kitab üzlüyünün üstündədir */
.mc-day.meet { border: 0; padding: 0; background: none; cursor: pointer; font: inherit; }
.mc-day.meet:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 1px; }
.mc-book {
  position: relative; display: grid; place-items: center; width: 30px; height: 37px;
  border-radius: 3px 6px 6px 3px; background: var(--bk, #5a2a27); color: #fff8ea;
  font-family: var(--serif); font-weight: 700; font-size: .98rem; line-height: 1;
  box-shadow: inset 5px 0 0 rgba(0, 0, 0, .28), inset 6px 0 0 rgba(255, 255, 255, .12), 0 3px 7px -2px rgba(60, 40, 15, .45);
  transition: transform .2s cubic-bezier(.2, .9, .25, 1.3);
}
.mc-book span { padding-left: 4px; }
.mc-book::before { /* səhifələr */
  content: ""; position: absolute; right: -3px; top: 3px; bottom: 3px; width: 3px; border-radius: 0 2px 2px 0;
  background: repeating-linear-gradient(180deg, #fffaf0 0 1px, #e2d6c1 1px 2px);
}
.mc-book::after { /* əlfəcin */
  content: ""; position: absolute; top: -1px; right: 6px; width: 5px; height: 10px; background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
}
.mc-day.meet:hover .mc-book { transform: translateY(-2px) rotate(-5deg); }
.mc-day.meet.sel .mc-book { transform: scale(1.14) rotate(-4deg); box-shadow: inset 5px 0 0 rgba(0, 0, 0, .28), 0 0 0 2px var(--surface), 0 0 0 4px var(--accent), 0 6px 12px -3px rgba(60, 40, 15, .5); }
.mc-day.meet.past .mc-book { filter: saturate(.35); opacity: .7; }
.mc-day.meet.today .mc-book { animation: mc-ring 2s ease-in-out infinite; }
@keyframes mc-ring { 50% { transform: translateY(-2px); } }

/* ---------------------------------------------------------------- Ətraflı */
.mc-detail { margin-top: 12px; padding-top: 14px; border-top: 1px dashed var(--line); }
.mc-empty { margin: 0; font-size: .88rem; color: var(--ink-soft); text-align: center; }
.mc-next {
  display: block; width: 100%; text-align: left; border: 0; cursor: pointer; font: inherit;
  padding: 12px 14px; border-radius: 16px; background: var(--surface-2); color: var(--ink); transition: background .15s;
}
.mc-next:hover { background: #ecdfc4; }
.mc-next-lbl { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-strong); }
.mc-next-t { display: block; margin-top: 3px; font-family: var(--serif); font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.mc-next-hint { display: block; margin-top: 4px; font-size: .76rem; color: var(--ink-faint); }

.mc-info { position: relative; display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 14px; animation: mc-in .3s ease; }
@keyframes mc-in { from { opacity: 0; transform: translateY(8px); } }
.mc-cover .cover, .mc-plain { width: 66px; height: 98px; border-radius: 3px 5px 5px 3px; box-shadow: var(--shadow-md); }
.mc-cover .cover { padding: 0; }
button.mc-cover { padding: 0; border: 0; background: none; cursor: pointer; align-self: start; transition: transform .2s; }
button.mc-cover:hover { transform: translateY(-3px) rotate(-2deg); }
.mc-tip { margin: 12px 0 0; font-size: .74rem; color: var(--ink-faint); text-align: center; }
.mc-cover .cover .c-title, .mc-cover .cover .c-author, .mc-cover .cover .c-rule { display: none; }
.mc-plain {
  display: flex; align-items: center; justify-content: center; padding: 8px 4px 8px 9px; text-align: center;
  background: var(--bk); color: #fff8ea; font-family: var(--serif); font-size: .62rem; font-weight: 600; line-height: 1.2;
  box-shadow: inset 5px 0 0 rgba(0, 0, 0, .28), var(--shadow-md); overflow: hidden; overflow-wrap: break-word; hyphens: auto;
}
.mc-left { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .68rem; font-weight: 800; letter-spacing: .03em; }
.mc-info.past .mc-left { background: var(--surface-2); color: var(--ink-soft); }
.mc-body h3 { margin: 6px 0 0; font-family: var(--serif); font-size: 1.12rem; line-height: 1.25; color: var(--ink); padding-right: 22px; }
.mc-author { margin: 2px 0 0; font-style: italic; color: var(--ink-soft); font-size: .9rem; }
.mc-facts { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 5px; font-size: .84rem; color: var(--ink); }
.mc-facts li { display: flex; align-items: center; gap: 7px; }
.mc-facts svg { flex: none; color: var(--accent-strong); }
.mc-note { margin: 8px 0 0; font-size: .82rem; color: var(--ink-soft); }
.mc-read { margin-top: 10px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 700; font-size: .86rem; color: var(--accent-strong); }
.mc-read:hover { text-decoration: underline; }
.mc-close {
  position: absolute; top: -4px; right: -2px; width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
  background: none; color: var(--ink-faint); font-size: 1.3rem; line-height: 1;
}
.mc-close:hover { background: var(--surface-2); color: var(--ink); }

@media (max-width: 860px) {
  .mc-card { padding: 14px 12px 12px; border-radius: 20px; }
  .mc-week, .mc-grid { max-width: 420px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .mc-book, .mc-info { transition: none; animation: none !important; }
}
