/* ==========================================================================
   PGG LEGACY — blog.css
   Styles αποκλειστικά για το Blog section
   ========================================================================== */

/* ── Μεταβλητές (fallback αν δεν φορτωθεί το base.css) ──────────────────── */
:root {
  --accent1:        #6b2dd8;
  --accent2:        #521eb8;
  --accent2-transp: rgba(82, 30, 184, 0.33);
  --background1:    #1a1921;
  --background2:    #121117;
  --roundness:      0.75rem;
  --transition-std: 0.3s ease;
}

/* ==========================================================================
   BLOG HERO
   ========================================================================== */

.blog-hero {
  padding: 8rem 1rem 3rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    rgba(0, 0, 0, 0.65)
    url('/blog/media/hero-bg.webp')
    center / cover
    no-repeat;
  background-blend-mode: darken;
  min-height: 220px;
}

.blog-hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: #b0b0b0;
  text-align: center;
  margin-top: 0.5rem;
  padding: 0 1rem;
}

/* ==========================================================================
   BLOG INDEX — Grid & Cards
   ========================================================================== */

.blog-index-section {
  width: 100%;
  background-color: var(--background2, #121117);
  padding: 3rem 1rem 5rem;
}

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

/* ── Blog Card ────────────────────────────────────────────────────────────── */
.blog-card {
  background-color: var(--background1, #1a1921);
  border-radius: var(--roundness);
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  transition: transform var(--transition-std), border-color var(--transition-std);
  position: relative;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent1);
}

.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-img-wrapper {
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background-color: var(--background2, #121117);
}

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

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

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

/* ── Card Elements ────────────────────────────────────────────────────────── */
.blog-card-tag {
  display: inline-block;
  background-color: var(--accent2-transp);
  border: 1px solid var(--accent1);
  color: #c084fc;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.blog-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

.blog-card-excerpt {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
}

.blog-card-read-more {
  color: var(--accent1);
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: auto;
  padding-top: 0.8rem;
}

/* ==========================================================================
   BLOG ARTICLE
   ========================================================================== */

.blog-article-wrapper {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
}

/* ── Breadcrumb ───────────────────────────────────────────────────────────── */
.blog-breadcrumb {
  margin-bottom: 2rem;
}

.blog-breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.blog-breadcrumb-list a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-breadcrumb-list a:hover { color: var(--accent1); }

.blog-breadcrumb-list [aria-current="page"] {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Article Header ───────────────────────────────────────────────────────── */
.blog-article-header {
  margin-bottom: 2rem;
}

.blog-article-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin: 0.8rem 0 0.6rem;
  line-height: 1.2;
}

.blog-article-meta {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Banner Image ─────────────────────────────────────────────────────────── */
.blog-article-banner {
  width: 100%;
  height: auto;
  border-radius: var(--roundness);
  margin-bottom: 2.5rem;
  object-fit: cover;
  aspect-ratio: 9 / 4;
  display: block;
  background-color: var(--background2, #121117);
}

/* ==========================================================================
   ARTICLE CONTENT — Typography
   ========================================================================== */

.blog-article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.blog-article-content h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: #fff;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(107, 45, 216, 0.3);
  scroll-margin-top: 5rem;
}

.blog-article-content p { margin: 0 0 1.2rem; }

.blog-article-content ul,
.blog-article-content ol {
  padding-left: 1.5rem;
  margin: 0 0 1.2rem;
}

.blog-article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.blog-article-content a {
  color: #a855f7;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.blog-article-content a:hover { color: var(--accent1); }

.blog-article-content strong {
  color: #fff;
  font-weight: 700;
}

.blog-article-content code {
  background-color: rgba(107, 45, 216, 0.15);
  border: 1px solid rgba(107, 45, 216, 0.25);
  border-radius: 0.3rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.92em;
  color: #c084fc;
  font-family: 'Courier New', Courier, monospace;
}

kbd {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom-width: 2px;
  border-radius: 0.3rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Courier New', Courier, monospace;
}

/* ==========================================================================
   UI COMPONENTS — Callouts, CTA, Back Link
   ========================================================================== */

/* ── Info Box ─────────────────────────────────────────────────────────────── */
.blog-info-box {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background-color: rgba(107, 45, 216, 0.08);
  border: 1px solid rgba(107, 45, 216, 0.35);
  border-radius: var(--roundness);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  font-size: 0.97rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.blog-info-box.warning {
  border-color: rgba(255, 204, 0, 0.3);
  background-color: rgba(255, 204, 0, 0.05);
}

.blog-info-box.compact {
  margin-top: 1rem;
  margin-bottom: 0;
}

.blog-info-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ── CTA Box ──────────────────────────────────────────────────────────────── */
.blog-cta-box {
  margin: 3rem 0 1rem;
  background: rgba(107, 45, 216, 0.12);
  border: 1px solid var(--accent1);
  border-radius: var(--roundness);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.blog-cta-box p {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.blog-cta-ip {
  font-size: 1.5rem;
  font-weight: 800;
  color: #a855f7;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
  letter-spacing: 0.5px;
}

.blog-cta-btn,
.discord-btn {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent1);
  color: #fff;
  border-radius: var(--roundness);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: filter var(--transition-std), transform var(--transition-std);
  border: 1px solid var(--accent1);
}

.blog-cta-btn:hover,
.discord-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

/* ── Back Link ────────────────────────────────────────────────────────────── */
.blog-back-link {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.blog-back-link a {
  color: var(--accent1);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: color 0.2s;
}

.blog-back-link a:hover { color: #a855f7; }

/* ==========================================================================
   COMMANDS — Tables, Section Titles, Quick Nav
   ========================================================================== */

/* ── Section Title ────────────────────────────────────────────────────────── */
.cmd-section-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 3rem 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(107, 45, 216, 0.2);
}

.cmd-section-title span { font-size: 1.3rem; }

/* ── Quick Nav ────────────────────────────────────────────────────────────── */
.cmd-quicknav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.2rem;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--roundness);
}

.cmd-quicknav span {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 0.3rem;
}

.cmd-quicknav a {
  display: inline-block;
  background-color: rgba(107, 45, 216, 0.15);
  border: 1px solid rgba(107, 45, 216, 0.3);
  color: #c084fc;
  font-size: 0.83rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.cmd-quicknav a:hover {
  background-color: rgba(107, 45, 216, 0.35);
  border-color: var(--accent1);
  color: #fff;
}

/* ── Table ────────────────────────────────────────────────────────────────── */
.cmd-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 0.5rem 0 1.5rem;
  border-radius: var(--roundness);
  -webkit-overflow-scrolling: touch;
}

.cmd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 360px;
}

.cmd-table thead tr {
  background-color: rgba(107, 45, 216, 0.2);
}

.cmd-table th {
  text-align: left;
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(107, 45, 216, 0.3);
}

.cmd-table td {
  padding: 0.65rem 1rem;
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: top;
  line-height: 1.6;
}

.cmd-table tbody tr {
  transition: background-color 0.15s;
}

.cmd-table tbody tr:hover {
  background-color: rgba(107, 45, 216, 0.08);
}

.cmd-table tbody tr:last-child td {
  border-bottom: none;
}

.cmd-table code {
  background-color: rgba(107, 45, 216, 0.15);
  border: 1px solid rgba(107, 45, 216, 0.25);
  border-radius: 0.3rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.88em;
  color: #c084fc;
  font-family: 'Courier New', Courier, monospace;
  white-space: nowrap;
}

/* ==========================================================================
   SEASONS & EVENTS
   ========================================================================== */

/* ── Season Cards ─────────────────────────────────────────────────────────── */
.blog-season-card {
  background-color: rgba(255, 255, 255, 0.03);
  border-left: 4px solid var(--accent1);
  border-radius: 0 var(--roundness) var(--roundness) 0;
  padding: 1.2rem 1.4rem;
  margin: 0.8rem 0 2rem;
}

.blog-season-card p   { margin: 0 0 0.8rem; }
.blog-season-card ul  { padding-left: 1.3rem; margin: 0 0 0.8rem; }
.blog-season-card li  { margin-bottom: 0.4rem; line-height: 1.6; }

.blog-season-card.spring  { border-left-color: #86efac; background: linear-gradient(135deg, rgba(134,239,172,0.07) 0%, transparent 100%); }
.blog-season-card.summer  { border-left-color: #fcd34d; background: linear-gradient(135deg, rgba(252,211,77,0.07)  0%, transparent 100%); }
.blog-season-card.autumn  { border-left-color: #fb923c; background: linear-gradient(135deg, rgba(251,146,60,0.07)  0%, transparent 100%); }
.blog-season-card.winter  { border-left-color: #93c5fd; background: linear-gradient(135deg, rgba(147,197,253,0.07) 0%, transparent 100%); }
.blog-season-card.spooky  { border-left-color: #a78bfa; background: linear-gradient(135deg, rgba(167,139,250,0.07) 0%, transparent 100%); }
.blog-season-card.merchant{ border-left-color: #fde68a; background: linear-gradient(135deg, rgba(253,230,138,0.07) 0%, transparent 100%); }

/* ── Event Date Badge ─────────────────────────────────────────────────────── */
.event-date-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: rgba(107, 45, 216, 0.2);
  border: 1px solid rgba(107, 45, 216, 0.4);
  color: #c084fc;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 0.6rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* ── Event Dots ───────────────────────────────────────────────────────────── */
.event-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.4rem;
  flex-shrink: 0;
  vertical-align: middle;
}

.event-dot.blue   { background: #93c5fd; }
.event-dot.pink   { background: #f9a8d4; }
.event-dot.yellow { background: #fcd34d; }
.event-dot.orange { background: #fb923c; }
.event-dot.purple { background: #a78bfa; }
.event-dot.green  { background: #86efac; }
.event-dot.gold   { background: #fde68a; }
.event-dot.mint   { background: #6ee7b7; }

/* ── Loot Grid ────────────────────────────────────────────────────────────── */
.event-loot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.event-loot-grid span {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--roundness);
  padding: 0.3rem 0.75rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

/* ── Steps List ───────────────────────────────────────────────────────────── */
.blog-steps-list {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.blog-steps-list li { margin-bottom: 0.6rem; }

/* ==========================================================================
   AOS ANIMATIONS
   ========================================================================== */

[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .blog-hero {
    padding: 6rem 1rem 2.5rem;
    min-height: 180px;
  }

  .blog-article-wrapper {
    padding: 5.5rem 1rem 3rem;
  }

  .blog-card {
    max-width: 100%;
  }

  .blog-article-content h2 {
    margin-top: 2rem;
    scroll-margin-top: 4rem;
  }

  .blog-cta-box {
    padding: 1.5rem 1rem;
  }

  .cmd-quicknav {
    padding: 0.8rem 1rem;
  }

  .blog-season-card {
    padding: 1rem 1.1rem;
  }
}

@media (max-width: 480px) {
  .event-date-badge {
    display: block;
    width: fit-content;
    margin: 0.4rem 0 0;
  }

  .event-loot-grid span {
    font-size: 0.82rem;
    padding: 0.25rem 0.6rem;
  }

  .cmd-quicknav a {
    font-size: 0.78rem;
    padding: 0.2rem 0.55rem;
  }
}

/* ==========================================================================
   ACCESSIBILITY & PRINT
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .blog-card,
  .blog-card-img,
  [data-aos],
  .cmd-quicknav a,
  .blog-back-link a,
  .blog-cta-btn,
  .discord-btn {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

@media print {
  .desktop_navbar,
  .mobile_navbar,
  .custom-cursor,
  .cursor-glow,
  .blog-cta-box,
  .cmd-quicknav {
    display: none !important;
  }

  .blog-article-wrapper {
    padding: 1rem;
    max-width: 100%;
  }

  .blog-article-content a {
    color: #000;
    text-decoration: underline;
  }
}