/* Announcement Popup Styles */
.announcement-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.announcement-popup-overlay.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.announcement-popup {
    background: #fff;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    margin: 20px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease-in-out;
}

.announcement-popup-overlay.show .announcement-popup {
    transform: scale(1);
}

.announcement-popup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    position: relative;
}

.announcement-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.announcement-popup-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.announcement-popup-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    padding-right: 40px;
    line-height: 1.3;
}

.announcement-popup-body {
    padding: 25px;
}

.announcement-popup-content {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

.announcement-popup-date {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 0.85rem;
    text-align: right;
}

/* Animation için keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.announcement-popup-overlay.show .announcement-popup {
    animation: fadeInUp 0.4s ease-out;
}

/* Responsive design */
@media (max-width: 576px) {
    .announcement-popup {
        width: 95%;
        margin: 10px;
    }
    
    .announcement-popup-header {
        padding: 15px;
    }
    
    .announcement-popup-title {
        font-size: 1.2rem;
    }
    
    .announcement-popup-body {
        padding: 20px;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .announcement-popup {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .announcement-popup-content {
        color: #cbd5e0;
    }
    
    .announcement-popup-date {
        border-top-color: #4a5568;
        color: #a0aec0;
    }
}

/* RTL support for Arabic */
[dir="rtl"] .announcement-popup-close {
    right: auto;
    left: 20px;
}

[dir="rtl"] .announcement-popup-title {
    padding-right: 0;
    padding-left: 40px;
}

[dir="rtl"] .announcement-popup-date {
    text-align: left;
}
