/* ============================================================
   Ziyaretçi Sayacı Stilleri
   Arka plan: Şeffaf
   Header'ın SAĞ tarafına hizalı
   ============================================================ */

#visitor-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: #990000;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.4;
    user-select: none;
    white-space: nowrap;
    font-weight: 500;
}

/* Yeşil yanıp sönen nokta */
#visitor-counter .pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse-dot 1.5s infinite;
    flex-shrink: 0;
}

/* Kişi sayısı – yeşil ve yanıp sönen */
#visitor-counter #visitor-count {
    color: #22c55e;
    font-size: 18px;
    font-weight: 700;
    animation: pulse-count 1.5s infinite;
    min-width: 1ch;
    text-align: center;
}

/* ============================================================
   Animasyonlar
   ============================================================ */

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

@keyframes pulse-count {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 6px rgba(34, 197, 94, 0.9);
    }
    50% {
        opacity: 0.6;
        text-shadow: 0 0 12px rgba(34, 197, 94, 1);
    }
}

/* ============================================================
   MOBİL UYUM
   ============================================================ */
@media (max-width: 768px) {
    #visitor-counter {
        padding: 3px 10px;
        font-size: 13px;
        gap: 4px;
    }
    
    #visitor-counter #visitor-count {
        font-size: 13px;
    }
    
    #visitor-counter .pulse-dot {
        width: 6px;
        height: 6px;
    }
}

/* Açık temalı siteler için otomatik uyum (isteğe bağlı) */
/* @media (prefers-color-scheme: light) {
    #visitor-counter {
        color: #334155;
    }
    #visitor-counter #visitor-count {
        color: #16a34a;
    }
} */