/* Kullanıcı Aktiflik Durumu Göstergeleri */

/* Avatar sağ alt köşe aktiflik durumu - Nokta şeklinde */
.activity-status {
	position: absolute;
    bottom: 9px;
    right: 226px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Online durumu - Canlı yeşil nokta */
.activity-status.online {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    animation: pulse-online 2s infinite, bounce-online 3s infinite;
}

/* Offline durumu - Yumuşak kırmızı nokta */
.activity-status.offline {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    animation: bounce-offline 4s infinite;
}

/* Hover efektleri */
.activity-status:hover {
    transform: scale(1.4) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    animation-play-state: paused;
}

.activity-status.online:hover {
    background: linear-gradient(135deg, #00ffaa, #00ff88);
}

.activity-status.offline:hover {
    background: linear-gradient(135deg, #ff8a8a, #ff6b6b);
}

/* Tooltip için */
.activity-status::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-bottom: 5px;
}

.activity-status::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 1px;
}

.activity-status:hover::after,
.activity-status:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Online pulse animasyonu */
@keyframes pulse-online {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(0, 255, 136, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

/* Online bounce animasyonu */
@keyframes bounce-online {
    0%, 100% {
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-2px);
    }
    50% {
        transform: translateY(0px);
    }
    75% {
        transform: translateY(-1px);
    }
}

/* Offline bounce animasyonu */
@keyframes bounce-offline {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-1px) scale(1.05);
    }
}

/* Eski status-indicator stilleri (artık kullanılmıyor) */
.status-indicator {
    position: relative;
    display: inline-block;
    margin-right: 6px;
}

.status-indicator .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

/* Online durumu - Yeşil (2 dakika içinde aktif) */
.status-indicator.online .status-dot {
    background-color: #28a745;
    animation: pulse-green 2s infinite;
}

/* Offline durumu - Kırmızı (2 dakikadan fazla pasif) */
.status-indicator.offline .status-dot {
    background-color: #dc3545;
}

/* Eski pulse animasyonu - artık kullanılmıyor */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* İlan kartları için position relative */
.ilan_div {
    position: relative;
}

/* Avatar container için position relative */
.listing-user-box .user-content {
    position: relative;
}

/* Avatar için position relative */
.listing-user-box .user-content img {
    position: relative;
}

/* İlan kartlarında aktiflik göstergesi */
.listing-card .user-info {
    position: relative;
    display: flex;
    align-items: center;
}

.listing-card .user-info .status-indicator {
    margin-right: 4px;
}

.listing-card .user-info .status-indicator .status-dot {
    width: 6px;
    height: 6px;
    border: 1px solid #fff;
}

/* Vitrin ilanlarında aktiflik göstergesi */
.featured-listing .user-info {
    position: relative;
    display: flex;
    align-items: center;
}

.featured-listing .user-info .status-indicator {
    margin-right: 4px;
}

.featured-listing .user-info .status-indicator .status-dot {
    width: 6px;
    height: 6px;
    border: 1px solid #fff;
}

/* Tooltip için */
.status-indicator {
    cursor: help;
}

.status-indicator[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

.status-indicator[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0,0,0,0.8);
    z-index: 1000;
    margin-bottom: 1px;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .activity-status {
        top: 6px;
        right: 6px;
        padding: 3px 6px;
        font-size: 10px;
    }
    
    .status-indicator .status-dot {
        width: 6px;
        height: 6px;
    }
    
    .listing-card .user-info .status-indicator .status-dot,
    .featured-listing .user-info .status-indicator .status-dot {
        width: 5px;
        height: 5px;
    }
}

/* Dark mode desteği */
@media (prefers-color-scheme: dark) {
    .status-indicator .status-dot {
        border-color: #333;
    }
    
    .status-indicator[title]:hover::after {
        background: rgba(255,255,255,0.9);
        color: #333;
    }
    
    .status-indicator[title]:hover::before {
        border-top-color: rgba(255,255,255,0.9);
    }
}
