/* 🎨 Announcement Styling */
.announcement-wrapper {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    position: relative;
}

.announcement-slide {
    transition: all 0.4s ease-in-out;
    min-height: 60px;
    position: relative;
    overflow: hidden;
}

/* 📐 Minimized Bar */
.minimized-announcement {
    height: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.minimized-announcement:hover {
    height: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.minimized-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.minimized-text {
    font-size: 10px;
    color: white;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.minimized-announcement:hover .minimized-text {
    opacity: 1;
}

.minimized-indicators {
    display: flex;
    gap: 3px;
}

.minimized-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    transition: all 0.3s ease;
}

.minimized-announcement:hover .minimized-dot {
    width: 6px;
    height: 6px;
}

/* 🎮 Controls */
.nav-btn, .minimize-btn {
    background: rgba(255,255,255,0.08) !important;
    border: none !important;
    color: inherit !important;
    width: 28px;
    height: 28px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
    font-weight: bold;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    opacity: 0.6;
}

.nav-btn:hover, .minimize-btn:hover {
    background: rgba(255,255,255,0.2) !important;
    transform: scale(1.1);
    opacity: 1;
}

.minimize-btn {
    font-size: 10px !important;
}

/* 📊 Progress Bar */
.progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.2);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: rgba(255,255,255,0.8);
    transition: width 0.1s linear;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8));
    transform: translateX(10px);
}

/* 🔢 Slide Indicator */
.slide-indicator {
    font-size: 9px !important;
    opacity: 0.7;
    background: rgba(0,0,0,0.2);
    padding: 1px 6px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

/* 📱 Mobile Optimizations */
@media (max-width: 768px) {
    .announcement-slide {
        padding: 8px 12px !important;
        font-size: 14px;
    }
    
    .nav-btn, .minimize-btn {
        width: 24px;
        height: 24px;
        font-size: 12px !important;
    }
    
    .minimized-announcement {
        height: 6px;
    }
    
    .minimized-announcement:hover {
        height: 10px;
    }
}

/* 🎯 Animation on load */
.announcement-slide {
    animation: slideIn 0.5s ease-out;
}

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