/* =============================
    Global Ayarlar ve Arka Plan
============================= */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../app/models/background/background.jpg');
    background-size: cover;
    background-position: center 35px;
    background-attachment: fixed;
    padding-bottom: 75px;
    color: white;
	overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.top-bar {
    background: #1e1e1e;
    padding: 0.4rem 1rem;
    display: flex;
    justify-content: flex-start; /* sol hizalama */
    align-items: center;
    flex-wrap: wrap;
    min-height: 60px;
    position: relative;
    z-index: 9999;
    gap: 2rem; /* logo ve menü arası boşluk */
}

.logo {
    width: 140px;
    height: 50px;
    background: url('/app/models/logo/logo.png') no-repeat center;
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0; /* Logonun boyutu küçülmesin */
    margin-right: 2rem; /* Menüyle arasında boşluk */
}

.menu {
    padding: 0;
    text-align: center;
}

.menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    gap: 1rem;
}

.menu ul li {
    position: relative;
}

.menu ul li a {
    display: block;
    padding: 0.8rem 1.2rem;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.8rem; /* Burada yazı boyutunu küçülttüm */
}

.menu ul li a:hover {
    background-color: #facc15;
    color: #000;
    border-radius: 6px;
}

.menu .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2a2a2a;
    min-width: 200px;
    z-index: 1000;
    border-radius: 6px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.5);
}

.menu .dropdown:hover .dropdown-content {
    display: block;
}

.menu .dropdown-content li a {
    padding: 0.7rem 1rem;
    color: #fff;
    white-space: nowrap;
}

.menu .dropdown-content li a:hover {
    background-color: #facc15;
    color: #000;
}

.menu ul li a.active {
    background-color: #facc15;
    color: #000;
    border-radius: 6px;
}

.main-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.main-nav.active {
    display: block;
}

.hamburger-button {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

.hamburger-icon {
    width: 30px;
    height: 3px;
    background: #fff;
    display: block;
    position: relative;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    width: 30px;
    height: 3px;
    background: #fff;
    position: absolute;
    left: 0;
    transition: 0.3s;
}

.hamburger-icon::before {
    top: -10px;
}

.hamburger-icon::after {
    top: 10px;
}

form {
    max-width: 600px;
    margin: 100px auto 30px auto; /* Üst çubuktan ve alt çubuktan boşluk */
    padding: 25px 30px;
    border-radius: 8px;
    color: white;
    box-sizing: border-box;
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: rgba(255, 255, 255, 0.15); /* Hafif şeffaf arkaplan */
    backdrop-filter: blur(10px); /* Bulanıklık efekti */
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 15px rgb(0 0 0 / 0.1);
}

form h2 {
    margin-bottom: 25px;
    color: #f1c40f; /* Başlık rengi */
    text-align: center;
    font-weight: 700;
    font-size: 1.8rem;
}

label {
    font-weight: 600;
    display: block;
    margin-top: 12px;
    color: white; /* Label rengi */
    font-size: 0.95rem;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="password"], /* Şifre inputları eklendi */
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    margin-top: 4px;
    background-color: rgba(255, 255, 255, 0.2); /* Şeffaf input arkaplanı */
    border: 1.5px solid rgba(255, 255, 255, 0.4); /* Şeffaf kenarlık */
    border-radius: 6px;
    color: #eee;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical; /* Sadece textarea için geçerli */
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.25);
}

select option {
    color: black; /* Option içindeki metin rengi */
}

/* Genel Buton Stili */
form button {
    margin-top: 20px;
    background-color: #f1c40f; /* Sarı buton rengi */
    border: none;
    color: white;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    width: 100%; /* Varsayılan olarak tam genişlik */
    font-weight: 700;
    flex: 1; /* Button-group içinde esnek boyutlandırma */
    min-width: 120px;
}

/* Hata ve Başarı Mesajları */
.error-message {
    color: #e74c3c; /* Kırmızı hata rengi */
    font-size: 0.9em;
    margin-top: 5px;
    margin-bottom: 15px; /* Kaydol sayfası özel */
    text-align: center; /* Genel mesajlar için hizalama */
    background-color: #f2d7d5; /* Kırmızı arkaplan */
    padding: 15px 20px;
    border-radius: 6px;
    border: 1.5px solid #c0392b;
    font-weight: 600;
    font-size: 1rem;
}

.success-message {
    color: white;
    background-color: #27ae60; /* Yeşil başarı rengi */
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    border: 1.5px solid #229954;
}

/* Modal Stilleri (Kayıt Kuralları Modalı ve Genel Modallar) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000; /* Daha yüksek bir z-index, diğer öğeleri örtmek için */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Koyu şeffaf arka plan */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 40px 20px;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    justify-content: center; /* Popup'lar için merkezleme */
    align-items: center; /* Popup'lar için merkezleme */
}

.modal-content {
    background-color: rgba(28, 28, 28, 0.5); /* Daha şeffaf ve koyu modal arkaplanı */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    max-width: 600px;
    margin: 0 auto; /* Dikeyde ortalama */
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    position: relative;
    font-size: 16px;
    line-height: 1.6;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.5rem;
    color: #f1c40f; /* Modal başlık rengi */
    text-align: center;
}

.modal-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #eee;
}

.modal-content pre { /* Kayıt sayfasındaki metinler için */
    white-space: pre-wrap;
    max-height: 60vh;
    overflow-y: auto;
    background: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    font-size: 15px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s ease;
    user-select: none;
}

.close-btn:hover {
    color: #00aaff;
}



/* ==================================
    Mobil Global Ayarlar ve Arka Plan
================================== */
@media (max-width: 768px) {
    .hamburger-button {
        display: block;
        z-index: 10000;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        background: #1e1e1e;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        padding: 1rem;
        z-index: 9999;
    }

    .main-nav.active {
        display: flex;
    }

    .menu ul {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        margin: 0;
        gap: 0;
        display: none;
    }

    .main-nav.active .menu ul {
        display: flex;
    }

    .menu ul li {
        width: 100%;
    }

    .top-bar {
        justify-content: space-between;
        padding: 0 1rem;
    }

    .menu .dropdown-content {
        position: relative;
        background-color: #333;
        box-shadow: none;
        border-radius: 0;
        display: none;
        padding-left: 1rem;
    }

    .menu .dropdown.active .dropdown-content {
        display: block;
    }

    .menu .dropdown > a::after {
        content: ' ▼';
        float: right;
        font-size: 0.8rem;
    }

}



