/* Popup Reklam Stilleri */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: calc(100% - 40px);
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
    margin: auto;
    box-sizing: border-box;
}

.popup-overlay.active .popup-container {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s ease;
    font-size: 24px;
    color: #333;
    line-height: 1;
    flex-shrink: 0;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.popup-image-container {
    flex: 1;
    min-width: 0;
    min-height: 0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

.popup-image-container img {
    display: block;
    max-width: calc(100% - 0px);
    max-height: calc(100% - 0px);
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    margin: 0 auto;
}

.popup-content-container {
    flex: 1;
    min-width: 0;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.popup-title {
    font-family: 'Bagoss', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #1a1a1a;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.popup-content {
    font-family: 'Bagoss', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.popup-content p {
    margin: 0 0 15px 0;
}

.popup-content p:last-child {
    margin-bottom: 0;
}

.popup-content h1,
.popup-content h2,
.popup-content h3,
.popup-content h4,
.popup-content h5,
.popup-content h6 {
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.popup-content ul,
.popup-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.popup-content a {
    color: #0066cc;
    text-decoration: underline;
    word-break: break-word;
}

.popup-content a:hover {
    color: #0052a3;
}

/* Tablet Responsive (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .popup-overlay {
        padding: 20px;
    }
    
    .popup-container {
        max-width: calc(100% - 40px);
        width: calc(100% - 40px);
        max-height: 85vh;
    }
    
    .popup-image-container {
        padding: 30px;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .popup-image-container img {
        width: auto;
        height: auto;
        max-width: calc(100% - 0px);
        max-height: calc(85vh - 250px);
        object-fit: contain;
        object-position: center;
    }
    
    .popup-content-container {
        padding: 35px 30px;
    }
    
    .popup-title {
        font-size: 28px;
    }
    
    .popup-content {
        font-size: 15px;
    }
}

/* Mobil ve Tablet Responsive (768px ve altı) */
@media (max-width: 768px) {
    .popup-overlay {
        padding: 15px;
        align-items: flex-start;
        padding-top: 15px;
        padding-bottom: 15px;
    }
    
    .popup-container {
        flex-direction: column;
        max-height: calc(100vh - 30px);
        max-width: calc(100% - 30px);
        width: calc(100% - 30px);
        border-radius: 12px;
        margin-top: auto;
        margin-bottom: auto;
        box-sizing: border-box;
    }
    
    .popup-close {
        width: 36px;
        height: 36px;
        top: 10px;
        right: 10px;
        font-size: 22px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .popup-image-container {
        flex: 0 0 auto;
        width: 100%;
        min-height: 150px;
        height: auto;
        padding: 15px;
        overflow: hidden;
        box-sizing: border-box;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .popup-image-container img {
        display: block;
        width: auto;
        height: auto;
        max-width: calc(100% - 0px);
        max-height: calc(40vh - 30px);
        object-fit: contain;
        object-position: center;
        margin: 0 auto;
    }
    
    .popup-content-container {
        padding: 25px 20px;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }
    
    .popup-title {
        font-size: 22px;
        margin-bottom: 15px;
        line-height: 1.4;
    }
    
    .popup-content {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .popup-content ul,
    .popup-content ol {
        padding-left: 25px;
        margin: 12px 0;
    }
}

/* Küçük Mobil Ekranlar (480px ve altı) */
@media (max-width: 480px) {
    .popup-overlay {
        padding: 12px;
        padding-top: 12px;
        padding-bottom: 12px;
    }
    
    .popup-container {
        max-height: calc(100vh - 24px);
        max-width: calc(100% - 24px);
        width: calc(100% - 24px);
        border-radius: 10px;
        box-sizing: border-box;
    }
    
    .popup-close {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
        font-size: 20px;
    }
    
    .popup-image-container {
        min-height: 120px;
        height: auto;
        padding: 12px;
        box-sizing: border-box;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .popup-image-container img {
        display: block;
        width: auto;
        height: auto;
        max-width: calc(100% - 0px);
        max-height: calc(35vh - 24px);
        object-fit: contain;
        object-position: center;
        margin: 0 auto;
    }
    
    .popup-content-container {
        padding: 20px 15px;
        box-sizing: border-box;
    }
    
    .popup-title {
        font-size: 20px;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .popup-content {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .popup-content p {
        margin-bottom: 12px;
    }
    
    .popup-content h1,
    .popup-content h2,
    .popup-content h3,
    .popup-content h4,
    .popup-content h5,
    .popup-content h6 {
        margin-top: 15px;
        margin-bottom: 12px;
    }
    
    .popup-content ul,
    .popup-content ol {
        padding-left: 20px;
        margin: 10px 0;
    }
}

/* Çok Küçük Ekranlar (360px ve altı) */
@media (max-width: 360px) {
    .popup-overlay {
        padding: 10px;
    }
    
    .popup-container {
        max-width: calc(100% - 20px);
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
    }
    
    .popup-image-container {
        min-height: 100px;
        height: auto;
        padding: 10px;
        box-sizing: border-box;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .popup-image-container img {
        display: block;
        width: auto;
        height: auto;
        max-width: calc(100% - 0px);
        max-height: calc(30vh - 20px);
        object-fit: contain;
        object-position: center;
        margin: 0 auto;
    }
    
    .popup-content-container {
        padding: 18px 12px;
        box-sizing: border-box;
    }
    
    .popup-title {
        font-size: 18px;
    }
    
    .popup-content {
        font-size: 12px;
    }
}

