/* OyunEtkinlik Theme (minimal shell).
   Intentionally small and non-invasive: avoids overriding plugin UI. */

:root {
  --oe-bg: #f7f8fb;
  --oe-card: #ffffff;
  --oe-text: #0f172a;
  --oe-muted: #64748b;
  --oe-border: rgba(15, 23, 42, 0.10);
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--oe-bg);
  color: var(--oe-text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
}

a { color: inherit; }

/* Global header (OyunEtkinlik public header markup) */
.oe-public-header.oe-tp-pubHeader {
  width: 100%;
  position: relative;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(37, 99, 235, 0.10);
  box-shadow: 0 8px 24px rgba(38, 71, 140, 0.06);
}

.oe-tp-pubHeader__inner {
  max-width: 1220px;
  min-height: 76px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-sizing: border-box;
}

.oe-tp-pubBrand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 170px;
}

.oe-tp-pubBrand__img {
  height: 73px;
  max-height: 73px;
  width: auto;
  object-fit: contain;
  display: block;
}

.oe-tp-pubBrand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #2563eb;
  display: inline-block;
}

.oe-tp-pubBrand__text {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.oe-tp-pubNav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.oe-tp-pubNav__link {
  display: inline-flex;
  align-items: center;
  min-height: 76px;
  text-decoration: none;
  color: #101936;
  font-size: 15px;
  font-weight: 800;
}

.oe-tp-pubNav__sep {
  width: 1px;
  height: 22px;
  background: rgba(15, 23, 42, 0.12);
}

.oe-tp-pubNav__cta {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(135deg, #2563eb, #6d5dfc);
  color: #fff;
}

.oe-tp-pubNav__cta--ghost {
  background: #fff;
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.28);
}

.oe-tp-pubNav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  cursor: pointer;
}

.oe-tp-pubNav__toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #101936;
  display: block;
}

.oe-tp-pubNav__link--logout {
  color: #b42318;
}

.oe-tp-pubNav__link--logout:hover {
  color: #7a110b;
}

.oe-siteHeader {
  background: var(--oe-card);
  border-bottom: 1px solid var(--oe-border);
}

.oe-siteHeader__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.oe-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.oe-brand__logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.oe-brand__text {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.oe-nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.oe-nav__menu a {
  text-decoration: none;
  color: var(--oe-muted);
  font-weight: 650;
}

.oe-nav__menu a:hover {
  color: var(--oe-text);
}

.oe-siteBody {
  min-height: calc(100vh - 120px);
}

.oe-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 16px 44px;
}

/* Mağaza: içerik tam genişlik; kartın kendi max-width’i .oe-store-container içinde */
body.oe-public-store-page .oe-shell {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

body.oe-public-store-page .oe-article {
  background: transparent;
  border: none;
  padding: 0;
}

body.oe-public-store-page .oe-article__content {
  padding: 0;
}

.oe-article,
.oe-listItem,
.oe-notFound {
  background: var(--oe-card);
  border: 1px solid var(--oe-border);
  border-radius: 14px;
}

.oe-article { padding: 18px; }
.oe-article__title { margin: 0 0 10px; font-size: 26px; }
.oe-article__meta { margin: 0 0 12px; color: var(--oe-muted); font-size: 14px; }
.oe-article__content { color: #0b1220; }

.oe-archiveHead,
.oe-searchHead {
  margin-bottom: 14px;
}

.oe-archiveHead__title,
.oe-searchHead__title {
  margin: 0 0 10px;
  font-size: 24px;
}

.oe-archiveHead__desc {
  color: var(--oe-muted);
}

.oe-list {
  display: grid;
  gap: 12px;
}

.oe-listItem { padding: 14px 16px; }
.oe-listItem__title { margin: 0 0 8px; font-size: 18px; }
.oe-listItem__title a { text-decoration: none; }
.oe-listItem__excerpt { color: var(--oe-muted); }

.oe-pagination {
  margin-top: 16px;
}

.oe-muted {
  color: var(--oe-muted);
  margin: 0;
}

.oe-searchForm {
  display: flex;
  gap: 10px;
  align-items: center;
}

.oe-searchForm__input {
  width: min(520px, 75vw);
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--oe-border);
  padding: 0 12px;
  outline: none;
}

.oe-searchForm__btn {
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--oe-border);
  background: #fff;
  padding: 0 12px;
  font-weight: 700;
  cursor: pointer;
}

.oe-searchForm__btn:hover {
  background: #f1f5f9;
}

.oe-notFound { padding: 22px; text-align: center; }
.oe-notFound__title { margin: 0 0 10px; font-size: 28px; }
.oe-notFound__text { margin: 0 0 16px; color: var(--oe-muted); }

.oe-notFound__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.oe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.oe-btn--ghost {
  background: #fff;
  color: #2563eb;
}

.oe-siteFooter {
  background: var(--oe-card);
  border-top: 1px solid var(--oe-border);
}

.oe-siteFooter__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 16px;
}

.oe-siteFooter__copy {
  margin: 0;
  color: var(--oe-muted);
  font-size: 14px;
  font-weight: 650;
}

/* ================================
   OyunEtkinlik - Sade Beyaz Footer
================================ */

.oe-footer {
  width: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-top: 1px solid #eef2f7;
  color: #25364d;
  font-family: inherit;
  overflow: hidden;
  display: block;
}

/* Safety: if any global stylesheet hides generic footers, force-show ours */
body footer.oe-footer {
  display: block !important;
}

/* Safety for oe-teacher-panel public pages: it hides `.wp-site-blocks > footer` with `!important` */
body.oe-public-page .wp-site-blocks > footer.oe-footer,
body.oe-public-page:not(.oe-tp-shell-active) .wp-site-blocks > footer.oe-footer {
  display: block !important;
}

.oe-footer__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 24px 34px;
  display: grid;
  grid-template-columns: 1.25fr 1px 1fr 1.15fr 1fr 120px;
  gap: 34px;
  align-items: start;
}

.oe-footer__brand {
  min-width: 0;
}

.oe-footer__logoRow {
  margin-bottom: 14px;
}

.oe-footer__logoImg {
  display: block;
  width: auto;
  max-width: min(320px, 100%);
  height: auto;
}

.oe-footer__desc {
  margin: 0;
  color: #66758a;
  font-size: 15.5px;
  line-height: 1.75;
  font-weight: 500;
}

.oe-footer__divider {
  width: 1px;
  height: 126px;
  background: linear-gradient(180deg, transparent 0%, #e5ebf3 18%, #e5ebf3 82%, transparent 100%);
}

.oe-footer__col {
  min-width: 0;
}

.oe-footer__col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #20334e;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.25px;
}

.oe-footer__icon {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
}

.oe-footer__icon--blue {
  color: #0a95ff;
}

.oe-footer__icon--green {
  color: #17bf73;
}

.oe-footer__icon--purple {
  color: #7b4dff;
}

.oe-footer__col a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  color: #526178;
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
  transition: color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.oe-footer__col a:last-child {
  border-bottom-color: transparent;
}

.oe-footer__col a em {
  font-style: normal;
  color: #7a889a;
  font-size: 23px;
  line-height: 1;
  transition: transform 0.18s ease, color 0.18s ease;
}

.oe-footer__col a:hover {
  color: #0a83df;
  border-bottom-color: rgba(10, 131, 223, 0.18);
  transform: translateX(2px);
}

.oe-footer__col a:hover em {
  color: #0a83df;
  transform: translateX(3px);
}

.oe-footer__decor {
  position: relative;
  min-height: 125px;
}

.oe-footer__decor span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.oe-footer__star {
  top: 0;
  right: 12px;
  color: #ffb5ce;
  font-size: 34px;
  transform: rotate(12deg);
}

.oe-footer__cup {
  top: 48px;
  right: 2px;
  color: #ffc978;
  font-size: 28px;
  opacity: 0.65;
}

.oe-footer__puzzle {
  top: 84px;
  right: 64px;
  color: #9ed2ff;
  font-size: 32px;
  opacity: 0.75;
}

.oe-footer__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.oe-footer__dot--blue {
  top: 34px;
  left: 18px;
  background: #8ed0ff;
}

.oe-footer__dot--purple {
  top: 78px;
  left: 34px;
  border: 2px solid #b56cff;
}

.oe-footer__dot--yellow {
  top: 106px;
  right: 0;
  background: #ffd989;
}

.oe-footer__bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px 24px;
  border-top: 1px solid #e8edf5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #68778c;
  font-size: 13.5px;
  font-weight: 500;
}

.oe-footer__shield {
  color: #0a95ff;
  font-size: 20px;
  line-height: 1;
}

/* Tablet */
@media (max-width: 1024px) {
  .oe-footer__inner {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px 26px;
    padding-top: 38px;
  }

  .oe-footer__brand {
    grid-column: 1 / -1;
  }

  .oe-footer__divider,
  .oe-footer__decor {
    display: none;
  }

  .oe-footer__desc br {
    display: none;
  }
}

/* Mobil */
@media (max-width: 720px) {
  .oe-footer__inner {
    grid-template-columns: 1fr;
    padding: 34px 20px 22px;
    gap: 24px;
  }

  .oe-footer__logoImg {
    max-width: 100%;
  }

  .oe-footer__desc {
    font-size: 14.5px;
  }

  .oe-footer__col h3 {
    margin-bottom: 12px;
    font-size: 16px;
  }

  .oe-footer__col a {
    min-height: 36px;
    font-size: 15px;
  }

  .oe-footer__bottom {
    padding: 16px 20px 22px;
    font-size: 12.5px;
    text-align: center;
    flex-wrap: wrap;
  }
}

/*
 * Tablet + mobil header / hamburger menü
 * Eklenti CSS’i (768px) nav’ı sağda dar kutu + top:58px ile konumlar; tema burada
 * daha yüksek özgüllük ve !important ile header satırının hemen altında tam genişliğe
 * yakın açılır panel kullanır (hero ortasına “yüzen” dar kutu davranışı kalkar).
 */
@media (max-width: 900px) {
  .oe-public-header.oe-tp-pubHeader {
    position: sticky;
    top: 0;
    z-index: 200;
    overflow: visible;
  }

  .oe-tp-pubHeader__inner {
    min-height: 68px;
    padding-left: 14px;
    padding-right: 14px;
    gap: 10px;
    position: relative;
    z-index: 1;
    max-width: none;
  }

  .oe-siteHeader__inner { flex-direction: column; align-items: flex-start; }
  .oe-nav__menu { flex-wrap: wrap; }

  .oe-tp-pubBrand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .oe-tp-pubBrand__img { height: 64px; max-height: 64px; }

  .oe-tp-pubNav__toggle {
    display: inline-flex !important;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .oe-public-header.oe-tp-pubHeader .oe-tp-pubNav {
    display: none !important;
    position: absolute !important;
    left: 12px !important;
    right: 12px !important;
    top: calc(100% + 8px) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    transform: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 14px !important;
    gap: 10px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(37, 99, 235, 0.14) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 48px rgba(38, 71, 140, 0.16) !important;
    max-height: min(70dvh, calc(100dvh - 120px)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 210 !important;
    box-sizing: border-box !important;
  }

  .oe-public-header.oe-tp-pubHeader .oe-tp-pubNav.is-open {
    display: flex !important;
  }

  .oe-public-header.oe-tp-pubHeader .oe-tp-pubNav__link {
    min-height: 44px;
    padding: 8px 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .oe-public-header.oe-tp-pubHeader .oe-tp-pubNav__cta {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }

  .oe-public-header.oe-tp-pubHeader .oe-tp-pubNav__sep {
    display: none !important;
  }

  body.admin-bar .oe-public-header.oe-tp-pubHeader {
    top: 32px;
  }
}

@media screen and (max-width: 782px) {
  body.admin-bar .oe-public-header.oe-tp-pubHeader {
    top: 46px;
  }
}

