/* ==============================================
   LORDS MOBILE STORE — Blog Styles
   Dark Fantasy Theme | Gold & Purple
   ============================================== */

/* ===== BLOG HERO/HEADER ===== */
.blog-page-hero {
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 58, 237, 0.12) 0%, transparent 70%),
    linear-gradient(to bottom, #0a0614, #0d0a20);
  border-bottom: 1px solid rgba(124, 58, 237, 0.15);
}

.blog-page-hero .hero-badge {
  margin-bottom: 16px;
}

.blog-page-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #fff 30%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.blog-page-subtitle {
  color: #8b7ba8;
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.blog-search-wrap {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.blog-search-wrap input {
  width: 100%;
  padding: 14px 50px 14px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 50px;
  color: #f1f0fb;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.blog-search-wrap input:focus {
  border-color: rgba(124,58,237,0.6);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}

.blog-search-wrap input::placeholder { color: #5a4f70; }

.blog-search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #7c3aed;
  font-size: 1.1rem;
  pointer-events: none;
}

/* ===== BLOG LISTING SECTION ===== */
.blog-listing-section {
  padding: 80px 0;
  background: #0a0614;
  min-height: 60vh;
}

.blog-listing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.blog-count {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  color: #5a4f70;
  font-weight: 600;
}

/* ===== BLOG TAG FILTER ===== */
.blog-tags-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.blog-tag-btn {
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Rajdhani', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
}

.blog-tag-btn:hover,
.blog-tag-btn.active {
  background: rgba(124, 58, 237, 0.25);
  border-color: rgba(124, 58, 237, 0.5);
  color: #fff;
}

/* ===== BLOG GRID ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ===== BLOG CARD ===== */
.blog-card {
  background: rgba(15, 8, 30, 0.9);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(124, 58, 237, 0.12);
}

.blog-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1a0a2e, #0d1844);
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.05);
}

.blog-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(245,158,11,0.08));
  font-size: 3rem;
}

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.blog-tag {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.blog-card-title {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f1f0fb;
  line-height: 1.4;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
  color: #c4b5fd;
}

.blog-card-excerpt {
  font-size: 0.88rem;
  color: #8b7ba8;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(124, 58, 237, 0.1);
  font-size: 0.8rem;
  color: #5a4f70;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
}

.blog-card-date { color: #5a4f70; }

.blog-card-read {
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7c3aed;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  margin-top: 12px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-read-link:hover { color: #a855f7; gap: 10px; }

/* ===== EMPTY STATE ===== */
.blog-empty {
  text-align: center;
  padding: 80px 24px;
  grid-column: 1 / -1;
}

.blog-empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.4;
}

.blog-empty-text {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: #5a4f70;
}

/* ===== SINGLE POST STYLES ===== */
.post-breadcrumb {
  padding: 100px 0 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  color: #5a4f70;
}

.post-breadcrumb a {
  color: #7c3aed;
  text-decoration: none;
  transition: color 0.2s;
}

.post-breadcrumb a:hover { color: #c4b5fd; }

.post-breadcrumb span { margin: 0 8px; }

.post-header-section {
  padding: 40px 0 0;
  background: linear-gradient(to bottom, #0d0a20, #0a0614);
}

.post-header-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.post-header-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.post-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #f1f0fb;
  line-height: 1.25;
  margin-bottom: 20px;
}

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  color: #5a4f70;
  font-weight: 600;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.post-meta-row span { display: flex; align-items: center; gap: 6px; }

.post-thumbnail-wrap {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 0;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a0a2e, #0d1844);
}

.post-thumbnail-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== POST CONTENT AREA ===== */
.post-content-section {
  padding: 0 0 80px;
  background: #0a0614;
}

.post-content-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 0;
}

/* Post body typography — rich and readable */
.post-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #c4b5fd;
  font-family: 'Inter', sans-serif;
}

.post-body h1, .post-body h2, .post-body h3, .post-body h4 {
  font-family: 'Cinzel', serif;
  color: #f1f0fb;
  margin: 2em 0 0.75em;
  line-height: 1.3;
}

.post-body h2 { font-size: 1.6rem; border-bottom: 1px solid rgba(124,58,237,0.2); padding-bottom: 0.5em; }
.post-body h3 { font-size: 1.3rem; color: #c4b5fd; }
.post-body h4 { font-size: 1.1rem; color: #a78bfa; }

.post-body p { margin-bottom: 1.5em; }

.post-body a {
  color: #a855f7;
  text-decoration: underline;
  text-decoration-color: rgba(168,85,247,0.3);
  transition: all 0.2s;
}

.post-body a:hover {
  color: #c4b5fd;
  text-decoration-color: rgba(196,181,253,0.5);
}

.post-body strong { color: #f1f0fb; font-weight: 700; }
.post-body em { color: #c4b5fd; font-style: italic; }

.post-body ul, .post-body ol {
  margin: 0 0 1.5em 1.5em;
  color: #c4b5fd;
}

.post-body li { margin-bottom: 0.5em; }

.post-body blockquote {
  border-left: 3px solid #7c3aed;
  padding: 16px 24px;
  margin: 2em 0;
  background: rgba(124, 58, 237, 0.06);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #c4b5fd;
}

.post-body code {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
  color: #c4b5fd;
}

.post-body pre {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 12px;
  padding: 24px;
  overflow-x: auto;
  margin: 2em 0;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.95rem;
}

.post-body img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1.5em 0;
  display: block;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.95rem;
}

.post-body table th {
  background: rgba(124, 58, 237, 0.15);
  padding: 12px 16px;
  text-align: left;
  color: #c4b5fd;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(124, 58, 237, 0.3);
}

.post-body table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
  color: #c4b5fd;
}

.post-body table tr:hover td { background: rgba(124, 58, 237, 0.04); }

.post-body hr {
  border: none;
  border-top: 1px solid rgba(124, 58, 237, 0.2);
  margin: 3em 0;
}

/* ===== POST SHARE / BACK ===== */
.post-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(124, 58, 237, 0.15);
  flex-wrap: wrap;
  gap: 16px;
}

.post-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: #c4b5fd;
  padding: 10px 20px;
  border-radius: 50px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

.post-back-btn:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.5);
  color: #fff;
}

.post-share-btns {
  display: flex;
  gap: 10px;
}

.post-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 50px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid;
  cursor: pointer;
  background: none;
}

.post-share-wa {
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.3);
}

.post-share-wa:hover {
  background: rgba(37, 211, 102, 0.1);
}

.post-share-tw {
  color: #1da1f2;
  border-color: rgba(29, 161, 242, 0.3);
}

.post-share-tw:hover { background: rgba(29, 161, 242, 0.1); }

/* ===== RELATED POSTS ===== */
.related-posts-section {
  padding: 60px 0;
  background: linear-gradient(to bottom, #0a0614, #0d0a20);
  border-top: 1px solid rgba(124, 58, 237, 0.1);
}

.related-posts-title {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #f1f0fb;
  margin-bottom: 28px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===== PAGINATION ===== */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: #8b7ba8;
}

.page-btn:hover, .page-btn.active {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.5);
  color: #c4b5fd;
}

.page-btn.active {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}

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

@media (max-width: 768px) {
  .blog-page-hero { padding: 100px 0 40px; }
  .blog-listing-section { padding: 50px 0; }
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .related-grid { grid-template-columns: 1fr; }
  .blog-card-body { padding: 18px; }
  .post-content-inner { padding: 32px 16px 0; }
  .post-footer-actions { flex-direction: column; }
  .post-share-btns { width: 100%; justify-content: flex-start; }
  .blog-listing-header { flex-direction: column; align-items: flex-start; }
  .post-meta-row { gap: 12px; }
}

@media (max-width: 480px) {
  .blog-page-title { font-size: 1.8rem; }
  .blog-card-title { font-size: 0.98rem; }
  .post-title { font-size: 1.6rem; }
  .post-body { font-size: 0.97rem; }
  .blog-card-body { padding: 14px; }
}

/* ===== DECORATIVE HERO CHARACTERS ===== */
.blog-hero-char {
  position: absolute;
  bottom: 0;
  width: clamp(180px, 20vw, 290px);
  height: auto;
  pointer-events: none;
  opacity: 0.22;
  z-index: 1;
  overflow: hidden;
  user-select: none;
}

.blog-hero-char img {
  width: 100%;
  height: auto;
  display: block;
  mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,0.8) 25%, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,0.8) 25%, black 80%, transparent 100%);
}

.blog-hero-char--left {
  left: 3%;
  transform: scaleX(-1);
}

.blog-hero-char--right {
  right: 3%;
}

@media (max-width: 900px) {
  .blog-hero-char {
    display: none;
  }
}
