/* ============================================================
   JPSIM — Current Issue Page Styles
   issue.css  |  Loaded only on journal/current-issue
   ============================================================ */

/* ── Issue Hero Card ─────────────────────────────────────────── */
.issue-hero-card {
  display: flex;
  align-items: stretch;
  background: linear-gradient(135deg, #091c30 0%, var(--primary) 50%, #1e4a72 100%);
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 var(--sp-4);
  box-shadow: 0 10px 40px rgba(9,28,48,.45);
  min-height: 120px;
  position: relative;
}

/* ── Left column ── */
.ihc-left {
  flex: 0 0 38%;
  padding: 18px 26px 18px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
  z-index: 1;
}

/* Blue diagonal wave on left */
.ihc-left::before {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -60px;
  width: 260px;
  height: 120px;
  background: rgba(255,255,255,.06);
  border-radius: 60% 80% 0 0;
  transform: rotate(-18deg);
  pointer-events: none;
}

/* Gold accent line */
.ihc-left::after {
  content: '';
  position: absolute;
  bottom: 26px;
  left: -10px;
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 40%, color-mix(in srgb, var(--accent) 30%, transparent) 100%);
  transform: rotate(-20deg);
  pointer-events: none;
}

/* "CURRENT ISSUE" parallelogram badge */
.ihc-eyebrow {
  display: inline-block;
  background: var(--accent);
  color: #0a1f3a;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 5px 20px 5px 14px;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  align-self: flex-start;
  line-height: 1.6;
}

.ihc-journal-name {
  color: #fff;
  font-size: clamp(.85rem, 1.7vw, 1.08rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  font-family: var(--font-heading);
}

/* ── Gold vertical divider ── */
.ihc-vdivider {
  width: 1px;
  background: linear-gradient(to bottom, transparent 5%, color-mix(in srgb, var(--accent) 70%, transparent) 30%, color-mix(in srgb, var(--accent) 70%, transparent) 70%, transparent 95%);
  flex-shrink: 0;
  margin: 0;
  align-self: stretch;
}

/* ── Right column ── */
.ihc-right {
  flex: 1;
  padding: 18px 24px 18px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

/* Hexagon pattern background */
.ihc-right::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 45%;
  background-image: url("data:image/svg+xml,%3Csvg width='56' height='50' viewBox='0 0 56 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 2 L54 17 L54 33 L28 48 L2 33 L2 17 Z' fill='none' stroke='%23ffffff' stroke-width='0.7'/%3E%3C/svg%3E");
  background-size: 56px 50px;
  opacity: .08;
  pointer-events: none;
}

/* Volume row */
.ihc-vol-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ihc-vol-title {
  color: #fff;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
  margin: 0;
  font-family: var(--font-heading);
  letter-spacing: -.01em;
}

/* "2026" arrow badge */
.ihc-year-badge {
  display: inline-block;
  background: var(--accent);
  color: #0a1f3a;
  font-size: .8rem;
  font-weight: 900;
  padding: 5px 20px 5px 12px;
  clip-path: polygon(0% 0%, calc(100% - 12px) 0%, 100% 50%, calc(100% - 12px) 100%, 0% 100%);
  letter-spacing: .06em;
  white-space: nowrap;
  line-height: 1.6;
}

.ihc-period {
  color: rgba(255,255,255,.6);
  font-size: .82rem;
  margin: 0;
}

/* Stats row */
.ihc-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.ihc-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(8,27,51,.5);
  border: 1.5px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 10px;
  padding: 7px 14px;
  min-width: 62px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.ihc-stat-num {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  font-family: var(--font-heading);
}
.ihc-stat-lbl {
  font-size: .57rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-top: 5px;
  white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .issue-hero-card { flex-direction: column; }
  .ihc-left { flex: none; padding: 20px 20px 14px; }
  .ihc-vdivider { width: 100%; height: 1px; background: linear-gradient(to right, transparent, color-mix(in srgb, var(--accent) 60%, transparent), transparent); }
  .ihc-right { padding: 16px 20px 20px; }
  .ihc-left::after { display: none; }
}
.issue-card .issue-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}
.issue-card .issue-stat {
  text-align: center;
  min-width: 64px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  backdrop-filter: blur(4px);
}
.issue-card .issue-stat__num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  font-family: var(--font-heading);
}
.issue-card .issue-stat__label {
  font-size: .62rem;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 4px;
  display: block;
}

/* ── Article Badges ───────────────────────────────────────────
   .badge + the per-type .badge-* colors now live in one shared place —
   style.css's "ARTICLE BADGES & LISTING" section (soft/pastel pills,
   mixed-case labels) — so the Current Issue page renders the same badge
   design as Home instead of this file's old solid/uppercase version
   (which also used a "badge-reflection" class jpsim_badge_class() never
   actually generated — see issue.php — so it silently never applied). */

/* ── Article Title / Authors ─────────────────────────────────── */
.article-item-v2 .art-title,
.article-item-v2 h3.art-title {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: var(--sp-1);
  font-family: var(--font-heading);
}
.article-item-v2 .art-title a {
  color: inherit;
  text-decoration: none;
}
.article-item-v2 .art-title a:hover {
  text-decoration: underline;
  color: var(--accent);
}
.article-item-v2 .art-authors {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}

/* ── Article Date Labels ─────────────────────────────────────── */
.art-dates strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Type Filter Bar ─────────────────────────────────────────── */
.issue-filter-bar {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}
.issue-filter-bar .type-btn {
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .18s;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.issue-filter-bar .type-btn:hover,
.issue-filter-bar .type-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Search Bar (issue page) ─────────────────────────────────── */
.issue-search-wrap {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
}
.issue-search-wrap input[type="search"] {
  flex: 1;
  min-width: 200px;
  padding: .5rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  background: #fff;
}
.issue-search-wrap input[type="search"]:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(26,60,94,.1);
}
.issue-search-wrap select {
  padding: .5rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  background: #fff;
  color: var(--text);
  min-width: 160px;
}

/* ── No-results message ──────────────────────────────────────── */
#no-results {
  display: none;
  text-align: center;
  padding: var(--sp-8);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* ── Quick Links Band (full-width) ───────────────────────────── */
.qlb-section {
  background: #e8eef6;
  padding: var(--sp-10) 0;
  margin-top: var(--sp-6);
}
.qlb-header {
  text-align: center;
  margin-bottom: var(--sp-6);
}
.qlb-title {
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--sp-1);
}
.qlb-sub {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin: 0;
}
.qlb-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-3);
}
.qlb-card {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: #fff;
  border: 1px solid #d0d9e8;
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  text-decoration: none;
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
.qlb-card:hover {
  box-shadow: 0 4px 16px rgba(26,60,94,.13);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}
.qlb-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qlb-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.qlb-info strong {
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}
.qlb-info span {
  font-size: .73rem;
  color: var(--text-muted);
  line-height: 1.3;
}
@media (max-width: 1024px) {
  .qlb-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .qlb-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .qlb-grid { grid-template-columns: 1fr; }
}

/* ── Two-column content grid ─────────────────────────────────── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: var(--sp-6);
  align-items: start;
  margin-top: var(--sp-2);
}
.content-area {
  min-width: 0;
}

/* ── Issue Metrics Sidebar Widget ───────────────────────────── */
.im-widget {
  padding: 0;
  overflow: hidden;
}
.im-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0f4c75 0%, #1b6ca8 100%);
  padding: 11px 16px;
}
.im-hdr span {
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Data rows */
.im-rows {
  padding: 6px 0 2px;
}
.im-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  border-bottom: 1px solid #f0f4f8;
  gap: var(--sp-3);
  transition: background .14s;
}
.im-row:hover {
  background: #f7fafd;
}
.im-row--last {
  border-bottom: none;
}
.im-label {
  font-size: .81rem;
  color: var(--text-muted);
  font-weight: 400;
}
.im-val {
  font-size: .88rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

/* Badge strip */
.im-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 10px 14px 14px;
  border-top: 1px solid #edf2f7;
  background: #f8fafc;
}
.im-badge {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fff;
  line-height: 1.5;
  /* Always-visible default — the per-type modifiers below override this
     when a badge's label matches a known category (see PublicController's
     $typeCounts), but any other/unmatched label still needs to be readable
     instead of falling through to invisible white-on-white text. */
  background: #475569;
}
.im-badge--editorial  { background: #7c3aed; }
.im-badge--review     { background: #0891b2; }
.im-badge--original   { background: #1a3c5e; }
.im-badge--case       { background: #ea7c12; }
.im-badge--reflection { background: #6b7280; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .ihc-stats { gap: 7px; }
  .ihc-stat { padding: 8px 12px; min-width: 58px; }
  .ihc-stat-num { font-size: 1.5rem; }
}
