* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Roboto', sans-serif;
}

/* --- LOGO VE ÜST MENÜ (NAVBAR) DÜZENLEMESİ --- */
.arsiv-header {
    background: #ffffff;
    padding: 15px 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logonun devleşmesini engelleyen kesin sınırlandırma */
.arsiv-header img, 
header img, 
.logo {
    max-height: 80px !important;
    max-width: 250px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.arsiv-header img:hover {
    transform: scale(1.03);
}

.nav-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    background-color: #003366;
    color: #ffffff;
}

/* --- GENEL SAYFA TASARIMI --- */
.arsiv-body {
    background-color: #fafafa;
}

.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background-image: url('https://images.unsplash.com/photo-1505322022379-7c3353ee6291?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.content {
    position: relative;
    z-index: 1;
    color: #fdfdfd;
    padding: 0 20px;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

p {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
    border: 2px solid #fff;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: #fff;
    color: #333;
}

/* --- İÇERİK KUTULARI --- */
.content-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
}

.card-box {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    line-height: 1.6;
    color: #333;
}

.card-box h2 {
    color: #003366;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* --- GALLERY GRID (FOTOĞRAF IZGARASI) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 10px;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 6px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.album-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 0.75rem;
    pointer-events: none;
}

/* --- AÇILIR PENCERE (MODAL) DÜZENLEMESİ --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
}

.modal-content {
    display: flex;
    width: 90%;
    max-width: 950px;
    height: 80vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.modal-image {
    flex: 1.8;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.modal-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-details {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: 20px;
    height: 100%;
    overflow: hidden;
}

/* Açıklama Alanı (Sağ Panelin En Üstüne Temiz Şekilde Konumlandırıldı) */
.modal-description {
    position: static;
    background: none;
    color: #333333;
    padding: 0 0 12px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 10px;
    text-shadow: none;
    pointer-events: auto;
}

.modal-description p {
    margin: 0;
    font-size: 0.95rem;
    color: #333333;
    line-height: 1.4;
    font-weight: 400;
}

.modal-actions {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.modal-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.modal-comments {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.comment-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 10px;
    font-size: 0.9rem;
    padding-right: 5px;
}

.comment-list p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.3;
}

.comment-input {
    display: flex;
    border-top: 1px solid #dbdbdb;
    padding-top: 10px;
}

.comment-input input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 8px;
    font-size: 0.9rem;
}

.comment-input button {
    background: none;
    border: none;
    color: #0095f6;
    font-weight: bold;
    cursor: pointer;
    padding: 0 8px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    z-index: 10;
}

/* Modal Ok Butonları */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 1.3rem;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 5;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* MOBİL UYUM */
@media (max-width: 768px) {
    .arsiv-header img {
        max-height: 60px !important;
    }
    
    .modal-content {
        flex-direction: column;
        height: 90vh;
        overflow-y: auto;
    }

    .modal-image {
        min-height: 280px;
        flex: none;
    }

    .modal-details {
        flex: none;
        overflow: visible;
    }
}
