/* --- TEMEL AYARLAR VE RENK PALETİ --- */
:root {
    --primary: #7a1214;
    --primary-dark: #4a090b;
    --text-light: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.95);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Titillium Web', sans-serif;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url('background.png') center/cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* --- ANA KAPSAYICI --- */
.container {
    width: 90%;
    max-width: 1200px;
    /* Footer'ı daha aşağı itmek için yüksekliği 100vh yapıp alt padding'i daralttık */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 3rem 0 1rem 0;
}

/* --- BAŞLIK --- */
.header h1 {
    font-weight: 900;
    color: var(--text-light);
    font-size: clamp(1.8rem, 4vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    margin-bottom: 2rem;
    margin-top: 1rem;
}

/* --- KARTLAR --- */
.cards-wrapper {
    display: flex;
    margin-top: 7rem;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    /* Altındaki yazıyla çok yapışmaması için margin ekledik */
    margin-bottom: 1rem;
}

.nav-card {
    background: var(--card-bg);
    opacity: 85%;
    text-decoration: none;
    padding: 2.5rem 2rem;
    border-radius: 40px;
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
}

.nav-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(122, 18, 20, 0.8);
}

.icon-box {
    width: 90px;
    height: 90px;
    background: #ffffff;
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.nav-card:hover .icon-box {
    transform: scale(1.1);
}

.icon-box svg {
    width: 60px;
    height: 60px;
    stroke: var(--primary);
}

.nav-card h2 {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* --- YÖNLENDİRME YAZISI --- */
.hint-text {
    font-weight: 600; /* Titillium Web Bold/Semi-bold */
    color: var(--text-light);
    opacity: 0.55; /* Çok belirgin olmaması için %55 saydamlık */
    font-size: 1.1rem;
    letter-spacing: 1px;
    /* Footer'ı en aşağıya itmesi için margin-bottom: auto verdik */
    margin-bottom: auto;
    margin-top: 1rem;
}

/* --- FOOTER & LOGO --- */
.footer {
    /* Yukarıdaki hint-text auto boşluk yarattığı için logoyu en dibe yaslayacak */
    margin-top: 2rem;
}

.logo {
    display: none;
    max-width: 140px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* --- MOBİL UYUM --- */
@media (max-width: 768px) {
    .cards-wrapper {
        margin-top: 1.5rem;
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
    }

    .nav-card {
        padding: 2rem 1.5rem;
    }
    .logo {
        display: none;
        max-width: 80px;
        height: auto;
        filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
        transition: transform 0.3s ease;
    }
}

/* --- ALERT MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background-color: var(--card-bg);
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(122, 18, 20, 0.6);
    border-top: 6px solid var(--primary);
    text-align: center;
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.hidden .modal-content {
    transform: scale(0.8);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.warning-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--primary-dark);
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    line-height: 1;
}

.close-btn:hover {
    transform: scale(1.1);
    color: var(--primary);
}

.modal-body p {
    font-size: 1.2rem;
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
}

/* Modal Mobile Responsiveness */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
    }

    .modal-body p {
        font-size: 1.05rem;
    }

    .warning-icon {
        font-size: 2rem;
    }
}
