/* Announcement Popup Styles */
.announcement-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.announcement-popup {
    background: #1a1a1a;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
    line-height: 1;
    opacity: 0.7;
}

.announcement-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
    transform: rotate(90deg);
}

.announcement-popup-banner {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.announcement-popup-content {
    padding: 24px;
    max-height: calc(90vh - 200px);
    overflow-y: auto;
}

.announcement-popup-content::-webkit-scrollbar {
    width: 8px;
}

.announcement-popup-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.announcement-popup-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.announcement-popup-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.announcement-popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
    padding-right: 40px;
}

.announcement-popup-message {
    font-size: 15px;
    line-height: 1.6;
    color: #d0d0d0;
    margin: 0 0 24px 0;
    white-space: pre-wrap;
}

.announcement-popup-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.announcement-popup-button {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.announcement-popup-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.announcement-popup-button.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
}

.announcement-popup-button.primary:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* No banner variant */
.announcement-popup.no-banner .announcement-popup-content {
    max-height: calc(90vh - 48px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes popOut {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.8);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .announcement-popup {
        max-width: 100%;
        margin: 20px;
        max-height: calc(100vh - 40px);
    }

    .announcement-popup-banner {
        height: 150px;
    }

    .announcement-popup-content {
        padding: 20px;
        max-height: calc(100vh - 190px);
    }

    .announcement-popup.no-banner .announcement-popup-content {
        max-height: calc(100vh - 88px);
    }

    .announcement-popup-title {
        font-size: 20px;
    }

    .announcement-popup-message {
        font-size: 14px;
    }

    .announcement-popup-button {
        width: 100%;
        text-align: center;
    }
}
