/* UKS Promosyon Sistemi Pro - Kompakt Tasarım */
:root {
    --uks-primary: #4CAF50;
    --uks-secondary: #FF9800;
    --uks-danger: #f44336;
    --uks-info: #2196F3;
    --uks-dark: #333;
    --uks-light: #f5f5f5;
}

/* Bildirim Çubuğu - Kompakt ve Dar */
.uks-notification-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin: 15px 0;
    animation: uksSlideIn 0.3s ease-out;
}

/* Sticky Bottom - Alt Yapışkan */
#uks-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

#uks-sticky-bar .uks-notification-bar {
    margin: 0;
    border-radius: 0;
    padding: 10px 20px;
}

/* Bildirim Öğesi - Tek Satır */
.uks-notif-item {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.uks-notif-item:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.uks-notif-item.success {
    background: rgba(76, 175, 80, 0.3);
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.uks-notif-item.flash {
    background: rgba(255, 152, 0, 0.3);
    border: 1px solid rgba(255, 152, 0, 0.5);
    animation: uksPulse 2s ease-in-out infinite;
}

.uks-icon {
    font-size: 20px;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.2));
    flex-shrink: 0;
}

/* Mini İlerleme Çubuğu */
.uks-mini-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255,255,255,0.8);
    border-radius: 0 3px 3px 0;
    transition: width 0.5s ease;
    box-shadow: 0 0 6px rgba(255,255,255,0.6);
}

.uks-mini-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: uksShine 1.5s ease-in-out infinite;
}

/* Rozetler - Kompakt */
.uks-badges-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.uks-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.uks-badge-bogo { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.uks-badge-three-for-two { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.uks-badge-role-discount { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.uks-badge-category-discount { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.uks-badge-product-discount { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
.uks-badge-black-friday { background: linear-gradient(135deg, #000000 0%, #434343 100%); }

/* Animasyonlar */
@keyframes uksSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes uksShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes uksPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.95;
    }
}

/* Responsive - Mobil */
@media (max-width: 768px) {
    .uks-notification-bar {
        flex-direction: column;
        padding: 10px 15px;
        gap: 10px;
    }
    
    .uks-notif-item {
        min-width: 100%;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .uks-icon {
        font-size: 18px;
    }
    
    #uks-sticky-bar .uks-notification-bar {
        padding: 8px 15px;
    }
    
    .uks-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .uks-notification-bar {
        padding: 8px 12px;
    }
    
    .uks-notif-item {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* Print Media */
@media print {
    .uks-notification-bar,
    #uks-sticky-bar,
    .uks-badges-wrapper {
        display: none !important;
    }
}

/* Dark Mode Desteği */
@media (prefers-color-scheme: dark) {
    .uks-notification-bar {
        box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    }
}

/* Yüksek Kontrast */
@media (prefers-contrast: high) {
    .uks-notif-item {
        border: 2px solid rgba(255,255,255,0.6);
    }
    
    .uks-badge {
        border: 1px solid rgba(255,255,255,0.8);
    }
}

/* Azaltılmış Hareket */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Özel Pozisyonlar için Ekstra Stiller */
.woocommerce-before-cart .uks-notification-bar,
.woocommerce-after-cart .uks-notification-bar {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.single-product .uks-notification-bar {
    margin-bottom: 20px;
}

/* Sepette çok yer kaplamaması için */
.woocommerce-cart .uks-notification-bar {
    margin-bottom: 15px;
}

.woocommerce-checkout .uks-notification-bar {
    margin-bottom: 15px;
}

/* Accessibility */
.uks-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Fokus stilleri */
.uks-notif-item:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Loading State */
.uks-notification-bar.loading {
    opacity: 0.7;
    pointer-events: none;
}

.uks-notification-bar.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    animation: uksLoadingShimmer 1.5s ease-in-out infinite;
}

@keyframes uksLoadingShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}
