/* ============================================================
   ESLOK Blog - Ana CSS
   Eskişehir Lokantacılar ve Kasaplar Esnaf Odası
   ============================================================ */

:root {
  --red:     #8B1A1A;
  --red-dk:  #6d1414;
  --red-lt:  #f5e6e6;
  --gold:    #C8960C;
  --dark:    #1a1a1a;
  --gray:    #555;
  --lt-gray: #f4f4f4;
  --border:  #e0e0e0;
  --white:   #ffffff;
  --shadow:  0 2px 12px rgba(0,0,0,.08);
  --radius:  10px;
  --font:    'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--dark); background: #f9f9f9; font-size: 16px; line-height: 1.7; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── HEADER ── */
.site-header {
  background: var(--red);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 70px;
}
.logo-wrap { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: #fff; flex: 1; }
.logo-icon { width: 44px; height: 44px; background: rgba(255,255,255,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.logo-text .site-title { font-size: 1rem; font-weight: 700; line-height: 1.2; }
.logo-text .site-sub   { font-size: .72rem; opacity: .8; }

.main-nav { display: flex; gap: .25rem; }
.main-nav a { color: rgba(255,255,255,.9); padding: .5rem .9rem; border-radius: 6px; font-size: .88rem; font-weight: 500; transition: background .2s; }
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,.15); text-decoration: none; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--red) 0%, #5c1010 100%);
  color: white;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero p   { font-size: 1.05rem; opacity: .88; margin-bottom: 2rem; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; padding: .5rem 1.4rem; border-radius: 50px; font-size: .85rem; margin-bottom: 1.5rem; }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

.page-body { padding: 3rem 1.5rem; }
.page-body .container { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; }
@media(max-width:900px){ .page-body .container { grid-template-columns: 1fr; } }

/* ── SECTION TITLE ── */
.section-title { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.8rem; }
.section-title h2 { font-size: 1.35rem; color: var(--dark); font-weight: 700; }
.section-title::after { content: ''; flex: 1; height: 2px; background: var(--border); }
.section-title .icon { font-size: 1.3rem; }

/* ── CARDS ── */
.posts-grid { display: grid; gap: 1.5rem; }

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--border);
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }

.post-card-img { width: 100%; height: 220px; object-fit: cover; background: var(--lt-gray); }
.post-card-img-placeholder { width: 100%; height: 180px; background: linear-gradient(135deg, var(--red-lt), #f8e8e8); display: flex; align-items: center; justify-content: center; font-size: 3rem; }

.post-card-body { padding: 1.4rem; }
.post-card-meta { display: flex; gap: .8rem; align-items: center; margin-bottom: .6rem; flex-wrap: wrap; }
.post-card-cat  { background: var(--red-lt); color: var(--red); padding: .2rem .7rem; border-radius: 50px; font-size: .75rem; font-weight: 600; }
.post-card-date { color: #999; font-size: .8rem; }
.post-card-body h3 { font-size: 1.1rem; margin-bottom: .6rem; line-height: 1.4; }
.post-card-body h3 a { color: var(--dark); }
.post-card-body h3 a:hover { color: var(--red); text-decoration: none; }
.post-card-body p  { color: var(--gray); font-size: .9rem; line-height: 1.6; }
.read-more { display: inline-block; margin-top: 1rem; color: var(--red); font-weight: 600; font-size: .88rem; }
.read-more::after { content: ' →'; }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.widget { background: var(--white); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); border: 1px solid var(--border); }
.widget h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--red-lt); color: var(--dark); }
.widget-about p { font-size: .88rem; color: var(--gray); line-height: 1.6; }
.widget-about .contact-item { display: flex; gap: .6rem; align-items: flex-start; margin-top: .8rem; font-size: .85rem; color: var(--gray); }
.widget-about .contact-item .ci { font-size: 1rem; flex-shrink: 0; margin-top: .1rem; }

.recent-posts-list { list-style: none; }
.recent-posts-list li { padding: .6rem 0; border-bottom: 1px solid var(--border); }
.recent-posts-list li:last-child { border-bottom: none; }
.recent-posts-list a { font-size: .88rem; color: var(--dark); font-weight: 500; }
.recent-posts-list a:hover { color: var(--red); text-decoration: none; }
.recent-posts-list .rp-date { display: block; font-size: .75rem; color: #999; margin-top: .2rem; }

.cat-list { list-style: none; }
.cat-list li { padding: .4rem 0; }
.cat-list a { font-size: .88rem; color: var(--gray); display: flex; justify-content: space-between; }
.cat-list a:hover { color: var(--red); text-decoration: none; }
.cat-list .count { background: var(--lt-gray); color: #888; font-size: .75rem; padding: .1rem .5rem; border-radius: 50px; }

/* ── SINGLE POST ── */
.single-post { background: var(--white); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); border: 1px solid var(--border); }
.single-post h1 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.3; margin-bottom: .8rem; }
.post-meta-bar { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--border); }
.post-meta-bar .cat  { background: var(--red-lt); color: var(--red); padding: .25rem .8rem; border-radius: 50px; font-size: .8rem; font-weight: 600; }
.post-meta-bar .date { color: #999; font-size: .85rem; }
.post-meta-bar .views{ color: #bbb; font-size: .82rem; }

.post-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: 8px; margin-bottom: 2rem; }

.post-content { font-size: 1.02rem; line-height: 1.8; color: #333; }
.post-content h2 { font-size: 1.4rem; margin: 2rem 0 .8rem; color: var(--dark); }
.post-content h3 { font-size: 1.15rem; margin: 1.5rem 0 .6rem; color: var(--dark); }
.post-content p  { margin-bottom: 1.2rem; }
.post-content ul, .post-content ol { margin: 0 0 1.2rem 1.5rem; }
.post-content li { margin-bottom: .4rem; }
.post-content img { border-radius: 8px; margin: 1.5rem auto; }
.post-content blockquote { border-left: 4px solid var(--red); padding: 1rem 1.5rem; margin: 1.5rem 0; background: var(--red-lt); border-radius: 0 8px 8px 0; font-style: italic; }
.post-content a { color: var(--red); }

.back-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--gray); font-size: .88rem; margin-bottom: 1.5rem; }
.back-link:hover { color: var(--red); text-decoration: none; }

/* ── FOOTER ── */
.site-footer { background: #1a1a1a; color: rgba(255,255,255,.7); text-align: center; padding: 2rem 1.5rem; margin-top: 3rem; font-size: .85rem; }
.site-footer a { color: rgba(255,255,255,.5); }
.site-footer .footer-title { color: #fff; font-weight: 600; font-size: .95rem; margin-bottom: .5rem; }

/* ── PAGINATION ── */
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; font-size: .9rem; font-weight: 500; }
.pagination a { background: var(--white); border: 1px solid var(--border); color: var(--dark); box-shadow: var(--shadow); }
.pagination a:hover { background: var(--red-lt); color: var(--red); border-color: var(--red-lt); text-decoration: none; }
.pagination span.current { background: var(--red); color: #fff; border: 1px solid var(--red); }

/* ── ALERTS ── */
.alert { padding: .9rem 1.2rem; border-radius: 8px; margin-bottom: 1.2rem; font-size: .92rem; }
.alert-success { background: #f0fff4; border: 1px solid #b3f0cc; color: #1a7a3a; }
.alert-danger   { background: #fff0f0; border: 1px solid #ffcccc; color: #cc0000; }

/* ── MOBILE ── */
@media(max-width:680px){
  .main-nav { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--red-dk); padding: 1rem; gap: .3rem; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .8rem 1rem; }
  .hamburger { display: block; }
  .hero { padding: 3rem 1.5rem; }
  .logo-text .site-title { font-size: .88rem; }
}
