/* Temel Ayarlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-wrapper {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
}

/* Kart Yapısı */
.card {
    background: #fff;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    min-height: 650px;
}

/* Sol Taraf (Resim) */
.image-side {
    flex: 1.1;
    position: relative;
    background: url('https://images.unsplash.com/photo-1511795409834-ef04bbd61622?q=80&w=1500') center/cover;
}

.image-side .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.image-content {
    position: absolute;
    bottom: 50px;
    left: 40px;
    color: white;
    z-index: 2;
}

.image-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    line-height: 1.1;
    margin-bottom: 10px;
}

.image-content p {
    font-size: 14px;
    opacity: 0.9;
}

/* Sağ Taraf (Form) */
.form-side {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 35px;
}

/* Inputlar */
.input-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

input[type="text"] {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

input:focus {
    border-color: #999;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.02);
}

.input-row {
    display: flex;
    gap: 15px;
}

.input-row .input-group {
    flex: 1;
}

/* Yükleme Kutusu */
.upload-box {
    background: #fafafa;
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 30px;
    transition: 0.3s;
}

.upload-box:hover {
    background: #f1f1f1;
    border-color: #aaa;
}

.upload-box .icon {
    color: #888;
    margin-bottom: 10px;
}

.upload-box p {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.upload-box span {
    font-size: 12px;
    color: #999;
}

/* Butonlar */
.primary-btn {
    background: #a1a1a1; /* Görseldeki gri tonu */
    color: white;
    border: none;
    padding: 16px;
    width: 100%;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.primary-btn:hover {
    background: #888;
}

.secondary-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    text-decoration: none;
    color: #666;
    font-size: 13px;
    transition: 0.2s;
}

.secondary-link:hover {
    color: #000;
    text-decoration: underline;
}

/* Mobil Uyumluluk */
@media (max-width: 850px) {
    .card {
        flex-direction: column;
    }
    .image-side {
        min-height: 250px;
    }
    .form-side {
        padding: 40px 25px;
    }
}


/* --- ORTAK VE İNDEX STİLLERİ (ÖNCEKİLERLE AYNI) --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: #f5f5f5; min-height: 100vh; padding: 40px 20px; }

/* --- GALERİ ÖZEL STİLLERİ --- */
.gallery-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.gallery-subtitle {
    color: #888;
    margin-bottom: 30px;
}

/* Sorgulama Çubuğu */
.search-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.search-container input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #ddd;
    border-radius: 50px;
    outline: none;
    font-size: 14px;
}

.search-btn {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
}

/* Aksiyon Çubuğu */
.gallery-actions {
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.stats { font-weight: 600; font-size: 14px; color: #444; }

.action-buttons { display: flex; gap: 10px; }

.outline-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 13px;
}

.primary-btn.small {
    padding: 10px 20px;
    width: auto;
}

/* Fotoğraf Gridi */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.photo-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    aspect-ratio: 1 / 1;
}

.img-wrapper {
    width: 100%;
    height: 100%;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.photo-card:hover img {
    transform: scale(1.05);
}

/* Custom Checkbox */
.checkbox-container {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    cursor: pointer;
}

.select-cb { display: none; }

.checkmark {
    display: block;
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.8);
    border: 2px solid #ddd;
    border-radius: 6px;
    position: relative;
}

.select-cb:checked + .checkmark {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.select-cb:checked + .checkmark:after {
    display: block;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 0;
    color: #aaa;
}

/* Custom Select Stilleri */
.custom-select {
    position: relative;
    width: 100%;
}

.select-button {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    min-height: 48px;
}

.select-button:hover {
    border-color: #bbb;
    background: #fafafa;
}

.select-button.active {
    border-color: #a1a1a1;
    box-shadow: 0 0 0 3px rgba(161, 161, 161, 0.1);
}

.select-text {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 400;
}

.select-text.placeholder {
    color: #aaa;
}

.select-icon {
    color: #888;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.select-button.active .select-icon {
    transform: rotate(180deg);
    color: #a1a1a1;
}

/* Dropdown Menü */
.select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    max-height: 280px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.select-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Scrollbar Stilleri */
.select-dropdown::-webkit-scrollbar {
    width: 6px;
}

.select-dropdown::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.select-dropdown::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.select-dropdown::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* Seçenekler */
.select-option {
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #1a1a1a;
}

.select-option:first-child {
    border-radius: 12px 12px 0 0;
}

.select-option:last-child {
    border-radius: 0 0 12px 12px;
}

.select-option:hover {
    background: #f8f8f8;
}

.select-option.selected {
    background: #f0f0f0;
    font-weight: 500;
}

.option-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}


/* --- GALERİ GENEL YAPI --- */
.gallery-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;
}

.gallery-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    margin-bottom: 10px;
}

.gallery-subtitle { color: #888; margin-bottom: 30px; font-size: 14px; }

/* Sorgulama Alanı */
.search-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.search-container input {
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 50px;
    width: 300px;
    outline: none;
}

.search-btn {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
}

/* Aksiyon Çubuğu */
.gallery-actions {
    background: white;
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.stats { font-size: 13px; font-weight: 600; color: #555; }

/* Fotoğraf Gridi */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.photo-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.photo-card:hover img { transform: scale(1.03); }

/* Checkbox (Resmin üstündeki beyaz kutu) */
.checkbox-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
}

.select-cb {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #1a1a1a;
}

/* --- LIGHTBOX (SİHİRLİ DÜZELTME) --- */
#lightbox {
    display: none; /* Başlangıçta gizli */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000; /* Her şeyin üstünde olmalı */
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 85%;
    max-height: 85%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.prev { left: 30px; }
.next { right: 30px; }