/*
Theme Name: Erotik Hikayeler
Theme URI: https://wordpress.org/themes/
Author: Tema Geliştirici
Author URI: https://wordpress.org/
Description: 18+ yetişkin erotik hikaye okuma platformu için modern, koyu ve seksi WordPress teması.
Version: 1.1.9
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: erotik-hikayeler
Tags: dark, adult, reading, story, modern, responsive, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================
   CSS VARIABLES - TEMA RENKLERİ
   ============================================ */
:root {
  --bg-primary:       #050508;
  --bg-secondary:     #0c0c12;
  --bg-card:          #12121a;
  --bg-hover:         #1e1e2d;
  --bg-reader:        #0a0a0f;
  --text-primary:     #f5f5f7;
  --text-secondary:   #b4b4be;
  --text-muted:       #6e6e7a;
  --accent-primary:   #e11d48;
  --accent-secondary: #be185d;
  --accent-gradient:  linear-gradient(135deg, #e11d48 0%, #be185d 100%);
  --accent-glow:      rgba(225,29,72,0.3);
  --success:  #22c55e;
  --warning:  #f59e0b;
  --error:    #ef4444;
  --info:     #3b82f6;
  --adult:    #dc2626;
  --border-color: #1f1f2e;
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,0.5);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.6);
  --shadow-glow:0 0 25px rgba(225,29,72,0.25);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-sans:  'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --font-serif: 'Georgia','Times New Roman',serif;
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --reader-font-size:  1.1rem;
  --reader-line-height:1.8;
  --reader-max-width:  720px;
}

/* Light Mode */
body.light-mode {
  --bg-primary:    #f8f8fc;
  --bg-secondary:  #eeeef6;
  --bg-card:       #ffffff;
  --bg-hover:      #e4e4f0;
  --bg-reader:     #fafafa;
  --text-primary:  #111118;
  --text-secondary:#444455;
  --text-muted:    #888899;
  --border-color:  #dddde8;
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-primary); }

/* ============================================
   18+ UYARI BANNER (YÖNETİLEBİLİR)
   ============================================ */
.adult-warning-bar {
  background: linear-gradient(135deg,#7f1d1d 0%,#991b1b 100%);
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
}
.adult-warning-bar a {
  color: #fca5a5;
  text-decoration: underline;
}
.adult-warning-bar.hidden { display: none !important; }

/* Banner kapat butonu */
.adult-warning-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fca5a5;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}
.adult-warning-close:hover { color: #fff; }

/* ============================================
   18+ YAŞ DOĞRULAMA OVERLAY
   ============================================ */
.age-verify-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,5,8,0.98);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.age-verify-overlay.hidden { display: none !important; }

.age-verify-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
}
.age-verify-content .warning-icon { font-size: 4rem; margin-bottom: 1rem; }
.age-verify-content h2 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--adult); }
.age-verify-content p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.age-verify-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================
   TİPOGRAFİ
   ============================================ */
h1,h2,h3,h4,h5,h6 { font-weight:700; line-height:1.2; margin-bottom:1rem; color:var(--text-primary); }
h1 { font-size: clamp(1.75rem,5vw,3rem); }
h2 { font-size: clamp(1.5rem,4vw,2.25rem); }
h3 { font-size: clamp(1.25rem,3vw,1.5rem); }
h4 { font-size: clamp(1.1rem,2vw,1.25rem); }

p { margin-bottom: 1rem; color: var(--text-secondary); }

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-muted     { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-center    { text-align: center; }
.text-adult     { color: var(--adult); }

/* ============================================
   LAYOUT
   ============================================ */
.container       { width:100%; max-width:1200px; margin:0 auto; padding:0 1rem; }
.container-narrow{ max-width:720px; }
.container-wide  { max-width:1400px; }

.grid   { display:grid; gap:1.25rem; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

@media(max-width:1024px){ .grid-4{ grid-template-columns:repeat(3,1fr); } }
@media(max-width:768px) { .grid-3,.grid-4{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:480px) { .grid-2,.grid-3,.grid-4{ grid-template-columns:1fr; } }

.flex            { display:flex; }
.flex-col        { flex-direction:column; }
.items-center    { align-items:center; }
.justify-between { justify-content:space-between; }
.justify-center  { justify-content:center; }
.gap-1{ gap:0.5rem; } .gap-2{ gap:1rem; } .gap-3{ gap:1.5rem; } .gap-4{ gap:2rem; }

/* ============================================
   BUTONLAR
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
}
.btn-primary  { background:var(--accent-gradient); color:#fff; box-shadow:var(--shadow-md); }
.btn-primary:hover  { transform:translateY(-2px); box-shadow:var(--shadow-glow); color:#fff; }
.btn-secondary{ background:var(--bg-card); color:var(--text-primary); border:1px solid var(--border-color); }
.btn-secondary:hover{ background:var(--bg-hover); border-color:var(--accent-primary); color:var(--text-primary); }
.btn-ghost    { background:transparent; color:var(--text-secondary); border:none; }
.btn-ghost:hover{ background:var(--bg-hover); color:var(--text-primary); }
.btn-adult    { background:var(--adult); color:#fff; }
.btn-adult:hover{ background:#b91c1c; color:#fff; }
.btn-sm { padding:0.5rem 1rem; font-size:0.85rem; }
.btn-lg { padding:1rem 2rem; font-size:1.1rem; }

/* ============================================
   KARTLAR
   ============================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all var(--transition-base);
  display: block;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.card:hover .card-image img { transform: scale(1.05); }

.card-content { padding: 1rem; }

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-primary);
  line-height: 1.4;
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--accent-primary); }

.card-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.card-meta span { display:flex; align-items:center; gap:0.2rem; }

/* Kategori kartı (icon + isim) */
.card.category-card {
  text-align: center;
  padding: 1.5rem;
  text-decoration: none;
}
.card.category-card:hover { color: var(--text-primary); }
.card.category-card .cat-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.card.category-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.card.category-card p  { font-size: 0.85rem; margin: 0; }

/* Adult Badge */
.adult-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--adult);
  color: #fff;
  padding: 0.2rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 10;
  letter-spacing: 0.03em;
}

/* ============================================
   BADGE'LER
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  background: var(--bg-hover);
  color: var(--text-secondary);
}
.badge-primary  { background:var(--accent-primary); color:#fff; }
.badge-category { position:absolute; top:0.5rem; left:0.5rem; z-index:10; }
.badge-hot {
  background: linear-gradient(135deg,#f59e0b 0%,#ef4444 100%);
  color: #fff;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.8} }

/* ============================================
   FORM ELEMANLARI — SADECE .form-* VE #respond
   Genel select/input kuralı KALDIRILDI (filter-select çakışmasını önler)
   ============================================ */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Yalnızca form class'lı inputlar */
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { min-height:120px; resize:vertical; }

/* Yorum formu inputları */
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}
#respond input[type="text"]:focus,
#respond input[type="email"]:focus,
#respond input[type="url"]:focus,
#respond textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Arama inputu */
input[type="search"].search-input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  font-size: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-family: inherit;
  transition: all var(--transition-fast);
  -webkit-appearance: none;
}
input[type="search"].search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}
input[type="search"].search-input::placeholder { color: var(--text-muted); }

/* Navigasyon stilleri → assets/css/navigation.css */

/* Search Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,5,8,0.98);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.search-overlay.active { display: flex; }
.search-overlay-box { width: 100%; max-width: 600px; }
.search-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.search-overlay-header h2 { font-size: 1.5rem; margin: 0; }
.search-close-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 3rem 0;
  overflow: hidden;
  min-height: 50vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top,rgba(225,29,72,0.1) 0%,transparent 50%);
  pointer-events: none;
}
.hero-content { position:relative; z-index:1; text-align:center; max-width:800px; margin:0 auto; }
.hero-title { margin-bottom: 1rem; }
.hero-description { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
.hero-actions { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }

/* Search Box (hero içi) */
.search-box { position: relative; max-width: 600px; margin: 2rem auto 0; }
.search-box .search-icon {
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 1rem;
}

/* ============================================
   FİLTRE BARI — HTML ile tam uyumlu
   ============================================ */
.filter-section {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.filter-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
}

/* Filter select — tam özgün CSS, çakışma YOK */
.filter-select {
  padding: 0.45rem 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  width: auto;
  min-width: 130px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236e6e7a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
  transition: border-color var(--transition-fast);
}
.filter-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-glow);
}
.filter-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* Tag Filter — pill butonlar */
.tag-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.tag-filter a {
  display: inline-block;
  padding: 0.35rem 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.tag-filter a:hover,
.tag-filter a.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

/* ============================================
   SECTION
   ============================================ */
.section { padding: 2.5rem 0; }
.section-bg { background: var(--bg-secondary); }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.section-title     { margin-bottom: 0; }
.section-description { color:var(--text-secondary); margin-top:0.5rem; margin-bottom:0; }

/* ============================================
   HIKAYE DETAY — OKUYUCU MODU
   ============================================ */
.reading-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--border-color);
  z-index: 101;
}
.reading-progress-bar {
  height: 100%;
  background: var(--accent-gradient);
  width: 0%;
  transition: width 0.1s linear;
}

.story-header {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}
.story-meta-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.story-category-link { color:var(--accent-primary); font-weight:600; font-size:0.9rem; }
.story-date          { color:var(--text-muted); font-size:0.85rem; }
.story-reading-time  { display:flex; align-items:center; gap:0.25rem; color:var(--text-muted); font-size:0.85rem; }
.story-title         { font-size:clamp(1.5rem,5vw,2.5rem); margin-bottom:0.75rem; line-height:1.2; }
.story-excerpt       { color:var(--text-secondary); font-size:1.05rem; max-width:700px; }

.story-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}
.author-avatar { width:48px; height:48px; border-radius:50%; object-fit:cover; border:2px solid var(--accent-primary); flex-shrink:0; }
.author-info   { display:flex; flex-direction:column; }
.author-name   { font-weight:600; color:var(--text-primary); }
.author-role   { font-size:0.8rem; color:var(--text-muted); }

/* Reader Toolbar */
.reader-toolbar {
  position: sticky;
  top: 65px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  z-index: 99;
}
.reader-toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.reader-controls { display:flex; align-items:center; gap:0.75rem; }

.reader-btn {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}
.reader-btn:hover { background:var(--bg-hover); border-color:var(--accent-primary); color:var(--text-primary); }

.font-size-display { font-size:0.8rem; color:var(--text-muted); min-width:38px; text-align:center; }

/* Story Content */
.story-content-wrapper { padding: 2rem 0; }
.story-content {
  max-width: var(--reader-max-width);
  margin: 0 auto;
  font-size: var(--reader-font-size);
  line-height: var(--reader-line-height);
}
.story-content p       { margin-bottom:1.5rem; color:var(--text-secondary); }
.story-content h2      { margin-top:2.5rem; margin-bottom:1rem; font-size:1.35rem; }
.story-content h3      { margin-top:2rem; margin-bottom:0.75rem; font-size:1.15rem; }
.story-content blockquote {
  border-left: 3px solid var(--accent-primary);
  padding-left: 1.25rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-primary);
}
.story-content ul,
.story-content ol { margin-bottom:1.5rem; padding-left:1.5rem; color:var(--text-secondary); }
.story-content li { margin-bottom:0.5rem; }

/* Share Buttons */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}
.share-label { font-size:0.9rem; color:var(--text-muted); font-weight:500; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  color: #fff;
  font-family: inherit;
}
.share-btn-twitter   { background: #1da1f2; }
.share-btn-facebook  { background: #1877f2; }
.share-btn-whatsapp  { background: #25d366; }
.share-btn-copy      { background:var(--bg-hover); color:var(--text-primary); border:1px solid var(--border-color); }
.share-btn:hover         { transform:translateY(-1px); opacity:0.9; }
.share-btn-copy:hover    { color:var(--text-primary); }

/* Tags */
.story-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}
.story-tag {
  padding: 0.4rem 0.875rem;
  background: var(--bg-hover);
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.story-tag:hover { background:var(--accent-primary); color:#fff; }

/* Story Navigation */
.story-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}
.nav-story {
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  display: block;
}
.nav-story:hover { border-color:var(--accent-primary); color:var(--text-primary); }
.nav-story.prev  { text-align:left; }
.nav-story.next  { text-align:right; }
.nav-story-label { font-size:0.75rem; color:var(--text-muted); text-transform:uppercase; margin-bottom:0.25rem; letter-spacing:0.04em; }
.nav-story-title { font-weight:600; color:var(--text-primary); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* ============================================
   PAGİNATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.pagination a,
.pagination span,
.page-numbers {
  min-width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.pagination a:hover, .page-numbers:not(.current):not(.dots):hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}
.pagination .active, .page-numbers.current {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}
.page-numbers.dots { opacity:0.5; cursor:default; }

/* ============================================
   KATEGORİ SAYFASI
   ============================================ */
.category-hero {
  padding: 3rem 0;
  text-align: center;
  background: linear-gradient(180deg,var(--bg-secondary) 0%,var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-color);
}
.category-icon {
  width: 80px; height: 80px;
  margin: 0 auto 1rem;
  background: var(--accent-gradient);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.category-stats { display:flex; justify-content:center; gap:2.5rem; margin-top:1.5rem; flex-wrap:wrap; }
.category-stat  { text-align:center; }
.stat-value { font-size:1.75rem; font-weight:700; color:var(--text-primary); }
.stat-label { font-size:0.85rem; color:var(--text-muted); }

/* ============================================
   STATİK SAYFALAR
   ============================================ */
.page-header {
  padding: 3rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}
.page-header-paged {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}
.page-content { padding:2rem 0; max-width:800px; margin:0 auto; }
.page-content h2 { margin-top:2rem; margin-bottom:1rem; }
.page-content p  { margin-bottom:1.25rem; }
.page-content ul,
.page-content ol { margin-bottom:1.5rem; padding-left:1.5rem; }
.page-content li { margin-bottom:0.5rem; color:var(--text-secondary); }

.entry-content a { color:var(--accent-primary); }
.entry-content a:hover { text-decoration:underline; }

/* FAQ */
.faq-item { border-bottom:1px solid var(--border-color); padding:1.25rem 0; }
.faq-question {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0;
  font-family: inherit;
}
.faq-answer { margin-top:1rem; color:var(--text-secondary); line-height:1.7; }

/* ============================================
   SİDEBAR / WİDGET
   ============================================ */
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.widget-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-primary);
  color: var(--text-primary);
}
.widget ul { list-style:none; padding:0; }
.widget ul li { padding:0.5rem 0; border-bottom:1px solid var(--border-color); }
.widget ul li:last-child { border-bottom:none; }
.widget ul li a { color:var(--text-secondary); font-size:0.9rem; }
.widget ul li a:hover { color:var(--accent-primary); }

/* Popular Posts */
.popular-post-item { display:flex; gap:0.75rem; padding:0.75rem 0; border-bottom:1px solid var(--border-color); }
.popular-post-item:last-child { border-bottom:none; }
.popular-post-thumb { width:60px; height:60px; object-fit:cover; border-radius:var(--radius-sm); flex-shrink:0; }
.popular-post-info  { flex:1; min-width:0; }
.popular-post-title {
  font-size: 0.875rem; font-weight:600; color:var(--text-primary);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  margin-bottom:0.25rem;
}
.popular-post-meta { font-size:0.75rem; color:var(--text-muted); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media(max-width:768px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media(max-width:480px){ .footer-grid{ grid-template-columns:1fr; } }

.footer-brand p { margin-top:0.75rem; color:var(--text-muted); font-size:0.9rem; }
.footer-title   { font-size:0.95rem; font-weight:600; margin-bottom:1rem; color:var(--text-primary); }
.footer-links   { list-style:none; padding:0; }
.footer-links li { margin-bottom:0.5rem; }
.footer-links a  { color:var(--text-muted); font-size:0.9rem; }
.footer-links a:hover { color:var(--accent-primary); }

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copyright { color:var(--text-muted); font-size:0.85rem; margin:0; }
.footer-social { display:flex; gap:0.75rem; }
.footer-social a {
  width:38px; height:38px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  font-size: 1rem;
}
.footer-social a:hover { background:var(--accent-primary); color:#fff; }

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb a { color:var(--text-secondary); }
.breadcrumb a:hover { color:var(--accent-primary); }
.breadcrumb-separator { color:var(--text-muted); user-select:none; }
.breadcrumb-current   { color:var(--text-primary); }

/* ============================================
   İLETİŞİM
   ============================================ */
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:2.5rem; }
@media(max-width:768px){ .contact-grid{ grid-template-columns:1fr; } }

.contact-info-item { display:flex; align-items:flex-start; gap:1rem; margin-bottom:1.25rem; }
.contact-info-icon {
  width:44px; height:44px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
  font-size: 1.2rem;
}
.contact-info-content h4 { margin-bottom:0.25rem; font-size:1rem; }
.contact-info-content p  { margin-bottom:0; font-size:0.9rem; }

/* ============================================
   YORUMLAR
   ============================================ */
.comments-section { margin-top:3rem; padding-top:2rem; border-top:1px solid var(--border-color); }

#comments .comment-list { list-style:none; padding:0; }
.comment-body {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.comment-meta-info { display:flex; align-items:center; gap:0.75rem; margin-bottom:0.75rem; }
.comment-meta-info img { border-radius:50%; width:40px; height:40px; }
.comment-author-name { font-weight:600; color:var(--text-primary); }
.comment-date { font-size:0.8rem; color:var(--text-muted); }
.comment-content p { color:var(--text-secondary); margin-bottom:0; }
.comment-awaiting { color:var(--warning); font-size:0.875rem; margin-bottom:0.5rem; }

#respond { margin-top:2rem; }
#respond h3 { margin-bottom:1.5rem; font-size:1.25rem; }
#respond label { display:block; margin-bottom:0.5rem; font-size:0.9rem; color:var(--text-secondary); }
#respond .submit {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all var(--transition-base);
}
#respond .submit:hover { transform:translateY(-2px); box-shadow:var(--shadow-glow); }

/* ============================================
   404 & UYARI SAYFALARI
   ============================================ */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}
.error-code {
  font-size: clamp(5rem,20vw,10rem);
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}

.warning-page { min-height:80vh; display:flex; align-items:center; justify-content:center; padding:2rem; }
.warning-box { background:var(--bg-card); border:2px solid #dc2626; border-radius:var(--radius-lg); padding:3rem; max-width:600px; text-align:center; }
.warning-box .warning-icon { font-size:5rem; margin-bottom:1.5rem; }
.warning-title { font-size:2rem; color:#dc2626; margin-bottom:1rem; }
.warning-text  { color:var(--text-secondary); margin-bottom:2rem; line-height:1.7; }
.warning-buttons { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }
.warning-list { text-align:left; background:var(--bg-primary); border-radius:var(--radius-md); padding:1.5rem; margin-bottom:2rem; list-style:none; }
.warning-list li { color:var(--text-secondary); margin-bottom:0.75rem; padding-left:2rem; position:relative; }
.warning-list li::before { content:'⚠️'; position:absolute; left:0; }

/* ============================================
   ULİTİES
   ============================================ */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.hidden  { display:none !important; }
.mt-1{ margin-top:0.5rem; } .mt-2{ margin-top:1rem; } .mt-3{ margin-top:1.5rem; } .mt-4{ margin-top:2rem; }
.mb-1{ margin-bottom:0.5rem; } .mb-2{ margin-bottom:1rem; } .mb-3{ margin-bottom:1.5rem; } .mb-4{ margin-bottom:2rem; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg,var(--bg-card) 25%,var(--bg-hover) 50%,var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}
@keyframes skeleton-loading { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* Scrollbar */
::-webkit-scrollbar       { width:8px; height:8px; }
::-webkit-scrollbar-track { background:var(--bg-primary); }
::-webkit-scrollbar-thumb { background:var(--border-color); border-radius:4px; }
::-webkit-scrollbar-thumb:hover { background:var(--text-muted); }

::selection { background:rgba(225,29,72,0.3); color:var(--text-primary); }

/* ============================================
   MOBİL OKUMA MODU
   ============================================ */
@media(max-width:768px) {
  .story-navigation { grid-template-columns:1fr; }
  .nav-story.prev, .nav-story.next { text-align:center; }
  .reader-toolbar-inner { justify-content:center; }
  .reader-controls { width:100%; justify-content:center; }
  .story-author { flex-wrap:wrap; }
  .filter-bar { gap:0.75rem; }
}

/* RTL */
[dir="rtl"] .breadcrumb,
[dir="rtl"] .nav-links,
[dir="rtl"] .card-meta,
[dir="rtl"] .share-buttons { direction:rtl; }

/* Print */
@media print {
  .navbar,.reader-toolbar,.footer,.story-navigation,.pagination,
  .share-buttons,.age-verify-overlay,.adult-warning-bar { display:none !important; }
  .story-content { font-size:12pt; line-height:1.6; max-width:100%; color:#000; }
}

/* ============================================
   INLINE STİLLERİN YERİNE CSS CLASSLARI
   ============================================ */

/* 404 */
.error-page-inner { text-align: center; padding: 3rem 1rem; max-width: 600px; margin: 0 auto; }
.error-message    { color: var(--text-secondary); margin-bottom: 2rem; }
.error-actions    { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.error-search     { max-width: 400px; margin: 0 auto; }

/* Archive / Category */
.category-description { color: var(--text-secondary); max-width: 600px; margin: 1rem auto 0; }
.empty-state          { text-align: center; padding: 3rem; color: var(--text-muted); }
.empty-icon           { font-size: 3rem; margin-bottom: 1rem; }
.section-title--center { text-align: center; margin-bottom: 1.5rem; }

/* Author */
.author-hero-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent-primary);
  margin: 0 auto 1rem;
}
.author-hero-avatar img,
.author-page-img    { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.author-bio         { color: var(--text-secondary); max-width: 600px; margin: 0.75rem auto 0; }
.no-posts-message   { text-align: center; color: var(--text-muted); padding: 3rem 0; }

/* Comments */
.comment-item       { list-style: none; }
.comment-body {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.comment-header     { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.comment-avatar     { border-radius: 50%; width: 40px; height: 40px; flex-shrink: 0; }
.comment-meta       { flex: 1; min-width: 0; }
.comment-author-name{ display: block; font-weight: 600; color: var(--text-primary); }
.comment-date       { display: block; font-size: 0.8rem; color: var(--text-muted); }
.comment-reply      { margin-left: auto; }
.comment-pending    { color: var(--warning); font-size: 0.875rem; margin-bottom: 0.5rem; }
.comments-title     { margin-bottom: 1.5rem; }

/* Header search */
.search-results-list{
  margin-top: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}
.search-result-item:hover { border-color: var(--accent-primary); color: var(--text-primary); }
.search-result-thumb      { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.search-result-info       { flex: 1; min-width: 0; }
.search-result-title      { display: block; font-weight: 600; margin-bottom: 0.2rem; }
.search-result-excerpt    { display: block; font-size: 0.8rem; color: var(--text-muted); }
.search-no-results        { color: var(--text-muted); text-align: center; padding: 1rem; }
.search-all-wrap          { margin-top: 1rem; text-align: center; }
.search-all-link.hidden   { display: none !important; }

/* Footer social icons (SVG background yerine CSS) */
.footer-social-link {
  width: 38px; height: 38px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  font-size: 1.1rem;
  text-decoration: none;
}
.footer-social-link::after { content: '🔗'; }
.footer-social-link.footer-social-twitter::after   { content: '🐦'; }
.footer-social-link.footer-social-instagram::after { content: '📷'; }
.footer-social-link.footer-social-reddit::after    { content: '🟠'; }
.footer-social-link.footer-social-telegram::after  { content: '✈️'; }
.footer-social-link.footer-social-onlyfans::after  { content: '💙'; }
.footer-social-link:hover { background: var(--accent-primary); color: white; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover   { background: var(--accent-secondary); }

/* Toast */
.eh-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--bg-card);
  border: 1px solid var(--accent-primary);
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  z-index: 9999;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.eh-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Story cover */
.story-cover        { margin-top: 1.5rem; border-radius: var(--radius-lg); overflow: hidden; }
.story-cover-img    { width: 100%; height: auto; }

/* Like button active state */
.like-btn.is-liked  { border-color: var(--accent-primary); color: var(--accent-primary); }

/* Reader stats */
.reader-stats       { font-size: 0.8rem; color: var(--text-muted); }

/* age verify legal */
.age-verify-legal   { margin-top: 1rem; font-size: 0.8rem; color: var(--text-muted); }

/* Hero container z-index */
.hero > .container  { position: relative; z-index: 1; }

/* page-iletisim form */
.contact-form-submit { width: 100%; }

/* index empty state */
.index-empty { text-align: center; padding: 3rem; color: var(--text-muted); }
.index-empty-icon { font-size: 3rem; margin-bottom: 1rem; }

/* admin meta table */
.eh-meta-table     { width: 100%; }
.eh-meta-input     { width: 100%; }

/* FOUC önleme: tema pending class */
.light-mode-pending body { background: #f8f8fc; }

/* ============================================
   STORY PLACEHOLDER — Resim yoksa CSS görünümü
   (Kırık resim ikonu asla gösterilmez)
   ============================================ */
.story-placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  background: linear-gradient(135deg, var(--bg-hover) 0%, var(--bg-secondary) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: absolute;
  inset: 0;
}

.story-placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.6;
  display: block;
}

/* Placeholder varken kart görünümü bozulmasın */
.card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-hover); /* img yüklenirken arka plan */
}

.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}
.card:hover .card-thumb-img { transform: scale(1.05); }

/* Broken img tag'ini tamamen gizle (JS olmadan ek güvenlik katmanı) */
img[src=""] ,
img:not([src]) {
  visibility: hidden;
}
