/* Şikayet Popup Kapsayıcısı - Tam Ekran ve Ortalı */
#flagbox-popup {
    display: none; /* Varsayılan olarak gizli */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2147483647; /* En üstte durması için maksimum değer */
    align-items: center; 
    justify-content: center;
}

/* Javascript 'active' sınıfını ekleyince görünür olur */
#flagbox-popup.active {
    display: flex !important;
}

/* İçerik Kutusu */
.qa-flag-reasons-wrap {
    background: #ffffff;
    width: 90%;
    max-width: 420px;
    max-height: 90vh; /* Ekran boyunu taşmasın */
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden; 
}

/* Başlık Alanı */
.qa-flag-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0; 
}

.qa-flag-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.qa-flag-header .closer {
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.qa-flag-header .closer:hover {
    color: #374151;
    background: #e5e7eb;
}

/* Kaydırılabilir İçerik Alanı */
.qa-flag-content {
    padding: 20px;
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch; 
}

/* Seçenekler */
.qa-flag-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flag-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.flag-option:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.flag-option input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #dc2626;
}

.flag-option span {
    font-size: 15px;
    color: #374151;
    font-weight: 500;
}

.flag-option input:checked + span {
    color: #dc2626;
    font-weight: 700;
}

/* Not Alanı */
.qa-spam-reason-text-wrap {
    margin-top: 20px;
}

.qa-spam-reason-text-wrap p {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
}

.qa-spam-reason-text {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.qa-spam-reason-text:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Alt Kısım ve Buton */
.qa-flag-footer {
    margin-top: 20px;
}

.qa-go-flag-send-button {
    width: 100%;
    padding: 12px;
    background: #dc2626; 
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.qa-go-flag-send-button:hover {
    background: #b91c1c;
}

.qa-go-flag-send-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Güçlü Yanıp Sönme Animasyonu */
@keyframes flash-alert {
    0% { 
        opacity: 1; 
        background-color: #fffbeb; 
        border-left-color: #f59e0b;
    }
    50% { 
        opacity: 0.5; /* Yazıyı yarı şeffaf yapar (sönme efekti) */
        background-color: #fee2e2; /* Arka planı kırmızımsı yapar */
        border-left-color: #dc2626; 
    }
    100% { 
        opacity: 1; 
        background-color: #fffbeb; 
        border-left-color: #f59e0b;
    }
}

/* Yönetici Bildirim Alanı */
.qa-flag-wrap {
    margin: 15px 0;
}

.qa-flagreasons {
    background: #fffbeb;
    border-left: 5px solid #f59e0b;
    color: #92400e;
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
    /* Animasyon burada tanımlanıyor: 1.5 saniyede bir tekrarla */
    animation: flash-alert 1.5s infinite ease-in-out;
}