/**
 * Popup Frontend Styles
 */

/* Body scroll lock when popup is active */
body.popup-active {
    overflow: hidden;
}

.deu-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.deu-popup-overlay.active {
    opacity: 1;
}

.deu-popup-overlay.fade-in {
    animation: deuPopupFadeIn 0.4s ease forwards;
}

.deu-popup-overlay.slide-up {
    animation: deuPopupSlideUp 0.5s ease forwards;
}

.deu-popup-container {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.deu-popup-overlay.active .deu-popup-container {
    transform: scale(1);
}

.deu-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
    z-index: 10;
}

.deu-popup-close:hover {
    background: #f0f0f0;
    color: #000;
    transform: rotate(90deg);
}

.deu-popup-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
}

.deu-popup-content h1,
.deu-popup-content h2,
.deu-popup-content h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-weight: 600;
}

.deu-popup-content h1 {
    font-size: 28px;
}

.deu-popup-content h2 {
    font-size: 24px;
}

.deu-popup-content h3 {
    font-size: 20px;
}

.deu-popup-content p {
    margin-bottom: 16px;
    color: #333;
}

.deu-popup-content::after {
    content: "";
    display: table;
    clear: both;
}

.deu-popup-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.deu-popup-content .alignleft,
.deu-popup-content img.alignleft {
    float: left !important;
    display: inline !important;
    margin: 0.35rem 1.25rem 0.75rem 0 !important;
}

.deu-popup-content .alignright,
.deu-popup-content img.alignright {
    float: right !important;
    display: inline !important;
    margin: 0.35rem 0 0.75rem 1.25rem !important;
}

.deu-popup-content .aligncenter,
.deu-popup-content img.aligncenter {
    display: block !important;
    float: none !important;
    margin: 0.5rem auto 0.75rem !important;
    clear: both !important;
}

.deu-popup-content .alignnone,
.deu-popup-content img.alignnone {
    display: inline-block !important;
    float: none !important;
    margin: 0 0.5rem 0.5rem 0 !important;
}

.deu-popup-content a {
    color: #1e3fae;
    text-decoration: none;
    transition: color 0.2s ease;
}

.deu-popup-content a:hover {
    color: #152d7d;
    text-decoration: underline;
}

.deu-popup-content .button,
.deu-popup-content button[type="submit"],
.deu-popup-content input[type="submit"] {
    display: inline-block;
    padding: 12px 24px;
    background: #1e3fae;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.deu-popup-content .button:hover,
.deu-popup-content button[type="submit"]:hover,
.deu-popup-content input[type="submit"]:hover {
    background: #152d7d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 63, 174, 0.3);
}

.deu-popup-content form {
    margin-top: 20px;
}

.deu-popup-content input[type="text"],
.deu-popup-content input[type="email"],
.deu-popup-content input[type="tel"],
.deu-popup-content textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 12px;
    transition: border-color 0.2s ease;
}

.deu-popup-content input:focus,
.deu-popup-content textarea:focus {
    outline: none;
    border-color: #1e3fae;
    box-shadow: 0 0 0 3px rgba(30, 63, 174, 0.1);
}

/* Animasyonlar */
@keyframes deuPopupFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes deuPopupSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .deu-popup-container {
        padding: 30px 20px;
        max-width: 95%;
        border-radius: 8px;
    }
    
    .deu-popup-content h1 {
        font-size: 24px;
    }
    
    .deu-popup-content h2 {
        font-size: 20px;
    }
    
    .deu-popup-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
    }
}

/* Özel Tasarım Sınıfları */
.deu-popup-container.compact {
    max-width: 400px;
    padding: 30px;
}

.deu-popup-container.wide {
    max-width: 900px;
}

.deu-popup-container.fullscreen {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* Cookie Consent Stili */
.deu-popup-overlay.cookie-consent {
    align-items: flex-end;
    background: transparent;
}

.deu-popup-overlay.cookie-consent .deu-popup-container {
    max-width: 100%;
    border-radius: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

/* Popup Footer - Bir Daha Gösterme */
.deu-popup-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.deu-popup-dont-show {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: #6b7280;
}

.deu-popup-dont-show input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.deu-popup-dont-show:hover {
    color: #374151;
}

.deu-popup-dont-show span {
    line-height: 1;
}
