::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}
body {
    scrollbar-width: none; /* Firefox */
}












:root{
  --header-height: 80px;
  --header-height-shrink: 60px;
  --accent: #c0392b;
}

/* --- reset ve temel --- */
*,
*::before,
*::after { box-sizing: border-box; }

body {
    font-family: 'DM Sans', sans-serif;
    background-color: #f9f7f3;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    
}

/* 🔹 Site header (tek tanım, çakışmayı kaldırdık) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: height 0.3s ease, background 0.3s ease, padding 0.3s ease;
  z-index: 1000;
}

.site-header.shrink {
  height: var(--header-height-shrink);
}

/* Header içindeki bağlantılar .site-header'a göre hedeflendi */
.site-header a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
    transition: opacity 0.3s;
}
.site-header a:hover { opacity: 0.8; }

/* Navbar kapsayıcı (içerik hizalama) */
.navbar {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* header yüksekliğine göre ortalama hizalama sağlar */
}

/* --- main: header yüksekliğine göre boşluk veriyoruz (JS ile dinamik de ayarlanacak) --- */
main {
    /* üst boşluk: header yüksekliği + içerik paddingle birlikte çalışsın */
    padding-top: calc(var(--header-height) + 1rem);
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 2rem;

    max-width: 1000px;
    margin: auto;
    transition: padding-top 0.3s ease;
}

/* body.header-shrink varsa main padding-top'u küçülecek (JS ile sınıf eklenirse çalışır) */
body.header-shrink main {
    padding-top: calc(var(--header-height-shrink) + 1rem);
}

/* 🔹 Kitap Kartları (orijinal stiller korunmuştur) */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5em;
}

.book-card {
    background: white;
    padding: 1em;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.7em;
}

.book-card p {
    font-size: 0.95em;
    color: #555;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

.book-card h3 {
    margin-top: 0;
    font-size: 1.2em;
}

/* 🔹 Butonlar */
.btn {
    display: inline-block;
    padding: 0.5em 1em;
    background-color: #c0392b;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #a93226;
}

/* Book detail ve comment kutuları (korundu) */
.book-detail-card {
    display: flex;
    gap: 2em;
    background: white;
    padding: 1.5em;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 2em;
}

.book-detail-card img { max-width: 200px; border-radius: 8px; }

.book-info { flex: 1; }

.comment-box {
    background: white;
    padding: 1em;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    margin-bottom: 1em;
}

.comment-box textarea {
    width: 100%;
    padding: 0.7em;
    border-radius: 8px;
    border: 1px solid #ddd;
    resize: vertical;
}

/* Form kartı (korundu) */
.form-card {
    max-width: 500px;
    margin: 2em auto;
    padding: 2em;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.form-card input,
.form-card textarea {
    width: 100%;
    padding: 0.7em 1em;
    margin-bottom: 1.2em;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.2s ease;
}

/* Arama / Autocomplete (tek tanım, çakışanları kaldırdım) */
#arama {
    width: 100%;
    max-width: 400px;
    padding: 0.8em 1em;
    font-size: 1em;
    border-radius: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 1.5em;
    transition: all 0.2s ease;
}

#arama:focus {
    outline: none;
    border-color: #c0392b;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

/* Autocomplete container */
.autocomplete-items {
    position: absolute;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: white;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
}

/* Autocomplete item layout */
.autocomplete-item {
    display: flex;
    align-items: center;
    padding: 0.5em;
    cursor: pointer;
    transition: background 0.2s;
}

.autocomplete-item:hover { background-color: #f5f5f5; }

.auto-img { width: 40px; height: 55px; object-fit: cover; border-radius: 4px; margin-right: 0.8em; }
.auto-info { flex: 1; line-height: 1.2; }

/* Hero Bölümü (header yüksekliği ile uyumlu) */
.hero {
    min-height: calc(100vh - var(--header-height));
    background: #f9f9f3;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    margin: 0;
    position: relative;
    top: 0;
    transition: min-height 0.3s ease;
}

/* hero min-height shrink ile uyumlu */
body.header-shrink .hero {
    min-height: calc(100vh - var(--header-height-shrink));
}

.hero-content { max-width: 600px; }

.hero-image { max-width: 220px; margin-bottom: 1rem; } /* 1000px hatasını düzelttim */

.hero-content h1 { font-size: 3rem; margin: 0 0 1rem 0; color: #333; }
.hero-content p { font-size: 1.3rem; margin-bottom: 2rem; color: #555; }




.google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid #ddd;
    padding: 0.5em 1em;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    margin-top: 1em;
    transition: box-shadow 0.2s;
}

.google-btn:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}




.profile-container {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-width: 600px;
    margin: 20px auto;
}

.profile-image-container {
    flex-shrink: 0;
}

.profile-image {
    width: 150px;
    height: 150px;
    object-fit: cover;  /* Fotoğrafı kırpmadan düzgün gösterir */
    border-radius: 10px; /* Köşeleri biraz yuvarlat */
    border: 2px solid #ccc;
}

.profile-info {
    flex-grow: 1;
}

.profile-info h2 {
    margin: 0;
    font-size: 24px;
}

.profile-info p {
    margin: 5px 0;
    color: #555;
}

