/* Harfim Ders Anlatımı — tam ekran kabuk */

.roborox-topics-modal.harfim-ders-overlay,
.harfim-ders-overlay {
  position: fixed;
  inset: 0;
  z-index: 12060;
  display: none;
  padding: 0 !important;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(251, 191, 36, 0.2), transparent 42%),
    radial-gradient(ellipse at 88% 100%, rgba(45, 212, 191, 0.16), transparent 46%),
    linear-gradient(165deg, #061018 0%, #0c3038 46%, #08251f 100%);
  backdrop-filter: none;
}
.harfim-ders-overlay.open,
.roborox-topics-modal.harfim-ders-overlay.open {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  place-items: center;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  width: 100vw;
  width: 100dvw;
  height: 100%;
  height: 100dvh;
  height: 100svh;
  max-width: none;
  inset: 0;
  overflow: hidden;
}
html:fullscreen,
html:-webkit-full-screen,
html:-moz-full-screen,
body:fullscreen,
body:-webkit-full-screen {
  width: 100% !important;
  height: 100% !important;
  background: #061018;
}
.harfim-ders-overlay.open:fullscreen:not(.is-force-land),
.harfim-ders-overlay.open:-webkit-full-screen:not(.is-force-land),
.harfim-ders-overlay.open:-moz-full-screen:not(.is-force-land),
.harfim-ders-overlay.open:-ms-fullscreen:not(.is-force-land),
html:fullscreen .harfim-ders-overlay.open:not(.is-force-land),
html:-webkit-full-screen .harfim-ders-overlay.open:not(.is-force-land) {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  inset: 0 !important;
  background: #061018;
}
.harfim-ders-overlay.open::backdrop,
.harfim-ders-overlay.open:fullscreen::backdrop {
  background: #061018;
}
.harfim-ders-overlay.open > .harfim-ders-fit {
  grid-area: 1 / 1;
}
.harfim-ders-overlay .yy-land-turn {
  display: none !important;
}
.harfim-ders-fit {
  position: relative;
  width: calc(1280px * var(--harfim-fit, 1));
  height: calc(720px * var(--harfim-fit, 1));
  min-width: calc(1280px * var(--harfim-fit, 1));
  min-height: calc(720px * var(--harfim-fit, 1));
  overflow: hidden;
  flex: none;
}
html.birles-yeryon-land .harfim-ders-overlay.open,
body.birles-yeryon-land .harfim-ders-overlay.open {
  z-index: 13070;
}
.harfim-ders-overlay.open.is-force-land {
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: 100dvh !important;
  height: 100dvw !important;
  max-width: none !important;
  max-height: none !important;
  inset: auto !important;
  transform: translate(-50%, -50%) rotate(90deg) !important;
  transform-origin: center center !important;
}

.harfim-ders {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 27%) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  width: 1280px;
  height: 720px;
  min-width: 1280px;
  min-height: 720px;
  container-type: size;
  container-name: harfim;
  transform: scale(var(--harfim-fit, 1));
  transform-origin: 0 0;
  color: #f8fafc;
  font-family: "TemelYazi", "ComfortaaOkul", "Segoe UI", sans-serif;
}

.harfim-ders-overlay .roborox-topics-back {
  display: none !important;
}

.harfim-ders__close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 8;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 16, 24, 0.55);
  color: #fffbeb;
  font-size: 1.05rem;
  cursor: pointer;
}

.harfim-ders__rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: max(22px, env(safe-area-inset-top)) 18px 20px max(18px, env(safe-area-inset-left));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%),
    rgba(4, 12, 18, 0.42);
  border-right: 1px solid rgba(253, 224, 71, 0.14);
}

.harfim-ders__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
}
.harfim-ders__brand-ico {
  width: 58px;
  height: 86px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.35));
}
.harfim-ders__brand-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fde68a;
  font-weight: 800;
}
.harfim-ders__brand-title {
  margin: 2px 0 0;
  font-size: clamp(1.15rem, 2.2cqw, 1.55rem);
  font-weight: 900;
  color: #fffbeb;
  line-height: 1.15;
}

.harfim-ders__lessons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.harfim-ders__lesson {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 247, 237, 0.08);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.35);
  color: #e2e8f0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.harfim-ders__lesson:hover {
  transform: translateX(3px);
  border-color: rgba(253, 224, 71, 0.35);
}
.harfim-ders__lesson.is-on {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.28), rgba(15, 118, 110, 0.35));
  border-color: rgba(253, 224, 71, 0.55);
  color: #fffbeb;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.harfim-ders__lesson-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #94a3b8;
  flex-shrink: 0;
}
.harfim-ders__lesson[data-lesson-id="matematik"] .harfim-ders__lesson-mark { background: #fbbf24; }
.harfim-ders__lesson[data-lesson-id="turkce"] .harfim-ders__lesson-mark { background: #38bdf8; }
.harfim-ders__lesson[data-lesson-id="hayat-bilgisi"] .harfim-ders__lesson-mark { background: #34d399; }
.harfim-ders__lesson-name {
  font-weight: 900;
  font-size: 1.02rem;
}
.harfim-ders__lesson-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fde68a;
  opacity: 0.85;
}

.harfim-ders__stagewrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: max(22px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) 18px 18px;
}

.harfim-ders__frame {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  border: 1px solid rgba(253, 230, 138, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 251, 235, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(8, 18, 24, 0.58);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 0 8px rgba(253, 224, 71, 0.05),
    0 28px 70px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.harfim-ders__frame-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid rgba(253, 224, 71, 0.12);
}
.harfim-ders__frame-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.harfim-ders__close {
  position: static;
  top: auto;
  right: auto;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.harfim-ders__frame-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fde68a;
  font-weight: 800;
}
.harfim-ders__frame-title {
  margin: 4px 0 0;
  font-size: clamp(1.15rem, 2.4cqw, 1.7rem);
  font-weight: 900;
  color: #fffbeb;
}
.harfim-ders__frame-note {
  margin: 0;
  font-size: 0.85rem;
  color: #99f6e4;
  font-weight: 700;
  max-width: 280px;
  text-align: right;
  line-height: 1.35;
}

.harfim-ders__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.harfim-ders__topics {
  height: 100%;
  overflow: auto;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  align-content: start;
}

.harfim-ders__topic {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(255, 247, 237, 0.1);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.45);
  color: inherit;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.harfim-ders__topic:hover {
  transform: translateY(-2px);
  border-color: rgba(253, 224, 71, 0.4);
  background: rgba(15, 23, 42, 0.62);
}
.harfim-ders__topic.is-ready {
  border-color: rgba(52, 211, 153, 0.45);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.16), rgba(15, 23, 42, 0.5));
}
.harfim-ders__topic.is-early {
  border-color: rgba(251, 191, 36, 0.38);
  background: rgba(15, 23, 42, 0.38);
}
.harfim-ders__topic.is-early .harfim-ders__topic-meta {
  color: #fde68a;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 12px;
}
.harfim-ders__topic.is-member {
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(15, 23, 42, 0.32);
}
.harfim-ders__topic.is-member .harfim-ders__topic-meta {
  color: #fbbf24;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 12px;
}
.harfim-ders__topic .nova-mem-lock-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}
.harfim-ders__topic-num {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #fde68a;
}
.harfim-ders__topic-title {
  font-size: 1rem;
  font-weight: 900;
  color: #fffbeb;
  line-height: 1.3;
}
.harfim-ders__topic-meta {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5eead4;
}

.harfim-ders__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.harfim-ders__empty[hidden],
.harfim-ders__topics[hidden] {
  display: none !important;
}
.harfim-ders__empty-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 18% center;
}
.harfim-ders__empty-copy {
  position: relative;
  z-index: 2;
  max-width: 420px;
  margin-left: auto;
  margin-right: 8%;
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(8, 16, 24, 0.42);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.harfim-ders__empty-copy h4 {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 3cqw, 1.8rem);
  color: #fffbeb;
}
.harfim-ders__empty-copy p {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #ccfbf1;
  line-height: 1.45;
}

.harfim-ders-overlay.is-playing .harfim-ders__topics,
.harfim-ders-overlay.is-playing .harfim-ders__empty {
  display: none;
}

.birles-uzam-overlay.is-embed {
  position: absolute;
  inset: 0;
  z-index: 6;
  overflow: hidden;
  background: #f6e0c0;
  border-radius: 0;
}
.birles-uzam-overlay.is-embed .birles-uzam__close {
  display: none;
}
.harfim-ders-overlay.is-playing .harfim-ders__stage {
  background: #f6e0c0;
}

.harfim-ders__stage > #kabuk-uzamsal-overlay:not([hidden]),
.harfim-ders-overlay .birles-uzam-overlay.is-embed:not([hidden]) {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 40 !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  background: #f6e0c0;
  overflow: hidden;
}
.harfim-ders__stage > #kabuk-uzamsal-overlay[hidden],
.harfim-ders-overlay .birles-uzam-overlay.is-embed[hidden],
.harfim-ders-overlay .birles-uzam-overlay:not(.is-open) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html.birles-yeryon-land .harfim-ders,
body.birles-yeryon-land .harfim-ders,
.harfim-ders-overlay.open .harfim-ders {
  grid-template-columns: minmax(0, 27%) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

/* Telefon yatay: tuval küçülmez. Yazılar büyük, konular iki sıra. */
.harfim-ders-overlay.open .harfim-ders.is-phone-type,
html.birles-yeryon-land .harfim-ders.is-phone-type,
body.birles-yeryon-land .harfim-ders.is-phone-type {
  grid-template-columns: minmax(0, 30%) minmax(0, 1fr);
}
.harfim-ders.is-phone-type .harfim-ders__rail {
  gap: 10px;
  padding: 12px 10px 12px 12px;
}
.harfim-ders.is-phone-type .harfim-ders__brand {
  min-height: 0;
  gap: 8px;
}
.harfim-ders.is-phone-type .harfim-ders__brand-ico {
  width: 44px;
  height: 64px;
}
.harfim-ders.is-phone-type .harfim-ders__brand-kicker {
  font-size: 13px;
  letter-spacing: 0.08em;
}
.harfim-ders.is-phone-type .harfim-ders__brand-title {
  font-size: 22px;
}
.harfim-ders.is-phone-type .harfim-ders__lessons {
  gap: 8px;
}
.harfim-ders.is-phone-type .harfim-ders__lesson {
  min-height: 48px;
  padding: 8px 10px;
  gap: 8px;
  border-radius: 14px;
}
.harfim-ders.is-phone-type .harfim-ders__lesson-name {
  font-size: 18px;
  line-height: 1.15;
}
.harfim-ders.is-phone-type .harfim-ders__lesson-count {
  font-size: 13px;
  letter-spacing: 0.02em;
}
.harfim-ders.is-phone-type .harfim-ders__stagewrap {
  padding: 10px 12px 10px 10px;
}
.harfim-ders.is-phone-type .harfim-ders__frame {
  border-radius: 18px;
}
.harfim-ders.is-phone-type .harfim-ders__frame-head {
  padding: 10px 12px 8px;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.harfim-ders.is-phone-type .harfim-ders__frame-kicker {
  font-size: 13px;
  letter-spacing: 0.08em;
}
.harfim-ders.is-phone-type .harfim-ders__frame-title {
  font-size: 24px;
}
.harfim-ders.is-phone-type .harfim-ders__frame-note {
  font-size: 15px;
  max-width: none;
  flex: 1 1 100%;
  text-align: left;
}
.harfim-ders.is-phone-type .harfim-ders__close {
  width: 40px;
  height: 40px;
  font-size: 18px;
}
.harfim-ders.is-phone-type .harfim-ders__topics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: 10px;
  padding: 10px;
}
.harfim-ders.is-phone-type .harfim-ders__topic {
  min-width: 0;
  min-height: 76px;
  height: auto;
  gap: 4px;
  padding: 12px 12px 10px;
  border-radius: 14px;
  overflow: hidden;
}
.harfim-ders.is-phone-type .harfim-ders__topic-num,
.harfim-ders.is-phone-type .harfim-ders__topic-title,
.harfim-ders.is-phone-type .harfim-ders__topic-meta {
  flex: none;
  min-width: 0;
  max-width: 100%;
}
.harfim-ders.is-phone-type .harfim-ders__topic-title {
  overflow-wrap: break-word;
}
.harfim-ders.is-phone-type .harfim-ders__topic-num {
  font-size: 14px;
  letter-spacing: 0.06em;
}
.harfim-ders.is-phone-type .harfim-ders__topic-title {
  font-size: 18px;
  line-height: 1.25;
}
.harfim-ders.is-phone-type .harfim-ders__topic-meta,
.harfim-ders.is-phone-type .harfim-ders__topic.is-early .harfim-ders__topic-meta,
.harfim-ders.is-phone-type .harfim-ders__topic.is-member .harfim-ders__topic-meta {
  font-size: 14px;
  letter-spacing: 0.02em;
}
.harfim-ders.is-phone-type .harfim-ders__empty-copy h4 {
  font-size: 24px;
}
.harfim-ders.is-phone-type .harfim-ders__empty-copy p {
  font-size: 17px;
}
