/* ========================================
   DELETE CONFIRMATION MODAL
   Facebook Messenger-inspired design
   Matches chat-dropdown.css style
   ======================================== */

/* Modal Container */
.telegram-delete-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.telegram-delete-modal.active {
    pointer-events: all;
}

/* Overlay with blur effect */
.delete-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.telegram-delete-modal.active .delete-modal-overlay {
    opacity: 1;
}

/* Modal Content - Matches dropdown style */
.delete-modal-content {
    position: relative;
    background: var(--bg-color-3);
    border-radius: 18px; /* Match dropdown */
    padding: 20px 24px 24px; /* Less top padding without icon */
    min-width: 320px;
    max-width: 420px;
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 0 2px rgba(0, 0, 0, 0.1);
    transform: scale(0.94) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@supports (backdrop-filter: blur(12px)) {
    .delete-modal-content {
        backdrop-filter: blur(12px) saturate(180%);
        background: rgba(var(--bg-color-3-rgb, 36, 39, 43), 0.94);
    }
}

.telegram-delete-modal.active .delete-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Header with icon */
.delete-modal-header {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-1);
    margin-bottom: 8px;
    text-align: center;
}

/* Message text */
.delete-modal-message {
    text-align: center;
    color: var(--color-text-2);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Buttons Container */
.delete-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Button Base - Matches dropdown menu items */
.delete-modal-btn {
    width: 100%;
    padding: 13px 18px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.delete-modal-btn:active {
    transform: scale(0.98);
}

/* Confirm Button - Danger style */
.delete-btn-confirm {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.delete-btn-confirm:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
    transform: translateY(-2px);
}

.delete-btn-confirm:active {
    transform: translateY(0) scale(0.98);
}

/* Icon for delete button */
.delete-btn-confirm::before {
    content: '🗑️';
    font-size: 18px;
}

/* Cancel Button - Subtle style like dropdown items */
.delete-btn-cancel {
    background: rgba(var(--accent-2-rgb, 75, 142, 242), 0.12);
    color: var(--color-text-1);
}

.delete-btn-cancel:hover {
    background: rgba(var(--accent-2-rgb, 75, 142, 242), 0.18);
    transform: translateY(-1px);
}

.delete-btn-cancel:active {
    transform: translateY(0) scale(0.98);
}

/* Ripple effect on click (Facebook-inspired) */
.delete-modal-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    pointer-events: none;
    opacity: 0;
}

.delete-modal-btn:active::before {
    width: 200px;
    height: 200px;
    opacity: 1;
    transition: width 0s, height 0s, opacity 0.3s ease;
}

/* ==================== 
   LIGHT THEME 
   ==================== */

html[data-theme="light"] .delete-modal-content {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

@supports (backdrop-filter: blur(12px)) {
    html[data-theme="light"] .delete-modal-content {
        backdrop-filter: blur(12px) saturate(180%);
        background: rgba(255, 255, 255, 0.96);
    }
}

html[data-theme="light"] .delete-modal-header {
    color: #1c1e21;
}

html[data-theme="light"] .delete-modal-message {
    color: #4b5563;
}

html[data-theme="light"] .delete-btn-confirm {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

html[data-theme="light"] .delete-btn-confirm:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
}

html[data-theme="light"] .delete-btn-cancel {
    background: rgba(74, 158, 255, 0.08);
    color: #1c1e21;
}

html[data-theme="light"] .delete-btn-cancel:hover {
    background: rgba(74, 158, 255, 0.12);
}

/* ==================== 
   MOBILE RESPONSIVE 
   ==================== */

@media (max-width: 576px) {
    .delete-modal-content {
        min-width: 300px;
        max-width: calc(100% - 32px);
        padding: 20px;
    }
    
    .delete-modal-header {
        font-size: 16px;
    }
    
    .delete-modal-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ==================== 
   ACCESSIBILITY 
   ==================== */

@media (prefers-reduced-motion: reduce) {
    .delete-modal-overlay,
    .delete-modal-content,
    .delete-modal-btn {
        transition: none;
        animation: none;
    }
}

/* Focus styles for keyboard navigation */
.delete-modal-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--accent-2-rgb, 75, 142, 242), 0.4);
}

html[data-theme="light"] .delete-modal-btn:focus {
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.3);
}
