/* ============================================================
   ESLOK Blog v2.0 — Ana CSS
   Eskişehir Lokantacılar ve Kasaplar Esnaf Odası
   ============================================================ */

:root {
  --red:       #8B1A1A;
  --red-dk:    #6d1414;
  --red-lt:    #f5e6e6;
  --red-glow:  rgba(139,26,26,.12);
  --gold:      #C8960C;
  --dark:      #1a1a1a;
  --gray:      #555;
  --gray-lt:   #888;
  --lt-gray:   #f4f4f4;
  --border:    #e0e0e0;
  --white:     #ffffff;
  --shadow:    0 2px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.1);
  --radius:    12px;
  --radius-sm: 8px;
  --font:      'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

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

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.post-card, .widget, .info-card {
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.post-card.visible, .widget.visible, .info-card.visible {
  opacity: 1; transform: translateY(0);
}

/* ── HEADER ── */
.site-header {
  background: var(--red);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(139,26,26,.3);
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 68px;
}
.logo-wrap { display: flex; align-items: center; gap: .8rem; text-decoration: none !important; color: #fff; flex: 1; }
.logo-icon {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
  transition: background var(--transition);
}
.logo-wrap:hover .logo-icon { background: rgba(255,255,255,.25); }
.logo-text .site-title { font-size: .95rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.logo-text .site-sub   { font-size: .7rem; opacity: .75; font-weight: 400; }

.main-nav { display: flex; gap: .2rem; }
.main-nav a {
  color: rgba(255,255,255,.85); padding: .45rem .85rem; border-radius: 6px;
  font-size: .84rem; font-weight: 500; transition: all var(--transition);
  position: relative;
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(255,255,255,.15); color: #fff; text-decoration: none;
}
.main-nav a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 2px; background: #fff; border-radius: 2px;
}

.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: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── BREADCRUMB ── */
.breadcrumb-bar {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: .7rem 0; font-size: .82rem; color: var(--gray-lt);
}
.breadcrumb-bar .container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.breadcrumb-bar a { color: var(--gray); }
.breadcrumb-bar a:hover { color: var(--red); }
.breadcrumb-bar .current { color: var(--dark); font-weight: 500; }
.breadcrumb-bar span { color: #ccc; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--red) 0%, #4a0e0e 100%);
  color: white;
  padding: 4.5rem 1.5rem 3.5rem;
  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.03'%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.5rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.25; margin-bottom: .8rem; letter-spacing: -.02em; }
.hero p   { font-size: 1rem; opacity: .85; margin-bottom: 1.8rem; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #fff; padding: .45rem 1.3rem; border-radius: 50px; font-size: .82rem; margin-bottom: 1.2rem;
  backdrop-filter: blur(4px);
}
.hero-stats { display: flex; gap: 2rem; justify-content: center; margin-top: .5rem; }
.hero-stat { text-align: center; }
.stat-num { display: block; font-size: 1.8rem; font-weight: 800; }
.stat-label { font-size: .75rem; opacity: .7; text-transform: uppercase; letter-spacing: .05em; }

/* ── LAYOUT ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.single-col { max-width: 860px !important; }

.page-body { padding: 2.5rem 1.5rem; }
.page-body .container { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; }
.page-body .container.single-col { 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.3rem; color: var(--dark); font-weight: 700; white-space: nowrap; }
.section-title::after { content: ''; flex: 1; height: 2px; background: linear-gradient(to right, var(--border), transparent); }
.section-title .icon { font-size: 1.2rem; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--gray-lt); }
.empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }

/* ── 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 var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card.featured { border: 2px solid var(--red-lt); }

.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) 0%, #fdf0f0 100%);
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
}

.post-card-body { padding: 1.3rem 1.4rem 1.5rem; }
.post-card-meta { display: flex; gap: .7rem; 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: .72rem; font-weight: 600; letter-spacing: .02em;
}
.post-card-date  { color: #999; font-size: .78rem; }
.post-card-views { color: #bbb; font-size: .75rem; }
.post-card-body h3 { font-size: 1.05rem; margin-bottom: .5rem; 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: .88rem; line-height: 1.6; }
.read-more { display: inline-block; margin-top: .8rem; color: var(--red); font-weight: 600; font-size: .85rem; transition: all var(--transition); }
.read-more::after { content: ' →'; transition: margin var(--transition); }
.read-more:hover::after { margin-left: 4px; }
.read-more:hover { text-decoration: none; }

/* ── 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: .95rem; font-weight: 700; margin-bottom: 1rem;
  padding-bottom: .6rem; border-bottom: 2px solid var(--red-lt); color: var(--dark);
}
.widget-about p { font-size: .86rem; color: var(--gray); line-height: 1.6; }
.widget-about .contact-item {
  display: flex; gap: .6rem; align-items: flex-start;
  margin-top: .7rem; font-size: .84rem; color: var(--gray);
}
.widget-about .ci { font-size: .95rem; flex-shrink: 0; margin-top: .15rem; }
.widget-btn {
  display: inline-block; margin-top: 1rem; padding: .4rem .9rem;
  background: var(--red-lt); color: var(--red); border-radius: 6px;
  font-size: .82rem; font-weight: 600; transition: all var(--transition);
}
.widget-btn:hover { background: var(--red); color: #fff; text-decoration: none; }

.recent-posts-list { list-style: none; }
.recent-posts-list li { padding: .5rem 0; border-bottom: 1px solid var(--border); }
.recent-posts-list li:last-child { border-bottom: none; }
.recent-posts-list a { display: flex; gap: .7rem; align-items: center; color: var(--dark); font-weight: 500; }
.recent-posts-list a:hover { color: var(--red); text-decoration: none; }
.rp-thumb { width: 50px; height: 35px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.rp-title { display: block; font-size: .84rem; line-height: 1.3; }
.rp-date  { display: block; font-size: .72rem; color: #999; margin-top: .15rem; }

.cat-list { list-style: none; }
.cat-list li { padding: .35rem 0; }
.cat-list a { font-size: .86rem; color: var(--gray); display: flex; justify-content: space-between; align-items: center; padding: .3rem .5rem; border-radius: 6px; transition: all var(--transition); }
.cat-list a:hover, .cat-list a.active { background: var(--red-lt); color: var(--red); text-decoration: none; }
.cat-list .count { background: var(--lt-gray); color: #888; font-size: .72rem; padding: .15rem .5rem; border-radius: 50px; font-weight: 500; }

/* ── 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.3rem, 3vw, 1.9rem); line-height: 1.3; margin-bottom: .8rem; letter-spacing: -.01em; }
.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: .78rem; font-weight: 600; }
.post-meta-bar .date { color: #999; font-size: .83rem; }
.post-meta-bar .views{ color: #bbb; font-size: .8rem; }

.post-cover { width: 100%; max-height: 450px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 2rem; }

.post-content { font-size: 1rem; line-height: 1.85; color: #333; }
.post-content h2 { font-size: 1.35rem; margin: 2rem 0 .8rem; color: var(--dark); }
.post-content h3 { font-size: 1.1rem; 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: var(--radius-sm); 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); text-decoration: underline; text-underline-offset: 2px; }
.post-content a:hover { color: var(--red-dk); }

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

/* ── SHARE BAR ── */
.share-bar {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  font-size: .85rem; color: var(--gray);
}
.share-btn {
  display: inline-flex; align-items: center; padding: .4rem .9rem;
  border-radius: 6px; font-size: .78rem; font-weight: 600; color: #fff; transition: opacity var(--transition);
}
.share-btn:hover { opacity: .85; color: #fff; text-decoration: none; }
.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }
.share-wa { background: #25d366; }

/* ── POST NAV ── */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.post-nav-link {
  background: var(--white); padding: 1.2rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); display: block; color: var(--dark);
  transition: all var(--transition);
}
.post-nav-link:hover { border-color: var(--red-lt); box-shadow: var(--shadow); text-decoration: none; }
.post-nav-link.next { text-align: right; }
.nav-label { display: block; font-size: .78rem; color: var(--gray-lt); margin-bottom: .3rem; }
.nav-title { font-weight: 600; font-size: .88rem; line-height: 1.3; }

/* ── RELATED POSTS ── */
.related-posts { margin-top: 2rem; }
.related-grid { display: grid; gap: .8rem; }
.related-card {
  display: flex; gap: .8rem; align-items: center;
  background: var(--white); padding: 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); color: var(--dark);
  transition: all var(--transition);
}
.related-card:hover { border-color: var(--red-lt); box-shadow: var(--shadow); text-decoration: none; }
.related-card img { width: 80px; height: 55px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.related-card strong { display: block; font-size: .88rem; line-height: 1.3; margin-bottom: .2rem; }
.related-card span { font-size: .75rem; color: var(--gray-lt); }

/* ── INFO CARDS (Hakkımızda, İletişim) ── */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.info-grid.three-col { grid-template-columns: repeat(3, 1fr); }

.info-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  overflow: hidden; margin-bottom: 1.5rem;
}
.info-card-header {
  padding: 1.2rem 1.5rem; background: linear-gradient(135deg, var(--red-lt), #fff);
  border-bottom: 1px solid var(--border);
}
.info-card-header h2 { font-size: 1.1rem; color: var(--dark); }
.info-card-body { padding: 1.5rem; font-size: .92rem; color: var(--gray); line-height: 1.8; }
.info-card-body ul { margin: 1rem 0 0 1.2rem; }
.info-card-body li { margin-bottom: .5rem; }

.contact-card { text-align: center; padding: 2rem 1.5rem; }
.contact-icon { font-size: 2.5rem; margin-bottom: .8rem; }
.contact-card h3 { font-size: 1rem; margin-bottom: .5rem; color: var(--dark); }
.contact-card p { font-size: .88rem; }
.contact-note { font-size: .78rem; color: var(--gray-lt); margin-top: .3rem; }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: .7rem .5rem; border-bottom: 1px solid var(--border); font-size: .9rem; }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table .closed { color: var(--red); font-weight: 600; }

/* ── FOOTER ── */
.site-footer { background: #1a1a1a; color: rgba(255,255,255,.6); margin-top: 3rem; font-size: .84rem; }
.footer-inner {
  max-width: 1140px; margin: 0 auto; padding: 3rem 1.5rem 2rem;
  display: grid; grid-template-columns: 1.3fr 2fr; gap: 3rem; align-items: start;
}
.footer-brand .footer-title { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: .3rem; }
.footer-brand .footer-tagline { font-size: .8rem; opacity: .6; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-col h4 { color: rgba(255,255,255,.9); font-size: .82rem; font-weight: 600; margin-bottom: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-col a, .footer-col span { display: block; color: rgba(255,255,255,.5); font-size: .82rem; padding: .2rem 0; transition: color var(--transition); }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.2rem 1.5rem; text-align: center; font-size: .78rem; }

/* ── PAGINATION ── */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius-sm); font-size: .88rem; font-weight: 500;
}
.pagination a { background: var(--white); border: 1px solid var(--border); color: var(--dark); box-shadow: var(--shadow); transition: all var(--transition); }
.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: var(--radius-sm); margin-bottom: 1.2rem; font-size: .9rem; }
.alert-success { background: #f0fff4; border: 1px solid #b3f0cc; color: #1a7a3a; }
.alert-danger   { background: #fff0f0; border: 1px solid #ffcccc; color: #cc0000; }

/* ── MOBILE ── */
@media(max-width:900px){
  .page-body .container { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .info-grid.three-col { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
}
@media(max-width:680px){
  .main-nav {
    display: none; flex-direction: column; position: absolute;
    top: 68px; left: 0; right: 0; background: var(--red-dk);
    padding: .8rem; gap: .2rem; box-shadow: 0 10px 30px rgba(0,0,0,.3);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .8rem 1rem; border-radius: var(--radius-sm); }
  .main-nav a.active::after { display: none; }
  .hamburger { display: block; }
  .hero { padding: 3rem 1.5rem 2.5rem; }
  .hero-stats { gap: 1.2rem; }
  .logo-text .site-title { font-size: .85rem; }
  .logo-text .site-sub   { font-size: .65rem; }
  .single-post { padding: 1.5rem; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .share-bar { flex-direction: column; align-items: flex-start; }
}
