/* ═══════════════════════════════════════════════════════════════
   PTRP Türkiye Roleplay — Blog Stylesheet
   ═══════════════════════════════════════════════════════════════ */

.blog-wrapper {
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 100px;
  min-height: 100vh;
}

.blog-hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 50px;
}
.blog-hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin-bottom: 14px;
}
.blog-hero p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.blog-search-box {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
}
.blog-search-box svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}
.blog-search-box input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  background: #111522;
  border: 1px solid var(--border-default);
  border-radius: 50px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.blog-search-box input:focus {
  border-color: var(--red);
  box-shadow: 0 0 24px var(--red-glow);
  background: #151928;
}

.blog-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.blog-card-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--red-hover);
  text-transform: uppercase;
}

.blog-card h2 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
}

.blog-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.blog-read-btn {
  font-size: 13px;
  font-weight: 700;
  color: var(--red-hover);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.blog-read-btn:hover {
  color: #fff;
  text-decoration: underline;
}

.blog-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.blog-meta-tags span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ═══════════════════ TAM OKUYUCU MODALI (ARTICLE READER) ═══════════════════ */
.article-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 13, 0.92);
  backdrop-filter: blur(16px);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.article-modal-overlay.active {
  display: flex;
}
.article-modal-container {
  background: #111422;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  max-width: 860px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
}
.article-modal-close {
  position: sticky;
  top: 0;
  float: right;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}
.article-modal-close:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.article-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.article-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--red-hover);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.article-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 12px;
}
.article-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-dim);
}

.article-prose {
  font-size: 16px;
  line-height: 1.85;
  color: #d1d5db;
}
.article-prose p {
  margin-bottom: 20px;
}
.article-prose h3 {
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  margin: 32px 0 14px;
}
.article-prose h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--red-hover);
  margin: 22px 0 10px;
}
.article-prose ul, .article-prose ol {
  margin: 0 0 24px 20px;
}
.article-prose li {
  margin-bottom: 8px;
}
.article-callout {
  background: rgba(220, 38, 38, 0.08);
  border-left: 3px solid var(--red);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
  font-size: 15px;
  color: #fca5a5;
}
.article-cta-box {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(15, 18, 28, 0.9));
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  margin-top: 40px;
}
.article-cta-box h4 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.article-cta-box p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .blog-articles-grid {
    grid-template-columns: 1fr;
  }
  .article-modal-container {
    padding: 24px 18px;
  }
}
