/* Referans yarışması site tanıtımı */
.ref-promo-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ref-promo-overlay[hidden] { display: none !important; }
.ref-promo-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}
.ref-promo-modal {
  position: relative;
  z-index: 1;
  max-width: 420px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 180, 80, 0.35);
  animation: ref-promo-pop 0.45s ease-out;
}
@keyframes ref-promo-pop {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.ref-promo-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.ref-promo-modal__link {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(145deg, #1a1208 0%, #0d0a06 45%, #1f1509 100%);
}
.ref-promo-modal__link:hover .ref-promo-modal__cta { text-decoration: underline; }
.ref-promo-modal__visual {
  position: relative;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 80%, rgba(255, 120, 40, 0.45) 0%, transparent 65%),
    linear-gradient(180deg, rgba(255, 200, 100, 0.12) 0%, transparent 100%);
}
.ref-promo-modal__icon {
  font-size: 72px;
  filter: drop-shadow(0 8px 24px rgba(255, 140, 0, 0.5));
  animation: ref-promo-pulse 2s ease-in-out infinite;
}
@keyframes ref-promo-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.ref-promo-modal__glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 42, 0.35) 0%, transparent 70%);
  pointer-events: none;
}
.ref-promo-modal__body { padding: 20px 22px 24px; text-align: center; }
.ref-promo-modal__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffb347;
}
.ref-promo-modal__title {
  margin: 0 0 10px;
  font-family: Cinzel, serif;
  font-size: 1.35rem;
  color: #ffd89b;
}
.ref-promo-modal__text {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
  color: #c8c0b0;
}
.ref-promo-modal__date {
  margin: 0 0 14px;
  font-size: 13px;
  color: #9a9080;
}
.ref-promo-modal__date a { text-decoration: underline; }
.ref-promo-modal__cta {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  color: #ff8c2a;
}

.ref-promo-float {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 12px 12px;
  max-width: 220px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #3d2810 0%, #1a1008 100%);
  border: 1px solid rgba(255, 160, 60, 0.45);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.ref-promo-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 100, 0, 0.25);
}
.ref-promo-float[hidden] { display: none !important; }
.ref-promo-float__icon { font-size: 28px; line-height: 1; }
.ref-promo-float__text { display: flex; flex-direction: column; line-height: 1.25; }
.ref-promo-float__text strong { font-size: 13px; color: #ffd89b; }
.ref-promo-float__text small { font-size: 11px; color: #b0a898; }
.ref-promo-float__close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #333;
  color: #ccc;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.ref-promo-root:has(.ref-promo-float[hidden]) .ref-promo-float__close { display: none; }

@media (max-width: 480px) {
  .ref-promo-modal { max-width: 100%; }
  .ref-promo-float { right: 10px; bottom: 12px; max-width: 180px; padding: 10px; }
  .ref-promo-float__text strong { font-size: 12px; }
}
