/* Xəbər Popup Stilləri */
.news-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.news-popup {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: newsPopupSlideIn 0.3s ease-out;
}

@keyframes newsPopupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.news-popup-header {
    background: linear-gradient(135deg, #0B2545 20%, #3f51b5 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.news-popup-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    flex: 1;
    padding-right: 20px;
}

.news-popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

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

.news-popup-body {
    padding: 25px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.news-popup-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-popup-date i {
    color: #667eea;
}

.news-popup-image {
    margin: 20px 0;
    text-align: center;
}

.news-popup-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-popup-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.news-popup-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
}

.news-popup-footer p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    font-style: italic;
}

/* Mobil uyğunluq */
@media (max-width: 768px) {
    .news-popup-overlay {
        padding: 10px;
    }
    
    .news-popup {
        max-width: 100%;
        border-radius: 15px;
    }
    
    .news-popup-header {
        padding: 15px 20px;
    }
    
    .news-popup-header h3 {
        font-size: 1.2rem;
    }
    
    .news-popup-body {
        padding: 20px;
    }
    
    .news-popup-content {
        font-size: 1rem;
    }
}

/* Animasiya effektləri */
.news-popup-overlay.closing .news-popup {
    animation: newsPopupSlideOut 0.3s ease-in forwards;
}

@keyframes newsPopupSlideOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
}

