/* Desktop versiyonu */
.fixed-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 260px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    z-index: 9999;
    font-family: Arial, sans-serif;
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px);}
    to { opacity: 1; transform: translateY(0);}
}

.fixed-widget-header {
    background: #0056CC;
    color: #fff;
    text-align: center;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
}

.fixed-widget-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
}

.fixed-widget-options button,
.fixed-widget-options a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
}
.btn-whatsapp:hover { background: #1ea955; }

.btn-phone {
    background: #007AFF;
    color: #fff;
}
.btn-phone:hover { background: #005BBB; }

.btn-randevu {
    background: #64B427;
    color: #fff;
}
.btn-randevu:hover { 
    background: #4b8e20;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(100, 180, 39, 0.3);
}

/* Şube sayısı göstergesi */
.widget-badge {
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

/* Mobil için alt buton çubuğu */
.mobile-contact-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 2px solid #64B427;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    padding: 10px 0;
}

.mobile-buttons {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    position: relative;
}

.mobile-btn i {
    font-size: 20px;
    margin-bottom: 2px;
}

.mobile-btn.whatsapp i { color: #25D366; }
.mobile-btn.phone i { color: #007AFF; }
.mobile-btn.appointment i { color: #64B427; }

.mobile-btn:hover {
    background: rgba(100, 180, 39, 0.1);
    transform: translateY(-2px);
}

/* Mobil badge */
.mobile-badge {
    position: absolute;
    top: -2px;
    right: 8px;
    background: #ff4757;
    color: white;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 8px;
    min-width: 14px;
    text-align: center;
}

/* Şube listesi */
.subeler, .telefonlar {
    display: none;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.subeler a, .telefonlar a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    margin-bottom: 6px;
    background: #f1f1f1;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: 0.2s;
    font-size: 13px;
}

.subeler a i { color: #25D366; }
.telefonlar a i { color: #007AFF; }

.subeler a:hover, .telefonlar a:hover {
    background: #ddd;
    transform: translateX(3px);
}

/* Bildirim balonu */
.notify-bubble {
    position: fixed;
    bottom: 100px;
    right: 300px;
    background: #64B427;
    color: #fff;
    padding: 12px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    z-index: 11000;
}

.notify-bubble.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mobil popup menüleri */
.mobile-popup {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    display: none;
    z-index: 10001;
    min-width: 280px;
    max-width: 90vw;
    max-height: 60vh;
    overflow-y: auto;
}

.mobile-popup-header {
    background: #64B427;
    color: #fff;
    padding: 12px 16px;
    text-align: center;
    font-weight: bold;
    border-radius: 12px 12px 0 0;
    position: sticky;
    top: 0;
    z-index: 10002;
}

.mobile-popup-content {
    padding: 16px;
}

.mobile-popup-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: 0.3s;
}

.mobile-popup-content a:hover {
    background: #e9ecef;
    transform: scale(1.02);
}

.mobile-popup-content a i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: none;
    z-index: 10000;
}

/* Boş durum mesajı */
.empty-state {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* Responsive ayarları */
@media (max-width: 768px) {
    .fixed-widget {
        display: none;
    }
    
    .mobile-contact-bar {
        display: block;
    }
    
    .notify-bubble {
        bottom: 80px;
        right: 20px;
        left: 20px;
        text-align: center;
        border-radius: 12px;
    }
    
    body {
        padding-bottom: 70px;
    }
}

@media (max-width: 480px) {
    .mobile-btn {
        font-size: 10px;
        padding: 6px 8px;
    }
    
    .mobile-btn i {
        font-size: 18px;
    }
}

/* Scroll bar özelleştirme */
.subeler::-webkit-scrollbar,
.telefonlar::-webkit-scrollbar,
.mobile-popup::-webkit-scrollbar {
    width: 4px;
}

.subeler::-webkit-scrollbar-track,
.telefonlar::-webkit-scrollbar-track,
.mobile-popup::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.subeler::-webkit-scrollbar-thumb,
.telefonlar::-webkit-scrollbar-thumb,
.mobile-popup::-webkit-scrollbar-thumb {
    background: #64B427;
    border-radius: 2px;
}
