/**
 * Pop-up Sistemi CSS Stilleri
 */

/* ÖZEL POPUP KONTEYNER */
.popup-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* TAMAMEN YENİ MİNİMAL TASARIM */
.popup-mini-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    background: white;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    z-index: 1000001 !important;
}

/* İÇERİK ALTINA BUTON BÖLÜMÜ */
.popup-bottom-section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 16px 20px 20px 20px;
    margin-top: 8px;
}

.popup-mini-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    padding: 1rem;
    display: flex;
    align-items: center;
    position: relative;
}

.popup-mini-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.popup-mini-icon i {
    color: white;
    font-size: 14px;
}

.popup-mini-title {
    color: white;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.popup-mini-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.popup-mini-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.popup-mini-body {
    background: #ffffff;
}

/* BUTON STİLLERİ */
.popup-close-btn {
    background: #3b82f6 !important;
    color: white !important;
    border: none !important;
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    min-width: 80px;
    justify-content: center;
    position: relative;
    z-index: 1000;
    pointer-events: auto;
    outline: none;
    -webkit-tap-highlight-color: rgba(59, 130, 246, 0.3);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.popup-close-btn:hover {
    background: #2563eb !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.3) !important;
}

.popup-close-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Touch device desteği - ana buton stiline ekle */

/* Butonun tıklanabilir olduğundan emin ol */
.popup-close-btn:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

.popup-close-btn i {
    font-size: 12px;
}

.popup-mini-content {
    padding: 20px 20px 0 20px;
    text-align: left;
}

.popup-mini-content p {
    color: #1f2937;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 12px 0;
    text-align: justify;
}

.popup-mini-content h1, 
.popup-mini-content h2, 
.popup-mini-content h3 {
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
    text-align: left;
}

/* Emoji stillendirmesi */
.popup-mini-content {
    font-feature-settings: "liga" 1, "kern" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* İçerik formatlaması */
.popup-mini-content strong {
    color: #3b82f6;
    font-weight: 600;
}

.popup-mini-content br {
    line-height: 2;
}

/* Animasyon */
@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-mini-card {
    animation: popupSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* SAF JAVASCRIPT MODAL - Bootstrap bağımsız */
.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Kendi backdrop'umuz */
.popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 999998 !important;
    cursor: pointer;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Tablet boyutları için */
@media (min-width: 481px) and (max-width: 768px) {
    .popup-mini-card {
        max-width: 420px;
    }
}

/* Mobil Responsive */
@media (max-width: 480px) {
    .popup-modal {
        padding: 0.5rem;
    }
    
    .popup-container {
        width: 100%;
        padding: 0 1rem;
    }
    
    .popup-mini-card {
        max-width: none;
        width: 100%;
        margin: 0;
    }
    
    .popup-bottom-section {
        padding: 12px 16px 16px 16px;
    }
    
    .popup-mini-header {
        padding: 12px;
    }
    
    .popup-mini-icon {
        width: 28px;
        height: 28px;
        margin-right: 10px;
    }
    
    .popup-mini-icon i {
        font-size: 12px;
    }
    
    .popup-mini-title {
        font-size: 13px;
    }
    
    .popup-mini-body {
        background: #ffffff;
    }
    
    .popup-mini-content {
        padding: 16px 16px 0 16px;
        text-align: left;
    }
    
    .popup-close-btn {
        padding: 6px 16px;
        font-size: 11px;
        min-width: 70px;
    }
    
    .popup-close-btn i {
        font-size: 11px;
    }
    
    .popup-mini-content p {
        font-size: 12px;
        line-height: 1.5;
        margin: 0 0 10px 0;
    }
    
    .popup-mini-content h1, 
    .popup-mini-content h2, 
    .popup-mini-content h3 {
        font-size: 13px;
        margin: 0 0 6px 0;
    }
}
