/* ═══════════════════════════════════════════
   PadhoLikhoJEE — Layout CSS
   Homepage · Post · Archive · Author
   ═══════════════════════════════════════════ */

/* ── SHARED CONTAINER ── */
body.plj-dark .ast-container { max-width: 860px !important; }

/* ════════════════════════════════════════
   HOMEPAGE
   ════════════════════════════════════════ */

/* Hero badge */
.plj-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--plj-cyan-dim);
  border: 1px solid var(--plj-cyan-border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--plj-cyan);
  font-family: var(--plj-font-head);
  margin-bottom: 14px;
}
.plj-hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--plj-cyan);
  border-radius: 50%;
}

.plj-hero-title {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 800;
  font-family: var(--plj-font-head);
  color: #F1F5F9;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.plj-hero-title span { color: var(--plj-cyan); }

.plj-hero-sub {
  font-size: 15px;
  font-family: var(--plj-font-body);
  color: var(--plj-text-3);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 24px;
}

.plj-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* Chapter card grid */
.plj-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

/* ════════════════════════════════════════
   SINGLE POST — PYQ Solution
   ════════════════════════════════════════ */

body.plj-post .entry-header { margin-bottom: 8px; }

body.plj-post .entry-title {
  font-size: clamp(20px, 4vw, 28px) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  color: #F1F5F9 !important;
  margin-bottom: 12px !important;
}

/* Post meta strip */
.plj-post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--plj-border);
}
.plj-post-meta__date {
  font-size: 12px;
  color: var(--plj-text-3);
  font-family: var(--plj-font-body);
  margin-left: auto;
}

/* Author strip inside post */
.plj-post-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--plj-surface);
  border: 1px solid var(--plj-border);
  border-radius: var(--plj-radius);
  margin-bottom: 28px;
}
.plj-post-author__avatar {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--plj-cyan-border);
  object-fit: cover;
}
.plj-post-author__name {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--plj-font-head);
  color: var(--plj-text);
}
.plj-post-author__cred {
  font-size: 11px;
  color: var(--plj-text-3);
  font-family: var(--plj-font-body);
}
.plj-post-author__link {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--plj-cyan);
}

/* Solution section header */
.plj-sol-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--plj-green);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 24px 0 16px;
}
.plj-sol-header i { font-size: 15px; }

/* Concept note (GEO block) */
.plj-concept-note {
  background: rgba(6,182,212,0.04);
  border-left: 3px solid var(--plj-cyan);
  border-radius: 0 var(--plj-radius-sm) var(--plj-radius-sm) 0;
  padding: 14px 18px;
  margin: 24px 0;
}
.plj-concept-note__label {
  font-size: 10px;
  font-weight: 700;
  color: var(--plj-cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.plj-concept-note__text {
  font-size: 13px;
  font-family: var(--plj-font-body);
  color: var(--plj-text-2);
  line-height: 1.7;
}

/* Action strip (Download, Next, Save) */
.plj-action-strip {
  display: flex;
  gap: 10px;
  margin: 28px 0;
  flex-wrap: wrap;
}
.plj-action-strip .plj-btn {
  flex: 1;
  justify-content: center;
  min-width: 120px;
}

/* Related posts */
.plj-related {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--plj-border);
}
.plj-related__title {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--plj-font-head);
  color: var(--plj-text-2);
  margin-bottom: 16px;
}

/* ════════════════════════════════════════
   CATEGORY / ARCHIVE PAGE
   ════════════════════════════════════════ */

body.plj-archive .page-header {
  background: var(--plj-surface);
  border: 1px solid var(--plj-border);
  border-radius: var(--plj-radius);
  padding: 24px;
  margin-bottom: 28px;
}
body.plj-archive .page-title {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #F1F5F9 !important;
  margin-bottom: 6px !important;
}
.plj-archive-desc {
  font-size: 14px;
  color: var(--plj-text-3);
  font-family: var(--plj-font-body);
  line-height: 1.6;
}
.plj-archive-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--plj-cyan);
  margin-top: 8px;
  display: block;
}

/* Archive card list */
.plj-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 40px;
}

/* FAQ block on category pages */
.plj-faq-block {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--plj-border);
}
.plj-faq-block__title {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--plj-font-head);
  color: #F1F5F9;
  margin-bottom: 16px;
}
.plj-faq-item {
  border: 1px solid var(--plj-border);
  border-radius: var(--plj-radius-sm);
  overflow: hidden;
  margin-bottom: 8px;
}
.plj-faq-q {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--plj-font-head);
  color: var(--plj-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--plj-surface);
}
.plj-faq-q:hover { background: var(--plj-surface-2); }
.plj-faq-q i { font-size: 16px; color: var(--plj-text-3); transition: var(--plj-transition); }
.plj-faq-item.open .plj-faq-q i { transform: rotate(180deg); color: var(--plj-cyan); }
.plj-faq-a {
  display: none;
  padding: 14px 16px;
  font-size: 13px;
  font-family: var(--plj-font-body);
  color: var(--plj-text-2);
  line-height: 1.7;
  border-top: 1px solid var(--plj-border);
}
.plj-faq-item.open .plj-faq-a { display: block; }

/* ════════════════════════════════════════
   AUTHOR PAGE
   ════════════════════════════════════════ */

body.plj-author .entry-content { padding: 0; }

.plj-author-hero {
  padding: 32px 0 24px;
  position: relative;
  overflow: hidden;
}
.plj-author-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -100px;
  width: 400px; height: 300px;
  background: radial-gradient(ellipse, rgba(79,70,229,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.plj-author-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.plj-author-avatar-wrap { position: relative; flex-shrink: 0; }
.plj-author-avatar {
  width: 88px; height: 88px;
  border-radius: 16px;
  border: 2px solid var(--plj-cyan-border);
  object-fit: cover;
  background: linear-gradient(135deg, #1E3A5F, #1a1040);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; color: var(--plj-cyan);
  font-family: var(--plj-font-head);
}
.plj-author-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.plj-verified {
  position: absolute;
  bottom: -5px; right: -5px;
  width: 24px; height: 24px;
  background: var(--plj-cyan);
  border-radius: 50%;
  border: 2px solid var(--plj-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--plj-bg);
}
.plj-author-name {
  font-size: 22px !important;
  font-weight: 800 !important;
  font-family: var(--plj-font-head) !important;
  color: #F1F5F9 !important;
  margin-bottom: 4px !important;
}
.plj-author-role { font-size: 13px; color: var(--plj-cyan); font-weight: 600; margin-bottom: 5px; }
.plj-author-loc {
  font-size: 12px;
  color: var(--plj-text-3);
  font-family: var(--plj-font-body);
  display: flex; align-items: center; gap: 5px;
}
.plj-author-loc i { font-size: 13px; }

/* Institute badges */
.plj-inst-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.plj-inst-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--plj-surface);
  border: 1px solid var(--plj-border);
  border-radius: var(--plj-radius);
  padding: 12px;
}
.plj-inst-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
  flex-shrink: 0;
}
.plj-inst-name { font-size: 13px; font-weight: 700; color: var(--plj-text); }
.plj-inst-role { font-size: 11px; color: var(--plj-text-3); font-family: var(--plj-font-body); }

/* Philosophy quote */
.plj-philosophy {
  background: var(--plj-purple-dim);
  border: 1px solid rgba(79,70,229,0.2);
  border-radius: var(--plj-radius);
  padding: 20px;
  margin-bottom: 28px;
  position: relative;
}
.plj-philosophy__icon {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 36px;
  color: rgba(79,70,229,0.15);
}
.plj-philosophy__label {
  font-size: 10px;
  font-weight: 700;
  color: #818CF8;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.plj-philosophy__label i { font-size: 14px; }
.plj-philosophy__text {
  font-size: 14px;
  font-family: var(--plj-font-body);
  color: var(--plj-text-2);
  line-height: 1.7;
  font-style: italic;
}
.plj-philosophy__text strong { color: var(--plj-text); font-style: normal; }

/* Connect links */
.plj-connect-row {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.plj-connect-btn {
  flex: 1;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--plj-radius-sm);
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--plj-font-head);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: var(--plj-transition);
}
.plj-connect-btn i { font-size: 16px; }
.plj-connect-btn--yt  { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.25); color: #FCA5A5; }
.plj-connect-btn--wa  { background: rgba(37,211,102,0.1); border-color: rgba(37,211,102,0.25); color: #4ADE80; }
.plj-connect-btn--web { background: var(--plj-cyan-dim); border-color: var(--plj-cyan-border); color: var(--plj-cyan); }
.plj-connect-btn:hover { transform: translateY(-2px); text-decoration: none; }

@media (max-width: 600px) {
  .plj-inst-row { grid-template-columns: 1fr; }
  .plj-author-card { flex-direction: column; align-items: center; text-align: center; }
  .plj-author-loc { justify-content: center; }
}
