/* ========================================
   MÜŞTERİ AKTİVİTE SLİDER - GALAKSİ TEMASI
   ======================================== */

/* Ana Container - Sol Alt Köşe Sabit */
.customer-activity-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    width: 320px;
    pointer-events: none;
}

/* Slide Container */
.activity-slide-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, 
        rgba(15, 22, 40, 0.95) 0%, 
        rgba(25, 35, 60, 0.95) 50%,
        rgba(15, 22, 40, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(102, 126, 234, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    pointer-events: auto;
}

/* Galaksi Arka Plan Efekti */
.activity-slide-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(118, 75, 162, 0.12) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Yıldız Parlaması Efekti */
.activity-slide-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='10' cy='10' r='0.5' fill='%23ffffff' opacity='0.3'/%3E%3Ccircle cx='30' cy='45' r='0.3' fill='%23667eea' opacity='0.5'/%3E%3Ccircle cx='70' cy='20' r='0.4' fill='%23764ba2' opacity='0.4'/%3E%3Ccircle cx='85' cy='75' r='0.3' fill='%23ffffff' opacity='0.3'/%3E%3Ccircle cx='50' cy='85' r='0.5' fill='%2300d4ff' opacity='0.4'/%3E%3C/svg%3E");
    animation: starsTwinkle 8s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes starsTwinkle {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 0.6; transform: translateY(-3px); }
}

/* Aktivite Slide Wrapper */
.activity-slides-wrapper {
    position: relative;
    z-index: 1;
    min-height: 90px;
}

/* Tek Aktivite Slide */
.activity-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px 18px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 14px;
}

.activity-slide.active {
    opacity: 1;
    transform: translateY(0);
}

.activity-slide.exit {
    opacity: 0;
    transform: translateY(-20px);
}

/* Aktivite İkon Container */
.activity-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* İkon Türlerine Göre Renkler */
.activity-icon.order {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.activity-icon.support {
    background: linear-gradient(135deg, #00d4ff 0%, #0095ff 100%);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.activity-icon.domain {
    background: linear-gradient(135deg, #00ff7f 0%, #00c853 100%);
    box-shadow: 0 4px 15px rgba(0, 255, 127, 0.4);
}

.activity-icon.software {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.activity-icon.hosting {
    background: linear-gradient(135deg, #f7b731 0%, #fa8231 100%);
    box-shadow: 0 4px 15px rgba(247, 183, 49, 0.4);
}

.activity-icon.server {
    background: linear-gradient(135deg, #a55eea 0%, #8854d0 100%);
    box-shadow: 0 4px 15px rgba(165, 94, 234, 0.4);
}

.activity-icon.payment {
    background: linear-gradient(135deg, #20bf6b 0%, #0fb9b1 100%);
    box-shadow: 0 4px 15px rgba(32, 191, 107, 0.4);
}

.activity-icon.signup {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    box-shadow: 0 4px 15px rgba(253, 121, 168, 0.4);
}

.activity-icon i {
    color: #ffffff;
    font-size: 18px;
    position: relative;
    z-index: 1;
}

/* İkon Parıltı Efekti */
.activity-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 40%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 60%);
    animation: iconShine 3s ease-in-out infinite;
}

@keyframes iconShine {
    0%, 100% { transform: translateX(-100%) rotate(45deg); }
    50% { transform: translateX(100%) rotate(45deg); }
}

/* Aktivite İçerik */
.activity-content {
    flex: 1;
    min-width: 0;
}

/* Müşteri Adı */
.activity-customer {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.activity-customer .verified {
    color: #00d4ff;
    font-size: 12px;
}

/* Aktivite Açıklaması */
.activity-action {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.activity-action strong {
    color: #00d4ff;
    font-weight: 600;
}

/* Zaman Damgası */
.activity-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.activity-time i {
    font-size: 10px;
    color: rgba(102, 126, 234, 0.7);
}

/* Canlı Gösterge */
.activity-live-indicator {
    position: absolute;
    top: 12px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #00ff7f;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 255, 127, 0.6);
}

@keyframes livePulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1); 
        box-shadow: 0 0 10px rgba(0, 255, 127, 0.6);
    }
    50% { 
        opacity: 0.6; 
        transform: scale(0.85); 
        box-shadow: 0 0 5px rgba(0, 255, 127, 0.3);
    }
}

.live-text {
    font-size: 10px;
    color: rgba(0, 255, 127, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Progress Bar */
.activity-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #00d4ff 100%);
    border-radius: 0 0 16px 16px;
    animation: progressSlide 8s linear infinite;
    z-index: 2;
}

@keyframes progressSlide {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Alt Bilgi Bandı */
.activity-footer-band {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    position: relative;
    z-index: 1;
}

.activity-counter {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.activity-counter span {
    color: #00d4ff;
    font-weight: 700;
}

/* Hover Efektleri */
.activity-slide-container:hover {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(102, 126, 234, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Widget Kapatma Butonu */
.activity-close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.activity-slide-container:hover .activity-close-btn {
    opacity: 1;
}

.activity-close-btn i {
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
}

.activity-close-btn:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    transform: rotate(90deg) scale(1.1);
}

/* Mobil Responsive */
@media (max-width: 768px) {
    /* Hide widget on mobile devices */
    .customer-activity-widget {
        display: none !important;
        bottom: 15px;
        left: 10px;
        right: 10px;
        width: auto;
        max-width: 320px;
    }
    
    .activity-slide {
        padding: 14px 16px;
        gap: 12px;
    }
    
    .activity-icon {
        width: 40px;
        height: 40px;
    }
    
    .activity-icon i {
        font-size: 16px;
    }
    
    .activity-customer {
        font-size: 13px;
    }
    
    .activity-action {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .customer-activity-widget {
        display: none !important;
        bottom: 10px;
        left: 8px;
        right: 8px;
    }
    
    .activity-footer-band {
        padding: 6px 14px;
    }
}

/* Animasyon Giriş */
.customer-activity-widget {
    animation: widgetSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes widgetSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Galaksi Nebula Efekti */
.nebula-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 0% 100%, rgba(102, 126, 234, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 100% 0%, rgba(118, 75, 162, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
    animation: nebulaFloat 10s ease-in-out infinite alternate;
}

@keyframes nebulaFloat {
    0% { opacity: 0.5; }
    100% { opacity: 0.8; }
}
