/* ===========================
   EROL AYAZ BLOG — ANA STİL
   =========================== */

:root {
  --bg:           #FFFFFF;
  --bg-subtle:    #F9F9F9;
  --bg-dark:      #0D0D0D;
  --border:       #E8E8E8;
  --border-dark:  #D0D0D0;
  --text:         #111111;
  --text-mid:     #555555;
  --text-light:   #999999;
  --accent:       #111111;
  --accent-hover: #333333;
  --white:        #FFFFFF;
  --shadow:       0 1px 8px rgba(0,0,0,.06);
  --shadow-hover: 0 4px 24px rgba(0,0,0,.10);
  --radius:       6px;
  --radius-lg:    10px;
  --tr:           .2s ease;
  --max:          1140px;
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--text);
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand { display: flex; flex-direction: column; gap: 1px; }
.nav-brand-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.2px;
}
.nav-brand-sub {
  font-family: 'Inter', sans-serif;
  font-size: .67rem;
  color: var(--text-light);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: .1rem;
  list-style: none;
}
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: .4rem .9rem;
  border-radius: var(--radius);
  transition: var(--tr);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg-subtle);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  padding: .3rem;
}

/* ===== QUOTE RIBBON ===== */
.quote-ribbon {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  text-align: center;
  padding: .75rem 1.5rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: .9rem;
}
.quote-ribbon .qs { color: var(--text-light); font-size: 1.4rem; line-height: 0; vertical-align: -.3em; }
.quote-ribbon .source { font-family: 'Inter', sans-serif; font-style: normal; font-size: .75rem; color: var(--text-light); margin-top: .2rem; }

/* ===== HERO / FEATURED ===== */
.hero-featured {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-dark);
}
.hero-featured-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .4;
}
.hero-featured-overlay {
  position: relative;
  width: 100%;
  padding: 3rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 70%, transparent 100%);
}
.hero-featured-inner { max-width: var(--max); margin: 0 auto; }
.featured-badge {
  display: inline-block;
  background: transparent;
  color: rgba(255,255,255,.7);
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: .25rem 0;
  margin-bottom: .9rem;
  border-bottom: 1px solid rgba(255,255,255,.3);
}
.hero-featured h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: #FFFFFF;
  margin-bottom: .75rem;
  max-width: 680px;
  font-weight: 700;
}
.hero-featured .excerpt {
  color: rgba(255,255,255,.65);
  font-size: .95rem;
  max-width: 560px;
  margin-bottom: 1.5rem;
  font-family: 'Inter', sans-serif;
}
.hero-no-featured {
  background: var(--bg-dark);
  text-align: center;
  padding: 5rem 1.5rem;
}
.hero-no-featured h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #FFFFFF;
  margin-bottom: .75rem;
}
.hero-no-featured p {
  color: rgba(255,255,255,.5);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: 1.15rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.2px;
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--text);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ===== POST CARDS ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--tr);
}
.post-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border-dark);
}
.post-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.post-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--border-dark);
}
.post-card-body { padding: 1.2rem 1.4rem; flex: 1; }
.post-card-title {
  font-size: 1rem;
  margin-bottom: .5rem;
  line-height: 1.4;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}
.post-card-title a { color: var(--text); transition: color var(--tr); }
.post-card-title a:hover { color: var(--text-mid); }
.post-card-excerpt {
  font-size: .855rem;
  color: var(--text-mid);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-footer {
  padding: .8rem 1.4rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  color: var(--text-light);
}
.post-meta-info { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.meta-dot { opacity: .4; }
.read-btn {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  transition: color var(--tr);
}
.read-btn:hover { color: var(--text-mid); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  padding: .6rem 1.4rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: var(--tr);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--text);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline {
  background: transparent;
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.3);
}
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-dark);
}
.btn-ghost:hover { background: var(--bg-subtle); }
.btn-sm { padding: .35rem .85rem; font-size: .78rem; }
.btn-lg { padding: .8rem 2rem; font-size: .95rem; }
.btn-danger { background: transparent; color: #b91c1c; border: 1px solid #fecaca; }
.btn-danger:hover { background: #b91c1c; color: white; border-color: #b91c1c; }

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 600;
  padding: .18rem .6rem;
  border-radius: 100px;
  letter-spacing: .3px;
}
.badge-gold { background: #FEF3C7; color: #92400E; }
.badge-green { background: #D1FAE5; color: #065F46; }
.badge-blue { background: #DBEAFE; color: #1E40AF; }
.badge-purple { background: #EDE9FE; color: #5B21B6; }
.badge-red { background: #FEE2E2; color: #991B1B; }
.badge-brown { background: var(--bg-subtle); color: var(--text-mid); border: 1px solid var(--border); }

/* ===== SINGLE ARTICLE ===== */
.article-hero {
  background: var(--bg-dark);
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
}
.article-hero-inner { max-width: 720px; margin: 0 auto; }
.article-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  color: #FFFFFF;
  margin-bottom: 1rem;
  font-weight: 700;
}
.article-meta {
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .6rem;
}
.article-cover {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.article-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
}
.article-content p { margin-bottom: 1.4em; }
.article-content h2 { font-size: 1.5rem; margin: 2em 0 .7em; color: var(--text); }
.article-content h3 { font-size: 1.2rem; margin: 1.8em 0 .5em; }
.article-content ul,.article-content ol { margin: 1em 0 1em 1.6em; }
.article-content li { margin-bottom: .4em; }
.article-content blockquote {
  border-left: 2px solid var(--border-dark);
  margin: 1.8em 0;
  padding: .8rem 1.4rem;
  background: var(--bg-subtle);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-mid);
}
.article-content img { border-radius: var(--radius); margin: 1.5em 0; }
.article-divider { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* ===== LIKE & SHARE ===== */
.like-share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  padding: .5rem 1.2rem;
  border: 1px solid var(--border-dark);
  border-radius: 100px;
  background: var(--white);
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--tr);
}
.like-btn:hover, .like-btn.liked {
  border-color: #e11d48;
  color: #e11d48;
  background: #fff1f2;
}
.like-btn .heart { font-size: 1rem; transition: transform .2s; }
.like-btn:hover .heart, .like-btn.liked .heart { transform: scale(1.3); }
.share-btns { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 500;
  padding: .4rem .9rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--tr);
  text-decoration: none;
}
.share-btn:hover { border-color: var(--border-dark); color: var(--text); }
.share-btn.whatsapp:hover { border-color: #25D366; color: #25D366; }

/* ===== RELATED POSTS ===== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
  margin-top: 1rem;
}

/* ===== QUOTES PAGE ===== */
.cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.cat-btn {
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  padding: .35rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border-dark);
  background: var(--white);
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--tr);
  text-decoration: none;
}
.cat-btn:hover, .cat-btn.active {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
}
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.quote-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  transition: var(--tr);
}
.quote-card:hover { box-shadow: var(--shadow-hover); border-color: var(--border-dark); }
.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  line-height: .8;
  color: var(--border-dark);
  position: absolute;
  top: .8rem;
  left: 1.2rem;
  user-select: none;
}
.quote-text {
  font-style: italic;
  font-size: .975rem;
  line-height: 1.85;
  color: var(--text);
  margin-top: 1.5rem;
  padding-left: .5rem;
}
.quote-source {
  font-family: 'Inter', sans-serif;
  font-size: .77rem;
  color: var(--text-light);
  margin-top: .9rem;
  text-align: right;
  font-style: normal;
}
.quote-cat-badge {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
}

/* ===== GALLERY ===== */
.gallery-grid {
  columns: 3;
  column-gap: 1rem;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--tr);
}
.gallery-item:hover { box-shadow: var(--shadow-hover); }
.gallery-item img { width: 100%; display: block; }
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  color: rgba(255,255,255,.9);
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  padding: 1.5rem .85rem .65rem;
  opacity: 0;
  transition: opacity var(--tr);
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.94);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius); object-fit: contain; }
.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  color: rgba(255,255,255,.7);
  font-size: 1.8rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}
.lightbox-close:hover { color: white; }
.lightbox-caption {
  position: fixed;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,.5);
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
}

/* ===== ABOUT PAGE ===== */
.about-wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.about-top {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.about-photo {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}
.about-photo-placeholder {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-mid);
  letter-spacing: 1px;
}
.about-info h1 { font-size: 1.9rem; margin-bottom: .4rem; }
.about-meta {
  font-family: 'Inter', sans-serif;
  font-size: .84rem;
  color: var(--text-light);
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: .6rem;
}
.about-meta span { display: flex; align-items: center; gap: .3rem; }
.about-bio {
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--text);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.about-bio p { margin-bottom: 1.2em; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  color: var(--text-light);
  margin-top: auto;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--text);
  font-weight: 700;
}
.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}
.footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  color: var(--text-light);
  transition: color var(--tr);
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  color: var(--text-light);
  width: 100%;
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  margin-top: .5rem;
}

/* ===== PAGE HERO ===== */
.page-hero {
  background: var(--bg-dark);
  padding: 3rem 1.5rem;
  text-align: center;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  color: #FFFFFF;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
}
.page-hero p {
  color: rgba(255,255,255,.45);
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  margin-top: .5rem;
}

/* ===== ARTICLE EXCERPT LEAD ===== */
.article-lead {
  font-size: 1.1rem;
  color: var(--text-mid);
  font-style: italic;
  border-left: 2px solid var(--border-dark);
  padding-left: 1rem;
  margin-bottom: 2rem;
}

/* ===== PAGE SECTIONS ===== */
.page-section {
  padding: 3rem 0;
}
.page-section + .page-section {
  padding-top: 0;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 5rem 1.5rem;
  color: var(--text-light);
}
.empty-state .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.1rem; color: var(--text-mid); margin-bottom: .5rem; font-family: 'Inter', sans-serif; font-weight: 500; }

/* ===== 404 ===== */
.not-found {
  text-align: center;
  padding: 6rem 1.5rem;
  flex: 1;
}
.not-found h1 { font-size: 5rem; color: var(--border-dark); font-family: 'Inter', sans-serif; font-weight: 300; }
.not-found h2 { font-size: 1.4rem; color: var(--text); margin-bottom: .75rem; }
.not-found p { color: var(--text-mid); margin-bottom: 1.5rem; font-family: 'Inter', sans-serif; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2,1fr); }
  .quotes-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2; }
  .related-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: .75rem 1rem; gap: .1rem; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .6rem 1rem; border-radius: var(--radius); }
  .nav-toggle { display: block; }
  .navbar { position: relative; }
  .posts-grid { grid-template-columns: 1fr; }
  .quotes-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2; }
  .related-grid { grid-template-columns: 1fr; }
  .about-top { flex-direction: column; align-items: center; text-align: center; }
  .about-meta { justify-content: center; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .like-share-bar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
  .hero-featured { min-height: 300px; }
  .article-hero h1 { font-size: 1.6rem; }
}
