/* Tüm sayfalarda temel boşlukları sıfırlıyoruz */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Sayfa genel görünümü */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f7f6f2;
    color: #2c2c2c;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* İçerikleri ortalamak için kapsayıcı sınıf */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Üst Kısım (Header ve Menü) */
header {
    background-color: #ffffff;
    border-bottom: 2px solid #e2e0d8;
    padding: 15px 0;
}

.header-icerik {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-baslik {
    font-size: 22px;
    font-weight: bold;
    color: #2f5d62;
    text-decoration: none;
}

/* Masaüstünde gizli olan mobil menü butonu */
#menu-buton {
    display: none;
    background-color: #2f5d62;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    font-size: 15px;
    border-radius: 5px;
    cursor: pointer;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 8px;
}

nav a {
    text-decoration: none;
    color: #2c2c2c;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 15px;
    transition: background-color 0.2s, color 0.2s;
}

nav a:hover,
nav a.aktif {
    background-color: #2f5d62;
    color: #ffffff;
}

/* Ana İçerik Alanı */
main {
    flex: 1;
    padding: 30px 0;
}

.kutu {
    background-color: #ffffff;
    border: 1px solid #e2e0d8;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.sayfa-baslik {
    font-size: 25px;
    color: #2f5d62;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0eee6;
    padding-bottom: 8px;
}

.alt-baslik {
    font-size: 19px;
    color: #2f5d62;
    margin-top: 18px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 12px;
}

/* Ana Sayfa Giriş Bölümü */
.giris-alani {
    display: flex;
    align-items: center;
    gap: 25px;
}

.profil-foto {
    width: 165px;
    height: 165px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    border: 3px solid #2f5d62;
    flex-shrink: 0;
}

.buton {
    display: inline-block;
    background-color: #d96b43;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 5px;
    margin-top: 8px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.2s;
}

.buton:hover {
    background-color: #bf5732;
}

/* Kart Düzeni (Ana sayfa özetleri ve Hobilerim) */
.kart-izgara {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.kart {
    background-color: #ffffff;
    border: 1px solid #e2e0d8;
    border-radius: 8px;
    padding: 20px;
}

.kart h3 {
    color: #2f5d62;
    margin-bottom: 8px;
    font-size: 18px;
}

/* Hakkımda Sayfası Bilgi Tablosu */
.bilgi-tablosu {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.bilgi-tablosu td {
    padding: 10px;
    border-bottom: 1px solid #e2e0d8;
}

.bilgi-tablosu td:first-child {
    font-weight: bold;
    width: 160px;
    color: #2f5d62;
}

/* Fotoğraf Galerisi */
.galeri-izgara {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.galeri-kart {
    background-color: #ffffff;
    border: 1px solid #e2e0d8;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.galeri-kart:hover {
    transform: translateY(-3px);
}

.galeri-kart img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.galeri-kart p {
    padding: 10px 12px;
    margin: 0;
    font-size: 14px;
    color: #5f5f5f;
    text-align: center;
}

/* Büyük Fotoğraf Görüntüleme Penceresi (Lightbox) */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.78);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

#lightbox.acik {
    display: flex;
}

.lightbox-icerik {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    max-width: 650px;
    width: 100%;
    text-align: center;
    position: relative;
}

.lightbox-icerik img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
}

#lightbox-aciklama {
    margin-top: 10px;
    margin-bottom: 0;
    color: #2c2c2c;
    font-weight: 500;
}

#lightbox-kapat {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #d96b43;
    color: #ffffff;
    border: none;
    padding: 5px 11px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
}

/* Hedeflerim Listesi */
.hedef-liste {
    list-style: none;
}

.hedef-liste li {
    padding: 12px 15px;
    border-left: 4px solid #2f5d62;
    background-color: #f9f8f4;
    margin-bottom: 12px;
    border-radius: 0 6px 6px 0;
}

.hedef-liste li.oncelikli {
    border-left-color: #d96b43;
}

/* İletişim Formu */
.form-grup {
    margin-bottom: 15px;
}

.form-grup label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c2c2c;
}

.form-grup input,
.form-grup textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc9be;
    border-radius: 5px;
    font-family: inherit;
    font-size: 15px;
}

.form-grup input:focus,
.form-grup textarea:focus {
    outline: none;
    border-color: #2f5d62;
}

#form-sonuc {
    margin-top: 15px;
    padding: 12px;
    border-radius: 5px;
    display: none;
}

#form-sonuc.basarili {
    display: block;
    background-color: #e6f2ec;
    color: #21573b;
    border: 1px solid #b5dec7;
}

#form-sonuc.hata {
    display: block;
    background-color: #fbeaea;
    color: #8b2626;
    border: 1px solid #e6b8b8;
}

.metin-link {
    color: #2f5d62;
    text-decoration: underline;
}

.buton-kucuk {
    background-color: #2f5d62;
    color: #ffffff;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    margin-left: 8px;
}

.buton-kucuk:hover {
    background-color: #23474b;
}

.kopyala-bilgi {
    font-size: 13px;
    color: #21573b;
    margin-bottom: 8px;
}

/* Alt Kısım (Footer) */
footer {
    background-color: #ffffff;
    border-top: 1px solid #e2e0d8;
    text-align: center;
    padding: 18px 0;
    font-size: 14px;
    color: #5f5f5f;
    margin-top: auto;
}

footer p {
    margin: 0;
}

/* Telefon ve Tablet Ekranları İçin Uyumluluk */
@media (max-width: 768px) {
    #menu-buton {
        display: block;
    }

    nav {
        width: 100%;
    }

    nav ul {
        display: none;
        flex-direction: column;
        margin-top: 12px;
        gap: 6px;
    }

    nav ul.acik {
        display: flex;
    }

    nav a {
        display: block;
        border: 1px solid #f0eee6;
    }

    .giris-alani {
        flex-direction: column;
        text-align: center;
    }

    .bilgi-tablosu td:first-child {
        width: 120px;
    }
}
