/* Announcements Carousel Styles */
#announcementsContainer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: none;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.announcement-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-left: 4px solid;
    background: rgba(56, 189, 248, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    position: relative;
}

.announcement-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.announcement-content-wrapper {
    flex: 1;
    min-width: 0;
}

.announcement-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--fg, #f8fafc);
    margin-bottom: 4px;
    line-height: 1.3;
}

.announcement-text {
    font-size: 0.85rem;
    color: var(--muted, rgba(226, 232, 240, 0.72));
    line-height: 1.4;
    word-wrap: break-word;
}

.announcement-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.announcement-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--fg, #f8fafc);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.announcement-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.announcement-nav-btn:active {
    transform: scale(0.95);
}

.announcement-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.announcement-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.announcement-dot.active {
    background: rgba(255, 255, 255, 0.8);
    width: 8px;
    height: 8px;
}

.announcement-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.announcement-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--fg, #f8fafc);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.announcement-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.announcement-close:active {
    transform: scale(0.9);
}

/* Mobil optimizasyonlar */
@media (max-width: 768px) {
    .announcement-banner {
        padding: 10px 12px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .announcement-icon {
        font-size: 1.3rem;
    }

    .announcement-title {
        font-size: 0.9rem;
    }

    .announcement-text {
        font-size: 0.8rem;
    }

    .announcement-controls {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }

    .announcement-close {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 24px;
        height: 24px;
        font-size: 1.3rem;
    }

    .announcement-content-wrapper {
        flex: 1 1 100%;
        padding-right: 32px;
    }
}

/* Body padding adjustment when announcement is visible */
body.has-announcement {
    padding-top: 60px;
}

@media (max-width: 768px) {
    body.has-announcement {
        padding-top: 80px;
    }
}

