/* NDN Take Action Announcement Styles */

.ndn-announcement-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    padding: 20px;
    box-sizing: border-box;
}

.ndn-announcement-overlay.ndn-announcement-visible {
    opacity: 1;
}

.ndn-announcement-container {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: ndn-announcement-slide-in 0.4s ease-out;
}

@keyframes ndn-announcement-slide-in {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ndn-announcement-close {
	font-family:"Arial", sans-serif!important;
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    background: #fff;
    border: 2px solid #333;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    padding: 0;
    font-weight: bold;
}

.ndn-announcement-close:hover {
    background: #333;
    color: #fff;
    transform: rotate(90deg);
}

.ndn-announcement-content {
    padding: 0;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.ndn-announcement-link {
    display: block;
    text-decoration: none;
    border: none;
    outline: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.ndn-announcement-link:hover {
    opacity: 0.95;
}

.ndn-announcement-link:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

.ndn-announcement-banner {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px 8px 0 0;
}

.ndn-announcement-footer {
    padding: 15px 20px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
}

.ndn-announcement-never-show {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    cursor: pointer;
}

.ndn-announcement-never-show:hover {
    color: #333;
    text-decoration: underline;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .ndn-announcement-overlay {
        padding: 15px;
    }

    .ndn-announcement-container {
        max-width: 100%;
    }

    .ndn-announcement-close {
        top: -10px;
        right: -10px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .ndn-announcement-footer {
        padding: 12px 15px;
    }

    .ndn-announcement-never-show {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .ndn-announcement-overlay {
        padding: 10px;
    }

    .ndn-announcement-close {
        top: -8px;
        right: -8px;
        width: 28px;
        height: 28px;
        font-size: 18px;
        border-width: 1px;
    }

    .ndn-announcement-footer {
        padding: 10px;
    }

    .ndn-announcement-never-show {
        font-size: 12px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .ndn-announcement-overlay {
        transition: none;
    }

    .ndn-announcement-container {
        animation: none;
    }

    .ndn-announcement-close:hover {
        transform: none;
    }
}
