/* -------------------- Yazıyor Efekti -------------------- */

/* Oda yazıyor — absolute: layout'u kaydırmaz, input'un üstünde yüzer */
#room_typing_indicator {
    position: absolute;
    bottom: 100%;
    left: 8px;
    padding: 5px 14px;
    font-size: 11px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    z-index: 10;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 20px;
    white-space: nowrap;
    margin-bottom: 4px;
}

/* Özel yazıyor */
#ptyping {
    padding: 5px 12px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 20px;
    margin: 4px 8px;
}
#ptyping_avatar {
    display: flex;
    align-items: center;
}
#ptyping_avatar img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}
#ptyping_text {
    display: flex;
    align-items: center;
    gap: 4px;
}
#ptyping_name {
    color: #fff;
    font-size: 11px;
}

/* Zıplayan noktalar */
.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.typing-dots .dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out;
    box-shadow: 0 0 5px #fff, 0 0 10px rgba(255, 255, 255, 0.8);
}
.typing-dots .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dots .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 80%, 100% { opacity: 0.35; transform: scale(0.8);  box-shadow: 0 0 3px #fff; }
    40%           { opacity: 1;    transform: scale(1.2);  box-shadow: 0 0 8px #fff, 0 0 16px rgba(255,255,255,0.6); }
}
.reaction-container {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    margin-top: 5px;
    user-select: none;
}
.react-trigger {
    display: inline-flex;
    align-items: center;
    background: #f0f2f5;
    padding: 2px 8px;
    border-radius: 18px;
    cursor: pointer;
    min-width: 35px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.react-trigger:hover {
    background: #e4e6eb;
    transform: scale(1.05);
}
.active-icons-list {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
}
.active-icons-list img {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    margin-left: -5px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    background: #fff;
    position: relative;
    object-fit: cover;
}
.total-count {
    font-size: 12px;
    margin-left: 6px;
    color: #65676b;
    font-weight: 600;
}
.react-box-popup {
    display: none;
    position: fixed;
    background: white;
    border-radius: 30px;
    padding: 4px 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    flex-direction: row;
    gap: 4px;
    max-width: calc(100vw - 20px);
    flex-wrap: wrap;
}
.react-box-popup.show {
    display: flex;
    animation: bounceIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.react-icon-item {
    padding: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.react-icon-item img {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: block;
    object-fit: contain;
}
img[src*="clap.gif"] {
    object-fit: cover !important;
    transform: scale(2.0);
}
.react-icon-item:hover {
    transform: scale(1.4) translateY(-8px);
}

@media (max-width: 480px) {
    .react-icon-item img {
        width: 28px;
        height: 28px;
    }
    .react-icon-item {
        padding: 3px;
    }
    .react-box-popup {
        gap: 2px;
        padding: 4px 6px;
        border-radius: 24px;
    }
    .react-icon-item:hover {
        transform: scale(1.3) translateY(-6px);
    }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.5) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.react-panel, .reaction-wrapper, .main-react-btn { display: none !important; }
.brd_rank_star {
  display: inline-block;
  flex: 0 0 auto;
  position: relative;
  top: 2px;
}

.brd_rank_star::after {
    content: "";
    position: absolute;
    top: -30%;
    left: -70%;
    width: 55%;
    height: 160%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0.0) 35%,
        rgba(255,255,255,0.9) 50%,
        rgba(255,255,255,0.0) 65%,
        transparent 100%
    );
    transform: skewX(-25deg);
    animation: starShine 5s ease-in-out infinite;
}

@keyframes glowTriangleRight {
    0% {
        border-left-color: #ff4081;
        filter: drop-shadow(0 0 3px rgba(255, 64, 129, 0.6));
        transform: translateY(-50%) scale(1);
    }
    50% {
        border-left-color: #ff79a9;
        filter: drop-shadow(0 0 12px rgba(255, 64, 129, 0.9));
        transform: translateY(-50%) scale(1.05);
    }
    100% {
        border-left-color: #ff4081;
        filter: drop-shadow(0 0 3px rgba(255, 64, 129, 0.6));
        transform: translateY(-50%) scale(1);
    }
}
@keyframes neonGlowRight {
    0% {
        border-left-color: #ff4081;
        filter: drop-shadow(0 0 3px #ff4081)
                drop-shadow(0 0 6px rgba(255, 64, 129, 0.5));
    }
    50% {
        border-left-color: #ffffff;
        filter: drop-shadow(0 0 10px #ff79a9)
                drop-shadow(0 0 20px rgba(255, 121, 169, 0.8))
                drop-shadow(0 0 30px rgba(255, 121, 169, 0.3));
    }
    100% {
        border-left-color: #ff4081;
        filter: drop-shadow(0 0 3px #ff4081)
                drop-shadow(0 0 6px rgba(255, 64, 129, 0.5));
    }
}