/* =========================================================
   stil.css  -  Kişisel Blog Sitesi Harici Stil Dosyası
   Bu dosya her sayfaya <link rel="stylesheet" href="css/stil.css">
   etiketiyle bağlanır. Böylece tüm sayfalar aynı görünümü alır.
   ========================================================= */

/* ---------- 1) Genel ayarlar ---------- */
* {
    box-sizing: border-box;   /* padding ve border, genişliğe dahil edilir */
}

body {
    margin: 0;                /* tarayıcının varsayılan dış boşluğunu sıfırla */
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #3b2f2f;           /* koyu kahve yazı rengi */
    background-color: #faf5ef; /* krem arka plan */
}

h1, h2, h3 {
    font-family: Georgia, "Times New Roman", serif;
    color: #7a3e3e;
    line-height: 1.3;
}

h1 { font-size: 34px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }

/* Resimler kutularından taşmasın (telefon ekranı için önemli) */
img {
    max-width: 100%;
    height: auto;
}

/* ---------- 2) Link (köprü) renkleri ---------- */
a:link    { color: #b5523b; }   /* ziyaret edilmemiş link */
a:visited { color: #8a4f6b; }   /* ziyaret edilmiş link   */
a:hover   { color: #3b2f2f; }   /* üzerine gelindiğinde   */

/* ---------- 3) Sayfa kapsayıcısı ---------- */
/* Genişliği % ile verdik; ekran küçülünce sayfa da küçülür */
.kapsayici {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;           /* ortala */
}

/* ---------- 4) Üst kısım (logo + menü) ---------- */
#ust {
    background-color: #ffffff;
    border-bottom: 3px solid #e9a88c;
    padding: 12px 0;
    text-align: center;
}

#logo {
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: bold;
    color: #7a3e3e;
    text-decoration: none;
}

#logo span {
    color: #e08b6d;           /* logodaki "Günlüğü" kelimesi farklı renk */
}

/* Menü: liste elemanlarını yan yana dizmek için inline-block */
.menu {
    list-style: none;
    margin: 10px 0 0 0;
    padding: 0;
}

.menu li {
    display: inline-block;
    margin: 4px 2px;
}

.menu a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    color: #3b2f2f;
}

.menu a:hover {
    background-color: #f3d9cc;
}

/* Hangi sayfadaysak o menü elemanı "aktif" class'ı ile renklenir */
.menu a.aktif {
    background-color: #b5523b;
    color: #ffffff;
}

/* ---------- 5) Kapak resmi (banner) ---------- */
.banner img {
    display: block;
    width: 100%;
}

/* ---------- 6) İçerik kutuları ---------- */
.icerik {
    padding: 30px 0 40px 0;
}

.kutu {
    background-color: #ffffff;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 14px;
    border: 1px solid #f0e2d6;
    overflow: hidden;         /* içindeki float resim kutudan taşmasın */
}

/* Önemli kelimeleri vurgulamak için (span ile kullanılır) */
.vurgu {
    background-color: #fbe3d6;
    padding: 0 5px;
    border-radius: 4px;
    font-weight: bold;
}

/* Üstü çizili yazı (ders notundaki line-through örneği) */
.cizili {
    text-decoration: line-through;
    color: #999999;
}

/* ---------- 7) Butonlar ---------- */
.buton {
    display: inline-block;
    background-color: #b5523b;
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
}

.buton:hover {
    background-color: #7a3e3e;
}

/* Linke buton görünümü verildiğinde yazı beyaz kalsın */
a.buton:link, a.buton:visited {
    color: #ffffff;
}

/* ---------- 8) Ana sayfa: blog yazıları ---------- */
.yazi-bilgi {
    font-size: 14px;
    color: #9a8478;
}

/* Yan yana 3 kart (inline-block yöntemiyle) */
.kart {
    display: inline-block;
    vertical-align: top;
    width: 32%;
    margin: 0 1% 15px 0;
    padding: 18px;
    background-color: #fdf1ea;
    border-radius: 12px;
    text-align: center;
}

.kart h3 {
    margin-top: 5px;
}

/* Satırdaki son kartın sağında boşluk kalmasın */
.son {
    margin-right: 0;
}

/* ---------- 9) Hakkımda: profil fotoğrafı ---------- */
/* float: left -> resim sola, yazı sağına sarılır */
.profil-foto {
    float: left;
    width: 220px;
    margin: 0 25px 10px 0;
    border-radius: 50%;
    border: 5px solid #f3d9cc;
}

/* ---------- 10) Tablolar ---------- */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    border: 1px solid #ead7cb;
    text-align: left;
}

th {
    background-color: #b5523b;
    color: #ffffff;
}

/* Tablo satırları sırayla farklı renkte */
tr:nth-child(even) td {
    background-color: #fdf6f1;
}

/* ---------- 11) Hobiler ---------- */
.hobi-resim {
    float: right;             /* resim sağda, yazı solunda */
    width: 260px;
    margin: 0 0 10px 20px;
    border-radius: 12px;
}

/* ---------- 12) Fotoğraf galerisi ---------- */
.galeri-resim {
    display: inline-block;
    width: 32%;
    margin: 0 1% 15px 0;
    text-align: center;
    font-size: 15px;
}

.galeri-resim img {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    border: 4px solid #ffffff;
}

.galeri-resim img:hover {
    border-color: #e9a88c;
}

/* Tıklanan resmin büyük gösterildiği alan (başta gizli) */
#buyuk-alan {
    display: none;
    text-align: center;
    background-color: #3b2f2f;
    color: #ffffff;
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 25px;
}

#buyuk-alan img {
    max-height: 500px;
    border-radius: 8px;
}

/* ---------- 13) Hedefler ---------- */
.hedef {
    padding: 12px 18px;
    margin-bottom: 10px;
    background-color: #fdf1ea;
    border-left: 6px solid #e9a88c;
    border-radius: 8px;
}

.tamam {
    color: #3d7a5a;
    font-weight: bold;
}

/* İlerleme çubuğu (hedeflerim sayfası) */
.cubuk-dis {
    width: 100%;
    height: 30px;
    background-color: #f0e2d6;
    border-radius: 20px;
    overflow: hidden;
}

#cubuk-ic {
    width: 0%;
    height: 30px;
    line-height: 30px;        /* yazıyı dikeyde ortalar */
    background-color: #3d7a5a;
    color: #ffffff;
    text-align: center;
    border-radius: 20px;
}

/* ---------- 14) İletişim formu ---------- */
.form-satir {
    margin-bottom: 16px;
}

.form-satir label.baslik {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

input[type="text"], input[type="email"], input[type="number"],
input[type="date"], select, textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #d9c3b6;
    border-radius: 8px;
    font-family: inherit;
    background-color: #ffffff;
}

#sonuc {
    margin-top: 15px;
    font-weight: bold;
    color: #3d7a5a;
}

/* ---------- 15) Alıntı bölümü (arka plan resmi) ---------- */
.alinti {
    background-image: url("../img/banner-genis.jpg");
    background-size: cover;
    background-attachment: fixed;  /* arka plan sabit kalır */
    padding: 50px 20px;
    text-align: center;
    border-radius: 14px;
    margin-bottom: 25px;
}

.alinti p {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 15px 25px;
    border-radius: 10px;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 20px;
    margin: 0;
}

/* ---------- 16) Alt kısım ---------- */
#alt {
    background-color: #3b2f2f;
    color: #f3d9cc;
    text-align: center;
    padding: 20px 0;
    font-size: 15px;
}

#alt a:link, #alt a:visited {
    color: #e9a88c;
}

/* ---------- 17) Telefon ekranı ayarları ----------
   Ekran genişliği 700 pikselden küçükse aşağıdaki kurallar çalışır.
   Yan yana duran kutular alt alta geçer. */
@media (max-width: 700px) {
    body { font-size: 16px; }
    h1 { font-size: 27px; }
    h2 { font-size: 22px; }

    .kart, .galeri-resim {
        width: 100%;          /* kartlar alt alta */
        margin-right: 0;
    }

    .profil-foto, .hobi-resim {
        float: none;          /* resim yazının üstüne gelir */
        display: block;
        margin: 0 auto 15px auto;
    }

    .profil-foto { width: 170px; }
    .hobi-resim  { width: 100%; }

    .kutu { padding: 18px; }

    .alinti { background-attachment: scroll; }
}
