/* notification-bar.css - استایل نوار اعلانات */

/* نوار اعلانات */
.notification-bar {
    position: relative;
    background: linear-gradient(135deg, #8b5e3c 0%, #6b3e2c 100%);
    color: white;
    padding: 4px 0;
    overflow: hidden;
    font-family: 'Estedad', 'Vazirmatn', sans-serif;
    z-index: 99;
    transition: all 0.3s ease;
}

/* حالت اسکرول - محو شدن */
.notification-bar.hide {
    opacity: 0;
    visibility: hidden;
    padding: 0;
    height: 0;
}

body.dark-theme .notification-bar {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f2a4a 100%);
}

/* کانتینر اسلایدر */
.notification-slider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* آیتم اعلان */
.notification-item {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.notification-item.active {
    display: flex;
}

/* برچسب اعلان */
.notification-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    background: rgba(255,255,255,0.25);
    color: white;
}

.notification-badge.new {
    background: #e25555;
}

.notification-badge.update {
    background: #ffd700;
    color: #1a1a1a;
}

.notification-badge.popular {
    background: #4ecdc4;
    color: #1a1a1a;
}

/* متن اعلان */
.notification-text {
    font-size: 0.75rem;
    font-weight: 500;
}

.notification-text a {
    color: white;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.notification-text a:hover {
    opacity: 0.8;
}

/* دکمه بستن */
.notification-close {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.notification-close:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* نقطه‌های ناوبری */
.notification-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
    padding-bottom: 2px;
}

.notification-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-dot.active {
    width: 16px;
    border-radius: 3px;
    background: white;
}

/* انیمیشن محو شدن */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
    .notification-bar {
        padding: 3px 0;
    }
    
    .notification-item {
        flex-wrap: wrap;
        gap: 6px;
        padding: 0 30px;
    }
    
    .notification-badge {
        font-size: 0.55rem;
        padding: 2px 6px;
    }
    
    .notification-text {
        font-size: 0.65rem;
    }
    
    .notification-close {
        left: 8px;
        font-size: 0.9rem;
    }
    
    .notification-slider {
        padding: 0 35px;
    }
    
    .notification-dots {
        gap: 5px;
    }
    
    .notification-dot {
        width: 4px;
        height: 4px;
    }
    
    .notification-dot.active {
        width: 12px;
    }
}