/* ==================== CATEGORY WARNING MODAL v1.0 ==================== */

/* ========== MODAL TEMEL STİLLER ========== */
.category-warning-modal .modal-content {
    max-width: 500px;
    width: 95%;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
}

.category-warning-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-bottom: 1px solid #fcd34d;
}

.category-warning-modal .modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #92400e;
    margin: 0;
}

.category-warning-modal .modal-close {
    width: 32px;
    height: 32px;
    min-height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(146, 64, 14, 0.1);
    color: #92400e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
}

.category-warning-modal .modal-close:hover {
    background: rgba(146, 64, 14, 0.2);
    transform: rotate(90deg);
}

.category-warning-modal .modal-body {
    padding: 24px;
}

/* ========== UYARI MESAJI ========== */
.warning-message {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #fef9e7, #fef3c7);
    border-radius: 12px;
    border: 2px solid #fcd34d;
}

.warning-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.warning-message p {
    margin: 0;
    font-size: 15px;
    color: #78350f;
    line-height: 1.6;
}

.warning-message p strong {
    color: #92400e;
    font-size: 18px;
}

.warning-subtitle {
    margin-top: 8px;
    font-size: 14px;
    color: #a16207;
}

/* ========== SEÇENEk KARTLARI ========== */
.warning-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.warning-option {
    display: block;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.warning-option:hover {
    border-color: #3b82f6;
    background: #f8fafc;
    transform: translateX(4px);
}

.warning-option.selected {
    border-color: #2563eb;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.warning-option input[type="radio"] { display: none; }

.option-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* position: relative — checkmark için gerekli */
.option-icon {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.warning-option:hover .option-icon {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.warning-option.selected .option-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.option-text { flex: 1; }

.option-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.warning-option.selected .option-text strong { color: #1e40af; }

.option-text span {
    display: block;
    font-size: 12px;
    color: #6b7280;
}

.warning-option.selected .option-text span { color: #3b82f6; }

/* ========== SEÇENEK ÖZEL RENKLERİ ========== */
.warning-option[data-option="useAvailable"] .option-icon {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}
.warning-option[data-option="useAvailable"]:hover .option-icon,
.warning-option[data-option="useAvailable"].selected .option-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.warning-option[data-option="hybrid"] .option-icon {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}
.warning-option[data-option="hybrid"]:hover .option-icon,
.warning-option[data-option="hybrid"].selected .option-icon {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.warning-option[data-option="changeCategory"] .option-icon {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}
.warning-option[data-option="changeCategory"]:hover .option-icon,
.warning-option[data-option="changeCategory"].selected .option-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.warning-option[data-option="customTest"] .option-icon {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
}
.warning-option[data-option="customTest"]:hover .option-icon,
.warning-option[data-option="customTest"].selected .option-icon {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

/* ========== MODAL ACTIONS ========== */
.category-warning-modal .modal-actions {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.category-warning-modal .modal-actions button {
    flex: 1;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.category-warning-modal .btn-secondary {
    background: #ffffff;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.category-warning-modal .btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

.category-warning-modal .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.category-warning-modal .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.category-warning-modal .btn-primary:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

/* ========== ANİMASYONLAR ========== */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.category-warning-modal.active .modal-content {
    animation: slideUp 0.3s ease-out;
}

/* Pulse — seçili öğe */
.warning-option.selected .option-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    border: 2px solid currentColor;
    opacity: 0;
    animation: pulse-ring 1.5s ease-out infinite;
}

@keyframes pulse-ring {
    0%   { opacity: 0.6; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.2); }
}

/* Checkmark */
.warning-option.selected .option-icon::before {
    content: '✓';
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pop-in 0.2s ease-out;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

@keyframes pop-in {
    0%   { transform: scale(0); }
    50%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
    .category-warning-modal .modal-content {
        margin: 8px;
        width: calc(100% - 16px);
        max-height: 95vh;
        overflow-y: auto;
    }
    .category-warning-modal .modal-header { padding: 16px 20px; }
    .category-warning-modal .modal-header h3 { font-size: 16px; }
    .category-warning-modal .modal-body { padding: 16px; }
    .warning-message { padding: 16px; margin-bottom: 16px; }
    .warning-icon { font-size: 36px; margin-bottom: 8px; }
    .warning-message p { font-size: 14px; }
    .warning-options { gap: 10px; }
    .warning-option { padding: 14px; }
    .option-content { gap: 12px; }
    .option-icon { width: 40px; height: 40px; font-size: 20px; border-radius: 10px; }
    .option-text strong { font-size: 13px; }
    .option-text span { font-size: 11px; }
    .category-warning-modal .modal-actions { flex-direction: column; padding: 16px; }
    .category-warning-modal .modal-actions button { padding: 14px 20px; }
}