/* =========================================================
   BİASDER / YARIŞMACI
   DUYURU BİLDİRİMİ
   ========================================================= */


/* =========================================================
   NORMAL DURUM
   Duyuru yoksa / okunmuşsa:
   LACİVERT + TURKUAZ
   ========================================================= */

body[data-roles="competitor"]:not(.signed-out)
.yc-hero #ycAnnouncementBell {
  position:absolute!important;
  top:14px;
  right:14px;
  z-index:8;

  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:7px;

  min-height:42px;
  padding:9px 14px;

  border:1px solid #21d8f2!important;
  border-radius:11px!important;

  background:linear-gradient(
    135deg,
    #065588,
    #032849
  )!important;

  color:#fff!important;

  font:
    800 13px/1.2
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif!important;

  letter-spacing:0!important;
  cursor:pointer;

  box-shadow:
    inset 0 -3px #16ddf3,
    0 0 18px #00c9f580!important;

  text-shadow:none!important;
}


/* =========================================================
   NORMAL ZİL İKONU
   ========================================================= */

body[data-roles="competitor"]:not(.signed-out)
.yc-hero #ycAnnouncementBell .yc-bell-symbol {
  display:inline-grid;
  place-items:center;

  flex:0 0 23px;
  width:23px;
  height:23px;

  border-radius:7px;

  background:linear-gradient(
    145deg,
    #079adc,
    #064b84
  );

  color:#fff;

  box-shadow:
    0 0 10px #00c6f666;

  transform-origin:50% 10%;
}


/* =========================================================
   GİZLİ DURUM
   ========================================================= */

body[data-roles="competitor"]:not(.signed-out)
.yc-hero #ycAnnouncementBell[hidden],

body.signed-out #ycAnnouncementBell {
  display:none!important;
}


/* =========================================================
   YENİ DUYURU VARSA
   BUTON LACİVERT/TURKUAZ KALIR
   YAZI SARI OLUR
   ========================================================= */

body[data-roles="competitor"]:not(.signed-out)
.yc-hero #ycAnnouncementBell.has-unread {
  color:#ffd742!important;
  animation:none!important;
}


/* =========================================================
   YENİ DUYURU VARSA
   ZİL KIRMIZI + SALLANIR
   ========================================================= */

body[data-roles="competitor"]:not(.signed-out)
.yc-hero
#ycAnnouncementBell.has-unread
.yc-bell-symbol {
  background:linear-gradient(
    145deg,
    #ff4545,
    #c90000
  );

  color:#fff;

  box-shadow:
    0 0 12px #ff2020cc;

  animation:
    ycAnnouncementBellShake .72s ease-in-out infinite;
}


/* =========================================================
   ZİL SALLANMA
   ========================================================= */

@keyframes ycAnnouncementBellShake {

  0%,
  100% {
    transform:rotate(0deg);
  }

  15% {
    transform:rotate(-18deg);
  }

  30% {
    transform:rotate(16deg);
  }

  45% {
    transform:rotate(-13deg);
  }

  60% {
    transform:rotate(10deg);
  }

  75% {
    transform:rotate(-6deg);
  }

  90% {
    transform:rotate(3deg);
  }
}


/* =========================================================
   FOCUS
   ========================================================= */

body[data-roles="competitor"]:not(.signed-out)
.yc-hero #ycAnnouncementBell:focus-visible {
  outline:3px solid #fff;
  outline-offset:3px;
}


/* =========================================================
   MOBİL
   ========================================================= */

@media (max-width:650px) {

  body[data-roles="competitor"]:not(.signed-out)
  .yc-hero #ycAnnouncementBell {
    top:8px;
    right:8px;

    min-height:34px;
    padding:6px 10px;

    gap:5px;

    font-size:11px!important;
  }

  body[data-roles="competitor"]:not(.signed-out)
  .yc-hero #ycAnnouncementBell .yc-bell-symbol {
    width:21px;
    height:21px;
    flex-basis:21px;
  }
}


/* =========================================================
   HAREKET AZALTMA TERCİHİ
   Yeni duyuru varsa zil kırmızı kalır ama sallanmaz
   ========================================================= */

@media (prefers-reduced-motion:reduce) {

  body[data-roles="competitor"]:not(.signed-out)
  .yc-hero
  #ycAnnouncementBell.has-unread
  .yc-bell-symbol {
    animation:none!important;
  }
}


/* =========================================================
   YARIŞMACI DUYURU OKUMA KARTLARI
   ========================================================= */

body[data-roles="competitor"]
#announcements
#announcementCenter
.announcement-item {
  background:#f4faff!important;
  color:#122d47!important;

  border:1px solid #c8e0ed!important;
  border-left:4px solid #138abd!important;
}


/* DUYURU BAŞLIĞI */

body[data-roles="competitor"]
#announcements
#announcementCenter
.announcement-item h3 {
  color:#082e4c!important;
  opacity:1!important;

  font-weight:800!important;
  line-height:1.4!important;

  overflow-wrap:anywhere;
}


/* DUYURU METNİ */

body[data-roles="competitor"]
#announcements
#announcementCenter
.announcement-item p.preserve {
  color:#183a55!important;
  opacity:1!important;

  font-size:1rem!important;
  line-height:1.65!important;

  white-space:pre-wrap!important;
  overflow-wrap:anywhere;
}


/* DUYURU ÜST BİLGİSİ */

body[data-roles="competitor"]
#announcements
#announcementCenter
.announcement-item p.eyebrow {
  color:#426884!important;
  opacity:1!important;
}