/* EKLENTİ İÇİN ÖZEL STİLLER - REFERANS SİTE TASARIMI */
.ege-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.95) !important;
    z-index: 9999998 !important;
    display: none !important;
}

.ege-popup {
    position: fixed !important;
    z-index: 9999999 !important;
    width: 950px !important;
    max-width: 95vw !important;
    background: <?php echo esc_attr($design['bg_color']); ?> !important;
    border-top: 4px solid #cb2845 !important;
    font-family: <?php echo esc_attr($design['font_family']); ?> !important;
    display: none !important;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    transform: translate(-50%, -50%) !important;
    left: 50% !important;
    top: 50% !important;
}

.ege-popup.active {
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 1000px) {
    .ege-popup {
        width: 90% !important;
        max-width: 90% !important;
    }
}

@media (max-width: 768px) {
    .ege-popup {
        width: 95% !important;
        max-width: 95% !important;
        transform: translate(-50%, -50%) !important;
        left: 50% !important;
        top: 50% !important;
        max-height: 90vh !important;
        overflow: hidden !important;
    }
}

.ege-popup-top {
    background: #262626 !important;
    height: 75px !important;
    position: relative !important;
}

.ege-logo {
    background: #2f2f2f !important;
    text-align: center !important;
    width: 150px !important;
    height: 79px !important;
    position: absolute !important;
    top: -4px !important;
    left: 40px !important;
    padding-top: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
}

.ege-logo:after {
    content: ' ' !important;
    position: absolute !important;
    bottom: -14px !important;
    left: -5px !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 80px solid transparent !important;
    border-right: 80px solid transparent !important;
    border-top: 15px solid #2f2f2f !important;
}

.ege-logo img {
    height: 65px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
}

.ege-site-name {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: bold !important;
    padding-top: 10px !important;
}

.ege-popup-inner {
    padding: 20px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 30px !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
}

@media (max-width: 768px) {
    .ege-popup-inner {
        padding: 15px !important;
        display: block !important;
        max-height: 75vh !important;
        gap: 20px !important;
    }
}

.ege-18-image {
    flex-shrink: 0 !important;
    width: 322px !important;
    height: 520px !important;
    object-fit: contain !important;
}

@media (max-width: 768px) {
    .ege-18-image {
        width: 100% !important;
        height: auto !important;
        max-height: 300px !important;
        margin: 0 auto 20px auto !important;
        display: block !important;
    }
}

.ege-default-18 {
    flex-shrink: 0 !important;
    width: 322px !important;
    height: 520px !important;
    background: #f5f5f5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 120px !important;
    font-weight: 900 !important;
    color: #cb2845 !important;
    border: 2px dashed #ddd !important;
}

@media (max-width: 768px) {
    .ege-default-18 {
        width: 100% !important;
        height: 300px !important;
        margin-bottom: 20px !important;
    }
}

.ege-popup-content {
    flex: 1 !important;
    min-width: 300px !important;
    color: <?php echo esc_attr($design['text_color']); ?> !important;
    font-size: 12px !important;
    line-height: 1.7 !important;
}

@media (max-width: 768px) {
    .ege-popup-content {
        min-width: 100% !important;
    }
}

.ege-popup-content p {
    margin-bottom: 15px !important;
    line-height: 1.7 !important;
}

.ege-warning {
    font-weight: bold !important;
    color: #cb2845 !important;
    margin: 20px 0 !important;
    padding: 10px !important;
    background: #fff9f9 !important;
    border-left: 3px solid #cb2845 !important;
}

.ege-agreement-title {
    font-size: 16px !important;
    color: #cb2845 !important;
    text-transform: uppercase !important;
    font-weight: 900 !important;
    margin: 25px 0 15px 0 !important;
    padding-top: 15px !important;
    border-top: 1px solid #eee !important;
}

.ege-agreement-list {
    list-style: none !important;
    padding-left: 20px !important;
    margin: 20px 0 !important;
}

.ege-agreement-list li {
    margin-bottom: 10px !important;
    position: relative !important;
    padding-left: 20px !important;
    line-height: 1.6 !important;
}

.ege-agreement-list li:before {
    content: '•' !important;
    color: #cb2845 !important;
    position: absolute !important;
    left: 0 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    top: 0 !important;
}

.ege-confirmation {
    font-size: 16px !important;
    color: #333 !important;
    font-weight: bold !important;
    margin: 25px 0 !important;
    padding: 15px !important;
    background: #f9f9f9 !important;
    border: 1px solid #eee !important;
    text-align: center !important;
}

.ege-buttons {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    margin-top: 30px !important;
    gap: 15px !important;
    padding-top: 20px !important;
    border-top: 1px solid #eee !important;
}

@media (max-width: 550px) {
    .ege-buttons {
        flex-direction: column !important;
    }
}

.ege-btn {
    padding: 12px 40px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    text-align: center !important;
    cursor: pointer !important;
    flex: 1 !important;
    font-size: 16px !important;
    border-radius: 3px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ege-enter-btn {
    background: <?php echo esc_attr($design['button_enter_bg']); ?> !important;
    color: <?php echo esc_attr($design['button_enter_text']); ?> !important;
    border: 1px solid <?php echo esc_attr($design['button_enter_bg']); ?> !important;
}

.ege-enter-btn:hover {
    background: #27ae60 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.ege-leave-btn {
    background: <?php echo esc_attr($design['button_leave_bg']); ?> !important;
    color: <?php echo esc_attr($design['button_leave_text']); ?> !important;
    border: 1px solid <?php echo esc_attr($design['button_leave_bg']); ?> !important;
}

.ege-leave-btn:hover {
    background: #c0392b !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Scrollbar düzenlemesi */
.ege-popup-inner::-webkit-scrollbar {
    width: 8px !important;
}

.ege-popup-inner::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
}

.ege-popup-inner::-webkit-scrollbar-thumb {
    background: #cb2845 !important;
    border-radius: 4px !important;
}

.ege-popup-inner::-webkit-scrollbar-thumb:hover {
    background: #a81c34 !important;
}

/* Sayfa yüklendiğinde scroll'u engelle */
.ege-no-scroll {
    overflow: hidden !important;
    height: 100% !important;
    position: fixed !important;
    width: 100% !important;
}

/* Welcome popup */
.ege-welcome-popup {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.9) !important;
    z-index: 10000000 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
}

.ege-welcome-content {
    background: white !important;
    padding: 40px !important;
    border-radius: 8px !important;
    text-align: center !important;
    max-width: 400px !important;
    width: 90% !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.ege-welcome-content h2 {
    color: #27ae60 !important;
    margin-bottom: 20px !important;
    font-size: 28px !important;
}

.ege-welcome-content p {
    margin-bottom: 30px !important;
    font-size: 16px !important;
    color: #666 !important;
}

.ege-welcome-close {
    background: #27ae60 !important;
    color: white !important;
    border: none !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.ege-welcome-close:hover {
    background: #219653 !important;
    transform: translateY(-2px) !important;
}

/* Popup boyutları için responsive ayarlar */
@media (max-height: 800px) {
    .ege-popup-inner {
        max-height: 65vh !important;
    }
    
    .ege-18-image {
        height: 400px !important;
    }
}

@media (max-height: 600px) {
    .ege-popup-inner {
        max-height: 60vh !important;
    }
    
    .ege-18-image {
        height: 300px !important;
    }
}