/* ======================= */
/* ANNOUNCEMENT SYSTEM CSS */
/* ======================= */

:root {
    --modal-red: #e53e3e;
    --modal-red-dark: #9b1c1c;
    --modal-red-glow: rgba(229, 62, 62, 0.35);
    --modal-bg: #110d0d;
    --modal-border: rgba(229, 62, 62, 0.4);
}

/* === OVERLAY === */
.announcement-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.announcement-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* === MAIN MODAL === */
.announcement-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 460px;
    max-width: 92vw;
    background: var(--modal-bg);
    border-radius: 16px;
    padding: 0;
    box-shadow:
        0 0 0 1px var(--modal-border),
        0 25px 60px rgba(0, 0, 0, 0.6),
        0 0 40px var(--modal-red-glow);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.4s ease;
}

.announcement-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: all;
}

/* === TOP RED BAR === */
.announcement-modal::before {
    content: '';
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--modal-red-dark), var(--modal-red), #ff6b6b);
    border-radius: 16px 16px 0 0;
}

/* === INNER CONTENT WRAPPER === */
.announcement-content {
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* === STOP ICON CIRCLE === */
.announcement-content > i.fas.fa-pause-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229,62,62,0.18) 0%, transparent 70%);
    border: 2px solid var(--modal-red);
    font-size: 2rem !important;
    color: var(--modal-red) !important;
    margin-bottom: 18px !important;
    box-shadow: 0 0 20px var(--modal-red-glow);
    animation: pulse-icon 2.5s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { box-shadow: 0 0 18px var(--modal-red-glow); }
    50%       { box-shadow: 0 0 32px rgba(229, 62, 62, 0.6); }
}

/* === HEADING === */
.announcement-content h3 {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

/* === RED ACCENT UNDER HEADING === */
.announcement-content h3::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--modal-red);
    border-radius: 2px;
    margin: 8px auto 0;
}

/* === PARAGRAPHS === */
.announcement-content p {
    color: #c8bfbf;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 8px;
    max-width: 360px;
}

/* === DISCORD BUTTON === */
.announcement-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #5865f2;
    color: white;
    padding: 11px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 18px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35);
}

.announcement-button:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
}

/* === CLOSE BUTTON === */
.announcement-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255,255,255,0.06);
    border: none;
    color: #999;
    font-size: 1rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 1;
}

.announcement-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

/* ======================= */
/* MINIMIZED TAB           */
/* ======================= */

.announcement-tab {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: linear-gradient(135deg, var(--modal-red-dark), var(--modal-red));
    border-radius: 50px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9997;
    cursor: pointer;
    box-shadow: 0 4px 18px var(--modal-red-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(0);
}

.announcement-tab.hidden {
    transform: translateY(150%);
}

.announcement-tab:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(229, 62, 62, 0.5);
}

.tab-message {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.03em;
}

.tab-message i {
    font-size: 1rem;
}

.tab-expand {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    padding: 2px 4px;
    transition: transform 0.3s ease;
}

.tab-expand:hover {
    color: white;
}

/* Pulse animation for tab */
@keyframes pulse-glow {
    0%   { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(229, 62, 62, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0); }
}

.announcement-tab.pulse {
    animation: pulse-glow 2s infinite;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
    .announcement-modal {
        width: 94vw;
        max-width: 94vw;
    }

    .announcement-content {
        padding: 22px 18px 20px;
    }

    .announcement-tab {
        bottom: 16px;
        right: 16px;
        padding: 9px 14px;
    }

    .tab-message span {
        display: none;
    }
}
