/* 1. Modal Arka Planı (Overlay) */
.modal {
    display: none; /* Varsayılan olarak gizli (JavaScript ile açılır) */
    position: fixed;
    z-index: 1050; /* Üstte dur */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.1); /* Hafif karartılmış arka plan */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* Safari desteği için */
}

/* 2. Modal İçeriği Kutusu */
.modal-content {
    position: relative;
    background-color: #ffffff;
    /* Dikey ortalama ve merkezleme */
    margin: 10vh auto;
    width: 90%;
    max-width: 400px; /* Sabit maksimum genişlik */
    /* Modern tasarım detayları */
    border-radius: 12px;

    /* Animasyon */
    animation-name: slideIn;
    animation-duration: 0.35s;
    animation-timing-function: ease-out;
}

/* 3. Modal Başlık (Header) */
.modal-header {
    display: flex; /* İçeriği yönetmek için flex kullan */
    justify-content: flex-end; /* Kapatma butonunu sağa hizala */
    padding: 15px 15px 0 15px; /* Üst ve yan boşluklar */
    border-bottom: none; /* Alt çizgiyi kaldır (daha temiz) */
}

/* 4. Kapatma Butonu (X) */
.close {
    color: #000000;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0; /* Ekstra boşluğu kaldır */
    line-height: 1;
}

    .close:hover,
    .close:focus {
        color: #333333;
        text-decoration: none;
    }

/* 5. Modal Gövdesi (Body) */
.modal-body {
    padding: 20px 30px 30px 30px; /* Başlık ve içeriğin ayrılması için alt boşluğu artır */
    text-align: center;
}

    /* 6. Paragraf Stili */
    .modal-body p {
        margin-bottom: 25px;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        color: #333333;
        font-size: 17px;
        line-height: 1.5;
        font-weight: 500;
    }

    /* 7. Buton (Link) Stili */
    .modal-body a.smooth {
        display: inline-block;
        padding: 12px 30px;
        text-decoration: none;
        color: #000000; /* Beyaz yazı kontrastı sağlar */
        /* YENİ BUTON ARKA PLAN RENGİ: Koyu Çivit Mavi */
        background-color: #A3A3A3;
        border: none;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }

        .modal-body a.smooth:hover {
            /* HOVER RENGİ: Bir tık daha koyu */
            background-color: #A6A6A6;
            transform: translateY(-1px); /* Hafif yukarı hareket */
            /* Gölge rengi de yeni butona uyumlu hale getirildi */
            box-shadow: 0 4px 10px rgba(74, 122, 143, 0.4);
        }

/* 8. Giriş Animasyonu */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 9. Responsive Düzenleme (Küçük Ekranlar) */
@media screen and (max-width: 500px) {
    .modal-content {
        margin: 5vh auto;
        max-width: 95%;
    }

    .modal-body p {
        font-size: 16px;
    }
}
