/* Rozet Sayısı Badge Stilleri - Animasyonlu ve Efektli */

.badge-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.2;
    animation: badgeCountPulse 2s ease-in-out infinite;
    z-index: 1;
    vertical-align: middle;
}

/* Küçük Boyut */
.badge-count-small {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    border-radius: 16px;
    gap: 0.4rem;
    min-width: 2.8rem;
}

.badge-count-small .badge-count-icon {
    font-size: 1rem;
}

.badge-count-small .badge-count-number {
    font-size: 0.8rem;
    font-weight: 800;
}

/* Normal Boyut */
.badge-count-normal {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 18px;
}

.badge-count-normal .badge-count-icon {
    font-size: 1rem;
}

/* Büyük Boyut */
.badge-count-large {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 20px;
}

.badge-count-large .badge-count-icon {
    font-size: 1.2rem;
}

/* İkon */
.badge-count-icon {
    display: inline-block;
    font-size: 0.95rem;
    line-height: 1;
    animation: badgeCountRotate 3s ease-in-out infinite;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Sayı */
.badge-count-number {
    display: inline-block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-variant-numeric: tabular-nums;
}

/* Animasyonlar */
@keyframes badgeCountPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    }
}

@keyframes badgeCountRotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

@keyframes badgeCountShine {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Hover Efektleri */
.badge-count-badge:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    animation: none;
}

.badge-count-badge:hover .badge-count-icon {
    animation: badgeCountRotate 0.5s ease-in-out;
    transform: rotate(360deg);
}

/* Parlama Efekti */
.badge-count-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.badge-count-badge:hover::before {
    left: 100%;
}

/* Glow Efekti */
.badge-count-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    pointer-events: none;
}

.badge-count-badge:hover::after {
    width: 150%;
    height: 150%;
}

/* Sıfır rozet durumu */
.badge-count-zero {
    opacity: 0.85;
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    animation: none;
    box-shadow: 0 2px 6px rgba(156, 163, 175, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.badge-count-zero:hover {
    opacity: 1;
    box-shadow: 0 3px 10px rgba(156, 163, 175, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

/* Kullanıcı İsminin Yanında */
.question-author-info .badge-count-badge,
.answer-author-name-section .badge-count-badge,
.author-name-section .badge-count-badge {
    margin-left: 0.4rem;
    margin-right: 0;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 768px) {
    .badge-count-badge {
        padding: 0.2rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .badge-count-icon {
        font-size: 0.8rem;
    }
    
    .badge-count-number {
        font-size: 0.65rem;
    }
}

