/* Anasayfa — flash fırsat + son satışlar + canlı toast */

/* —— Flash —— */
.uo-flash-section {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
.uo-flash {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 80, 60, 0.18), rgba(255, 180, 40, 0.1) 42%, rgba(12, 18, 28, 0.55)),
    rgba(10, 14, 22, 0.55);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 16px 36px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}
.uo-flash__badge {
  position: absolute;
  top: 10px;
  left: 14px;
  z-index: 2;
  padding: 3px 10px;
  border-radius: 6px;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  box-shadow: 0 6px 14px rgba(239, 68, 68, 0.35);
}
.uo-flash__media {
  position: relative;
  flex: 0 0 auto;
  width: 88px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 10px;
}
.uo-flash__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.uo-flash__pct {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: #e11d48;
}
.uo-flash__body {
  flex: 1 1 180px;
  min-width: 0;
  padding-top: 8px;
}
.uo-flash__title {
  margin: 0 0 4px;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}
.uo-flash__title a {
  color: #fff;
  text-decoration: none;
}
.uo-flash__title a:hover {
  color: #66c0f4;
}
.uo-flash__sub {
  margin: 0 0 8px;
  font-size: 13px;
  color: rgba(199, 213, 224, 0.85);
}
.uo-flash__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
}
.uo-flash__price del {
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
}
.uo-flash__price ins {
  text-decoration: none;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
}
.uo-flash__timer {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
.uo-flash__tick {
  min-width: 52px;
  padding: 8px 6px;
  border-radius: 8px;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.uo-flash__tick b {
  display: block;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #66c0f4;
  line-height: 1;
}
.uo-flash__tick span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(199, 213, 224, 0.7);
}
.uo-flash__cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 140px;
}
.uo-flash__buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0b1520;
  background: linear-gradient(180deg, #8fd4ff, #66c0f4);
  box-shadow: 0 8px 20px rgba(102, 192, 244, 0.35);
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease;
}
.uo-flash__buy:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.uo-flash__link {
  text-align: center;
  font-size: 13px;
  color: rgba(199, 213, 224, 0.9);
  text-decoration: none;
}
.uo-flash__link:hover {
  color: #66c0f4;
}

/* —— Ticker —— */
.uo-ticker-section {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}
.uo-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 6px 10px 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 22, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.uo-ticker__label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #66c0f4;
  white-space: nowrap;
}
.uo-ticker__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  animation: uoPulse 1.6s ease-out infinite;
}
@keyframes uoPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.uo-ticker__track-wrap {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.uo-ticker__track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: uoTicker 42s linear infinite;
}
.uo-ticker:hover .uo-ticker__track {
  animation-play-state: paused;
}
@keyframes uoTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.uo-ticker__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #c7d5e0;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.uo-ticker__item:hover {
  background: rgba(102, 192, 244, 0.12);
  border-color: rgba(102, 192, 244, 0.35);
  color: #fff;
}
.uo-ticker__item strong {
  color: #fff;
  font-weight: 700;
}
.uo-ticker__item em {
  font-style: normal;
  color: rgba(102, 192, 244, 0.9);
  font-size: 12px;
}

/* —— Live toast —— */
.uo-live-toast {
  position: fixed;
  left: 18px;
  bottom: 22px;
  z-index: 1200;
  display: flex;
  align-items: stretch;
  max-width: min(360px, calc(100vw - 28px));
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 18, 28, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.uo-live-toast.is-in {
  opacity: 1;
  transform: translateY(0);
}
.uo-live-toast__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 10px 10px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  flex: 1 1 auto;
}
.uo-live-toast__img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex: 0 0 auto;
  background: #0a0e15;
}
.uo-live-toast__txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.uo-live-toast__name {
  color: #fff;
  font-size: 13px;
}
.uo-live-toast__prod {
  color: #c7d5e0;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uo-live-toast__when {
  font-style: normal;
  font-size: 11px;
  color: #66c0f4;
}
.uo-live-toast__close {
  flex: 0 0 auto;
  width: 36px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 20px;
  cursor: pointer;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.uo-live-toast__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 767.98px) {
  .uo-flash {
    display: grid;
    grid-template-columns: 84px 1fr;
    grid-template-areas:
      "badge badge"
      "media body"
      "timer timer"
      "cta cta";
    gap: 10px 12px;
    padding: 12px;
    align-items: start;
  }
  .uo-flash__badge {
    grid-area: badge;
    position: static;
    top: auto;
    left: auto;
    display: inline-flex;
    width: fit-content;
    margin: 0;
  }
  .uo-flash__media {
    grid-area: media;
    width: 84px;
    margin: 0;
  }
  .uo-flash__media img {
    aspect-ratio: 3 / 4;
  }
  .uo-flash__body {
    grid-area: body;
    padding-top: 0;
    min-width: 0;
  }
  .uo-flash__title {
    font-size: 16px;
    margin: 0 0 4px;
  }
  .uo-flash__sub {
    font-size: 12px;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .uo-flash__price {
    gap: 8px;
  }
  .uo-flash__price ins {
    font-size: 20px;
  }
  .uo-flash__price del {
    font-size: 12px;
  }
  .uo-flash__timer {
    grid-area: timer;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .uo-flash__tick {
    min-width: 0;
    width: 100%;
    padding: 8px 4px;
  }
  .uo-flash__tick b {
    font-size: 18px;
  }
  .uo-flash__cta {
    grid-area: cta;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
  }
  .uo-flash__buy {
    width: 100%;
    flex: none;
    min-height: 46px;
  }
  .uo-flash__link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #c7d5e0;
    font-size: 13px;
    font-weight: 650;
  }
  .uo-ticker__label {
    display: none;
  }
  .uo-live-toast {
    left: 12px;
    right: 12px;
    bottom: 14px;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .uo-ticker__track {
    animation: none;
  }
  .uo-ticker__pulse {
    animation: none;
  }
  .uo-live-toast {
    transition: none;
  }
}
