/* Genel Ayarlar ve Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Daha modern bir font */
    line-height: 1.6;
    background-color: #f8f8f8; /* Daha açık gri arka plan */
    color: #333;
    -webkit-font-smoothing: antialiased; /* Fontları daha pürüzsüz yapar */
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: auto;
    /* overflow: hidden; */ /* <-- BU SATIRI SİLİN VEYA YORUM SATIRI YAPIN */
    padding: 20px 0;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    background: #222; /* Daha koyu header */
    color: #fff;
    padding: 0.7rem 0; /* Header yüksekliğini biraz artır */
    position: sticky;
    top: 0;
    opacity: 0.93;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Hafif gölge */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; /* Yatay padding'i */
}

header h1 {
    font-size: 1.8em;
    margin: 0;
}

header h1 a {
    color: #fff;
    text-decoration: none;
    border-bottom: none;
}

header nav ul {
    list-style: none;
}

header nav ul li {
    display: inline;
    margin-left: 20px;
}

header nav ul li a {
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #666666; /* Hover rengi */
    text-decoration: none;
}

.header-right { /* HTML'de yeni eklenen div için */
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-icon {
    font-size: 1.5em;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.account-icon:hover {
    color: #007bff;
}

.membership-status {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: bold;
    color: #fff;
    background-color: #555; /* Varsayılan gri */
}

.membership-status.guest {
    background-color: #f0ad4e; /* Misafir için turuncu */
}

.membership-status.standard {
    background-color: #5bc0de; /* Standart için mavi */
}

.membership-status.premium {
    background-color: #5cb85c; /* Premium için yeşil */
}


/* Ana İçerik */
.main-content {
    padding: 20px 0;
}

/* Butonlar için genel stil (HTML'de 'button' sınıfını kullandığımız için) */
.button {
    display: inline-block;
    background: #333; /* Rengi #007bff'den #333'e çevrildi */
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s ease;
}

.button:hover {
    background: #555; /* Hover rengi biraz daha açık gri olarak ayarlandı */
}

.button-primary { /* Birincil butonlar */
    background: #333; /* Rengi #007bff'den #333'e çevrildi */
}
.button-primary:hover {
    background: #555; /* Hover rengi biraz daha açık gri olarak ayarlandı */
}

.button-secondary { /* İkincil butonlar */
    background: #6c757d; /* Bu renk aynı kalabilir veya #333 ile tutarlı hale getirilebilir */
}

.button-secondary:hover {
    background: #5a6268; /* Bu renk aynı kalabilir */
}

.button-danger { /* Tehlikeli işlem butonları */
    background-color: #dc3545; /* Bu renk tehlikeyi belirtmek için aynı kalabilir */
}

.button-danger:hover {
    background-color: #c82333;
}


/* --- Hero Banner (Giriş Sayfası Banner'ı) --- */
.hero-banner {
    width: 100%;
    height: 400px;
    background: url('https://picsum.photos/id/1040/1920/400') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
    /* overflow: hidden; */ /* <-- BU SATIR DAHA ÖNCE SİLİNMİŞTİ, KALDIRILDIĞINDAN EMİN OLUN */
}

/* Banner overlay (metnin daha okunabilir olması için) */
.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Yarı şeffaf siyah katman */
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2; /* Overlay'in üstünde kalmasını sağlar */
    max-width: 800px;
    margin: 0 auto 30px; /* Alttan boşluk bırakın */
    padding: 0 20px; /* Yanlardan boşluk ekleyin */
}

.banner-content h1 {
    font-size: 3.5em; /* Daha büyük başlık */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Metin gölgesi */
}

.banner-content p {
    font-size: 1.3em; /* Daha belirgin açıklama */
    margin-bottom: 0; /* Artık buton yok, alttan boşluk vermeye gerek yok */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}


/* Arama ve Filtre Bölümü (Banner içindeki versiyon) */
.gallery-controls { /* Hem banner içinde hem de ana içerik kısmında kullanılabilir */
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible !important;
    gap: 15px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.2); /* Yarı şeffaf arka plan */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Hafif gölge */
    width: 90%;
    max-width: 700px; /* Arama ve filtrelerin maksimum genişliği */
    margin-top: 20px; /* Banner içeriği ile arama çubuğu arasına boşluk */
}

.search-bar {
    position: relative;
    flex-grow: 1;
    display: flex;
}

.search-bar input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1em;
    outline: none;
    background-color: rgba(255, 255, 255, 0.9); /* Inputun arka planı hafif şeffaf olsun */
    color: #333;
}
.search-bar input::placeholder {
    color: #888;
}

.search-bar button {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: #666666;
}


.category-dropdown {
    position: relative;
    display: inline-block;
    z-index: 9999;
}

.category-dropdown-button {
    /* Mevcut stiller */
    background-color: #333; /* Butonların rengini değiştirdiğimiz yer */
    color: white;
    padding: 10px 15px;
    font-size: 1em;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.category-dropdown-button:hover {
    background-color: #555;
}

.category-dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10000;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 5px;
    left: 0;
}

.category-dropdown-content button {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s ease;
}


.category-dropdown-content button:hover {
    background-color: #ddd;
}

.category-dropdown-content button.active {
    background-color: #a6a6a6; /* Aktif kategori rengi */
    color: white;
}

/* "show" sınıfı eklendiğinde içeriği göster */
.category-dropdown-content.show {
    display: block;
}


/* Galeri Grid Düzeni - Masonry benzeri */
.gallery-grid {
    column-count: 3; /* Varsayılan olarak 3 sütun */
    column-gap: 20px; /* Sütunlar arası boşluk */
    padding: 20px 0;
    margin-top: 30px; /* Banner ile galeri arasında boşluk */
}

/* Her bir galeri öğesi */
.gallery-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    break-inside: avoid;
    display: inline-block;
    width: 100%;
}

.gallery-image-wrapper {
    display: block;
    height: auto;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.gallery-info {
    padding: 15px;
    text-align: left;
}

.gallery-info h4 {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.gallery-info p {
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
}

/* Yükleme ve Daha Fazla Butonu */
.loading-indicator {
    text-align: center;
    padding: 20px;
    font-size: 1.2em;
    color: #555;
    display: none; /* Varsayılan olarak gizli */
}

.load-more-button {
    display: block;
    margin: 30px auto;
    width: fit-content;
    padding: 12px 25px;
    border: none;
    font-size: 1.1em;
    background-color: #555555; /* Yeşil bir renk */
    color: white;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.load-more-button:hover {
    background-color: #7a7a7a;
    border: none;
}


/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 30px;
}

footer p {
    margin: 0;
}

/* Modallar (Giriş / Kayıt / Profil) */
.modal {
    display: none; /* Varsayılan olarak gizli */
    position: fixed;
    z-index: 1001; /* Header'dan daha yüksek */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6); /* Hafif karartılmış arka plan */
    justify-content: center;
    align-items: center;
}

.modal-active {
    display: flex; /* JavaScript ile görünür yapıldığında */
}

.modal-content {
    background-color: #fefefe;
    margin: auto; /* Ortalamak için */
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px; /* Maksimum genişlik */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative; /* Kapatma butonu için */
    animation: fadeIn 0.3s ease-out; /* Hafif bir animasyon */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 1.6em;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

/* Modal içerisindeki butonlar için */
.modal-content .button { /* Genel .button sınıfını kullananlar */
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    margin-top: 10px;
}


.register-text, .login-text {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #777;
}

.register-text a, .login-text a {
    color: #666666;
    font-weight: 500;
}

/* Profil Bölümü */
.profile-section {
    text-align: center;
}

.profile-section p {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #444;
}

.profile-section p strong {
    color: #222;
}

/* current-membership sınıfı için */
.profile-section .current-membership {
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: bold;
    color: #fff;
    background-color: #555; /* Varsayılan gri */
}
/* Üyelik durumlarına göre renkler (script.js'de atanacak) */
.profile-section .current-membership.guest {
    background-color: #f0ad4e;
}
.profile-section .current-membership.standard {
    background-color: #5bc0de;
}
.profile-section .current-membership.premium {
    background-color: #5cb85c;
}


.profile-section .button { /* HTML'de button sınıfını kullanır */
    margin-top: 15px;
    width: auto;
    padding: 10px 20px;
}

/* Görsel Detay Sayfası */
.image-detail-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.detail-image-wrapper {
    flex: 2;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.detail-image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.detail-info {
    flex: 1;
    min-width: 250px;
    padding: 15px 0;
}

.detail-info h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 10px;
}

.detail-info p {
    font-size: 1em;
    color: #555;
    margin-bottom: 8px;
}

.detail-info p strong {
    color: #222;
}

.detail-description {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.95em;
    color: #444;
    line-height: 1.6;
}

.download-button {
    margin-top: 25px;
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.download-button:hover {
    background-color: #333;
}


/* Mobil Uyumlluluk (Media Queries) */
@media (max-width: 1024px) {
    /* Hero Banner için */
    .hero-banner {
        padding: 80px 15px 30px; /* Dikey boşlukları ayarla */
        min-height: 350px;
    }
    .banner-content h1 {
        font-size: 2.2em;
    }
    .banner-content p {
        font-size: 1em;
    }
    .banner-content {
        margin-bottom: 20px; /* Mobil görünümde de boşluk */
    }
    .gallery-controls { /* Banner içindeki .gallery-controls */
        width: 95%; /* Mobil için daha geniş */
    }

    .gallery-grid {
        column-count: 2; /* Tablet ve daha küçük ekranlarda 2 sütun */
        column-gap: 15px;
    }
    .detail-image-wrapper, .detail-info {
        flex: 1 1 100%; /* Mobil'de tam genişlik kapla */
        min-width: unset;
    }
    .image-detail-container {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    header nav ul {
        padding: 0;
    }
    header nav ul li {
        margin: 0 10px;
    }
    .header-right { /* Mobil'de header-right */
        margin-top: 10px;
    }

    .container {
        width: 95%;
        padding: 10px 0;
    }

    /* Hero Banner için */
    .hero-banner {
        padding: 60px 15px 20px;
        min-height: 300px;
    }
    .banner-content h1 {
        font-size: 1.8em;
    }
    .banner-content p {
        font-size: 0.9em;
    }
    .banner-content {
        margin-bottom: 15px;
    }
    .gallery-controls { /* Banner içindeki .gallery-controls */
        width: 100%; /* Mobil için tam genişlik */
        flex-direction: column; /* Kontrolleri alt alta yığ */
        gap: 10px; /* Aralarındaki boşluk */
    }
    .search-bar {
        max-width: 100%;
        flex-direction: column; /* Mobil'de arama çubuğunu alt alta yığ */
        gap: 5px; /* Input ve buton arası boşluk */
    }
    .search-bar input {
        border-radius: 5px; /* Mobil'de köşeleri tamamen yuvarlak yap */
    }
    .search-bar button {
        border-radius: 5px; /* Mobil'de köşeleri tamamen yuvarlak yap */
        width: 100%; /* Butonu tam genişlik yap */
        color: #333;
    }


    .gallery-grid {
        column-count: 1; /* Mobil cihazlarda tek sütun */
        column-gap: 15px;
        padding: 10px 0;
    }

    .gallery-item {
        margin-bottom: 15px;
    }

    .modal-content {
        padding: 15px;
        width: 95%;
    }
    .modal-content h3 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }
    .form-group input {
        padding: 10px;
        font-size: 0.9em;
    }
    .modal-content .button { /* Modal butonları */
        padding: 10px;
        font-size: 1em;
    }
    .register-text, .login-text {
        font-size: 0.8em;
    }

    .image-detail-container {
        padding: 15px;
        margin-top: 20px;
    }
    .detail-info {
        padding: 0;
    }
    .detail-info h2 {
        font-size: 1.5em;
    }
    .download-button {
        padding: 12px;
        font-size: 1.1em;
    }
}
/* Hakkımızda Sayfası Stilleri */
#about-us-section {
    padding: 60px 0;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 40px;
    margin-bottom: 40px;
}

.section-title {
    text-align: center;
    font-size: 50px;
    color: #333;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 4px;
    background-color: #333;
    border-radius: 2px;
}

.about-content p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #555;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
}

.about-content strong {
    color: #333;
    font-size: 25px;
    padding: 10px;
}

.subsection-title {
    font-size: 1.8em;
    color: #666666;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding: 5px;
    text-align: center;
    padding: 100px;
}

.about-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
    text-align: center;
}

.about-content ul li {
    margin-bottom: 10px;
    font-size: 1.05em;
    color: #444;
    position: relative;
    padding: 25px;
    text-align: center;
}

/* Mobil uyumluluk için (isteğe bağlı) */
@media (max-width: 768px) {
    #about-us-section {
        padding: 30px 15px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .section-title::after {
        width: 100%;
        height: 3px;
        
    }
    .about-content p {
        font-size: 1em;
    }
    .subsection-title {
        font-size: 1.5em;
        margin-top: 20px;
    }
    .about-content ul li {
        font-size: 1em;
    }
}