
/* Genel stil */

.son-yazilar .author-avatar {
  opacity: 0;
  width: 0;
  height: 0;
  transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease;
}
.son-yazilar.loaded .author-avatar {
  opacity: 1;
  width: 20px; /* normal avatar boyutu */
  height: 20px;
  margin-right: 6px;
  border-radius: 50%;
  object-fit: cover;
}



.son-yazilar {
    background-color: #000;
    color: #fff;
    padding: 0.5rem 0;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.son-yazilar-container {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.son-yazilar-title {
    font-family: 'Share Tech Mono', monospace;
    color: #f5bc00;
    font-size: 1rem;
    text-transform: uppercase;
    text-shadow: 0 0 2px #000, 0 0 4px #fff;
    flex-shrink: 0;
}

.son-yazilar-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    flex-grow: 1;
}

/* Canvas efekti */
#tickerSmokeCanvas {
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:1;
    pointer-events:none;
}

/* Ticker ve parıltı */
.son-yazilar-ticker {
    position: relative;
    z-index: 2;
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    white-space: nowrap;
    animation: tickerScroll 95s linear infinite;
}

.son-yazilar-ticker li {
    position: relative;
    font-weight: bold;
}

/* Sadece başlıklara glow efektini uygula */
.son-yazilar-ticker li .ticker-title {
    position: relative;
    color: #fff; /* Temel yazı rengi */
    text-shadow:
      0 0 5px #ff0080,
      0 0 10px #ff0080,
      0 0 15px #ffdd00;
    animation: tickerGlow 1.5s ease-in-out infinite;
}

/* Glow animasyonu */
@keyframes tickerGlow {
  0%, 100% {
    text-shadow:
      0 0 5px #ff0080,
      0 0 10px #ff0080,
      0 0 15px #ffdd00;
  }
  25% {
    text-shadow:
      0 0 10px #00ff80,
      0 0 20px #00ff80,
      0 0 30px #00ddff;
  }
  50% {
    text-shadow:
      0 0 15px #ff00ff,
      0 0 25px #ff00ff,
      0 0 35px #ff0080;
  }
  75% {
    text-shadow:
      0 0 10px #00ddff,
      0 0 20px #00ddff,
      0 0 30px #00ff80;
  }
}
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.son-yazilar-ticker:hover { animation-play-state: paused; }

.ticker-title {
    font-weight: bold;
    font-family: 'Share Tech Mono', monospace;
    color: #fff;
    text-decoration: none;
}

.ticker-author {
    margin-left: 10px;
    font-family: 'Share Tech Mono', monospace;
    font-style: italic;
    color: #00ff00;
    text-decoration: none;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg,#d7d7d7,#f3f3f3,#aaa,#e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:0 0 2px rgba(255,255,255,0.3);
}

/* Avatarlar */
.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 5px;
    border: 2px solid transparent;
    background-image: linear-gradient(45deg,#d4af37,#f7c91b,#ffd700,#e0b000,#c49a00);
    background-origin: border-box;
    box-sizing: border-box;
    box-shadow: 0 0 8px 3px rgba(212,175,55,0.8);
    opacity: 0;              /* Başlangıçta gizli */
    transform: scale(1);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    animation: none;          /* başta animasyon yok */
}

.author-avatar.loaded {
    opacity: 1;
    animation: borderPulse 6s infinite;
}

@keyframes borderPulse {
    0% { background-image: linear-gradient(45deg,#d4af37,#f7c91b,#ffd700,#e0b000,#c49a00); }
    50% { background-image: linear-gradient(45deg,#f7c91b,#ffd700,#e0b000,#c49a00,#d4af37); }
    100% { background-image: linear-gradient(45deg,#d4af37,#f7c91b,#ffd700,#e0b000,#c49a00); }
}
