﻿:root {
    --popup-primary-blue: #0a2949;
    --popup-primary-orange: #f39c12; /* Sitenizdeki turuncu renge göre ayarlandı */
    --popup-primary-orange-hover: #e67e22;
    --popup-text-color: #555;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    max-width: 500px;
    text-align: center;
    position: relative;
}

    .popup-content img {
        max-width: 100%;
        height: auto;
        margin-bottom: 15px;
    }

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/*.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}*/

.popup-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: #ffffff;
    padding: 25px 35px;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1001;
    width: 90%;
    max-width: 520px;
    text-align: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-top: 4px solid var(--popup-primary-orange);
}

    .popup-overlay.active, .popup-container.active {
        display: block;
        opacity: 1;
    }

    .popup-container.active {
        transform: translate(-50%, -50%) scale(1);
    }

.popup-close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 22px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
    font-family: Arial, sans-serif;
}

    .popup-close-btn:hover {
        color: #333;
    }

.popup-content {
    margin-top: 15px;
}

.popup-logo {
    max-width: 180px;
    margin-bottom: 25px;
}

.popup-title {
    color: var(--popup-primary-blue);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 12px;
}

    .popup-title strong {
        font-weight: 700;
        display: block; /* DefenceBook kelimesini alt satıra indirir */
    }

.popup-description {
    color: var(--popup-text-color);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.popup-btn {
    display: inline-block;
    padding: 13px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    max-width: 250px;
}

.popup-btn-primary {
    background-color: var(--popup-primary-orange);
    color: #fff;
}

    .popup-btn-primary:hover {
        background-color: var(--popup-primary-orange-hover);
        transform: translateY(-2px);
    }

/* Login/Register Tasarımı için */
.popup-button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.popup-btn-secondary {
    background-color: #fff;
    color: var(--popup-primary-blue);
    border: 2px solid #e0e0e0;
}

    .popup-btn-secondary:hover {
        background-color: #f7f7f7;
        border-color: #cccccc;
    }

.popup-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.popup-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #fff !important; /* !important, diğer stilleri ezmek için */
    background-color: var(--navy-5);
    border: 1px solid var(--navy-5);
    text-decoration: none !important; /* alt çizgiyi kaldır */
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s; /* Üzerine gelince efekt için */
    margin-top: 10px;
}

    .popup-button:hover {
        background-color: var(--blue-5);
    }

.popup-close {
    /* KONUMLANDIRMA */
    position: absolute;
    top: 15px; /* Üst kenardan boşluk */
    right: 15px; /* Sağ kenardan boşluk */
    z-index: 10; /* Resmin üzerinde kalmasını garantiler */
    /* ÇERÇEVE VE ŞEKİL */
    width: 30px; /* Sabit genişlik */
    height: 30px; /* Sabit yükseklik */
    background-color: rgba(255, 255, 255, 0.8); /* %80 şeffaflıkta beyaz arka plan */
    border-radius: 50%; /* BU ONU YUVARLAK YAPAR */
    /* İÇİNDEKİ 'X' İŞARETİNİ ORTALAMA */
    display: flex;
    align-items: center;
    justify-content: center;
    /* 'X' İŞARETİNİN STİLİ */
    color: #333; /* Koyu gri renk 'X' */
    font-size: 22px; /* Boyutu biraz ayarlayalım */
    font-weight: bold; /* Daha kalın bir 'X' */
    line-height: 1; /* Dikeyde hizalamayı garantiler */
    /* ETKİLEŞİM */
    cursor: pointer;
    transition: all 0.2s ease-in-out; /* Yumuşak geçiş efekti */
}

    /* ÜZERİNE GELİNCE DAHA BELİRGİN OLSUN */
    .popup-close:hover {
        background-color: #ffffff; /* Tamamen opak beyaz yap */
        transform: scale(1.1); /* Hafifçe büyüt */
    }

/* Mobil Cihazlar için Ayarlamalar */
@media (max-width: 500px) {
    .popup-container {
        padding: 20px;
        border-top-width: 3px;
    }

    .popup-title {
        font-size: 22px;
    }

    .popup-description {
        font-size: 15px;
    }

    .popup-button-group {
        flex-direction: column;
    }

    .popup-btn {
        width: 100%;
        max-width: none;
    }
}

