/* DostYazilim V9 — notification center and daily wheel */
.notification-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 41px;
  padding: 0 11px;
  border: 1px solid #344058;
  border-radius: 10px;
  background: #101624;
  color: #dbe3ef;
  font: inherit;
  font-size: .82rem;
  font-weight: 750;
  cursor: pointer;
}

.notification-trigger:hover {
  border-color: #665293;
  background: #171329;
}

.notification-trigger b {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 5px;
  border-radius: 7px;
  background: #8b5cf6;
  color: #fff;
  font-size: .68rem;
}

.notification-trigger.is-read b {
  background: #273149;
  color: #aab5c8;
}

.notification-backdrop,
.wheel-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  visibility: hidden;
  opacity: 0;
  background: rgba(2, 5, 11, .82);
  backdrop-filter: blur(10px);
  transition: opacity .25s ease, visibility .25s ease;
}

.notification-backdrop.open,
.wheel-modal.open {
  visibility: visible;
  opacity: 1;
}

.notification-center {
  position: fixed;
  z-index: 130;
  top: 0;
  right: 0;
  width: min(430px, 100vw);
  height: 100vh;
  padding: 24px;
  overflow-y: auto;
  border-left: 1px solid #35425b;
  background: #090e18;
  box-shadow: -28px 0 80px rgba(0, 0, 0, .52);
  transform: translateX(104%);
  transition: transform .32s ease;
}

.notification-center.open {
  transform: translateX(0);
}

.notification-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #273149;
}

.notification-head span,
.wheel-kicker {
  color: #22d3ee;
  font-size: .70rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.notification-head h2 {
  margin: 4px 0 0;
  font-size: 1.55rem;
  letter-spacing: -.035em;
}

.notification-head button,
.wheel-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 0;
  border: 1px solid #3a4660;
  border-radius: 10px;
  background: #111827;
  color: #c9d2e1;
  font-size: 1.35rem;
  cursor: pointer;
}

.notification-head button:hover,
.wheel-close:hover {
  border-color: #8b5cf6;
  color: #fff;
}

.notification-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.notification-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid #2d3850;
  border-radius: 13px;
  background: #101624;
}

.notification-item.type-campaign {
  border-color: #5d478b;
}

.notification-item.type-warning {
  border-color: #765727;
}

.notification-item.type-success {
  border-color: #226947;
}

.notification-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #1c2638;
  color: #22d3ee;
  font-weight: 900;
}

.type-campaign .notification-icon {
  background: #241a3b;
  color: #c7b4ff;
}

.type-warning .notification-icon {
  background: #302411;
  color: #ffbf55;
}

.type-success .notification-icon {
  background: #102a20;
  color: #38dc8e;
}

.notification-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.notification-meta b {
  font-size: .94rem;
}

.notification-meta em {
  padding: 3px 6px;
  border-radius: 5px;
  background: #2a1f45;
  color: #cab7ff;
  font-size: .63rem;
  font-style: normal;
  font-weight: 850;
}

.notification-item p {
  margin: 5px 0 8px;
  color: #aab5c7;
  font-size: .86rem;
  line-height: 1.55;
}

.notification-item a {
  color: #cbbdff;
  font-size: .82rem;
  font-weight: 800;
}

.notification-item time {
  display: block;
  margin-top: 9px;
  color: #66728a;
  font-size: .70rem;
}

.wheel-launcher {
  position: fixed;
  z-index: 45;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: 42px auto;
  grid-template-rows: auto auto;
  column-gap: 11px;
  align-items: center;
  min-width: 188px;
  padding: 11px 15px 11px 11px;
  border: 1px solid #7959b5;
  border-radius: 15px;
  background: #151025;
  color: #fff;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .52);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}

.wheel-launcher:hover {
  transform: translateY(-4px);
  border-color: #9e7bdd;
}

.wheel-launcher > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #8b5cf6;
  color: #fff;
  font-size: 1.3rem;
}

.wheel-launcher b {
  align-self: end;
  text-align: left;
  font-size: .88rem;
}

.wheel-launcher small {
  align-self: start;
  color: #9eabc0;
  font-size: .68rem;
}

.wheel-modal {
  display: grid;
  place-items: center;
  padding: 24px;
}

.wheel-dialog {
  position: relative;
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(360px, 1fr);
  gap: 28px;
  align-items: center;
  padding: 36px;
  border: 1px solid #485572;
  border-radius: 22px;
  background: #0a101b;
  box-shadow: 0 40px 110px rgba(0, 0, 0, .72);
}

.wheel-close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
}

.wheel-copy h2 {
  margin: 7px 0 10px;
  font-size: clamp(2.15rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.wheel-copy p {
  margin: 0;
  color: #aab4c7;
}

.wheel-copy ul {
  display: grid;
  gap: 7px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.wheel-copy li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #cbd3df;
  font-size: .84rem;
}

.wheel-copy li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22d3ee;
}

.wheel-game {
  display: grid;
  justify-items: center;
  gap: 15px;
}

.wheel-stage {
  position: relative;
  width: min(390px, 72vw);
  aspect-ratio: 1;
  padding: 9px;
  border: 1px solid #52617e;
  border-radius: 50%;
  background: #111827;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .52);
}

.wheel-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: transform 5.2s cubic-bezier(.12, .76, .18, 1);
}

.wheel-pointer {
  position: absolute;
  z-index: 4;
  top: -12px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 30px solid #fff;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, .55));
  transform: translateX(-50%);
}

.wheel-hub {
  position: absolute;
  z-index: 3;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 8px solid #0a101b;
  border-radius: 50%;
  background: #f8fafc;
  color: #111827;
  font-weight: 950;
  letter-spacing: -.05em;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .42);
}

.wheel-spin {
  min-width: 180px;
}

.wheel-spin:disabled {
  cursor: wait;
  opacity: .72;
}

.wheel-result {
  min-height: 0;
  width: 100%;
  text-align: center;
}

.wheel-result.visible {
  padding: 13px 15px;
  border: 1px solid #4b3d70;
  border-radius: 11px;
  background: #171329;
}

.wheel-result strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.wheel-result span {
  display: block;
  margin-top: 3px;
  color: #b8c2d2;
  font-size: .82rem;
}

.wheel-result code {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 9px;
  border: 1px dashed #8b5cf6;
  border-radius: 6px;
  color: #d8ccff;
}

body.overlay-open {
  overflow: hidden;
}

@media (min-width: 1641px) {
  .wheel-launcher {
    right: 184px;
  }
}

@media (max-width: 1120px) and (min-width: 821px) {
  .notification-trigger > span {
    display: none;
  }
}

@media (max-width: 820px) {
  .site-header nav .notification-trigger {
    width: 100%;
    justify-content: space-between;
    margin-top: 4px;
  }

  .site-header nav .notification-trigger > span {
    display: inline;
  }

  .wheel-dialog {
    max-height: calc(100vh - 28px);
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 20px 22px;
    overflow-y: auto;
  }

  .wheel-copy {
    padding-right: 42px;
  }

  .wheel-copy ul {
    display: none;
  }

  .wheel-copy h2 {
    font-size: 2rem;
  }

  .wheel-stage {
    width: min(340px, 78vw);
  }
}

@media (max-width: 540px) {
  .notification-center {
    padding: 18px 14px;
  }

  .notification-item {
    padding: 13px;
  }

  .wheel-launcher {
    right: 12px;
    bottom: 12px;
    min-width: 0;
    padding: 8px;
  }

  .wheel-launcher b,
  .wheel-launcher small {
    display: none;
  }

  .wheel-launcher > span {
    grid-row: auto;
  }

  .wheel-modal {
    padding: 8px;
  }

  .wheel-dialog {
    border-radius: 16px;
  }

  .wheel-stage {
    width: min(300px, 78vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wheel-stage canvas {
    transition-duration: .01ms;
  }
}
