/* ==========================================================================
   Vice Versa Global — Editions Page
   ========================================================================== */

/* ── Hero ──────────────────────────────────────────────────────────────── */
.vvg-ed-hero {
  position: relative;
  background: var(--vvg-fg);
  padding: 340px 40px 80px;
  overflow: hidden;
}
.vvg-ed-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}
.vvg-ed-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,28,42,0.75) 0%,
    rgba(10,28,42,0.40) 50%,
    rgba(10,28,42,0.12) 100%
  );
}
.vvg-ed-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.vvg-ed-hero h1 {
  font-family: var(--vvg-font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin: 12px 0 10px;
}
.vvg-ed-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  line-height: 1.6;
  margin: 0;
}
.vvg-ed-stats {
  display: flex;
  gap: 32px;
  flex-shrink: 0;
}
.vvg-ed-stat { text-align: right; }
.vvg-ed-stat-num {
  font-family: var(--vvg-font-display);
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.vvg-ed-stat-num.accent { color: var(--vvg-accent); }
.vvg-ed-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Year filter bar ───────────────────────────────────────────────────── */
.vvg-ed-filter {
  background: var(--vvg-surface, #fff);
  border-bottom: 1px solid var(--vvg-border);
  position: sticky;
  top: 0;
  z-index: 90;
}
.admin-bar .vvg-ed-filter { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .vvg-ed-filter { top: 46px; }
}
.vvg-ed-filter-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.vvg-ed-filter-inner::-webkit-scrollbar { display: none; }
.vvg-ed-filter-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--vvg-muted);
  padding: 18px 0;
  border-right: 1px solid var(--vvg-border);
  padding-right: 24px;
  white-space: nowrap;
  flex-shrink: 0;
}
.vvg-ed-years {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.vvg-ed-years::-webkit-scrollbar { display: none; }
.elementor-kit-6 button.vvg-year-btn,
.vvg-year-btn {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  padding: 18px 12px;
  font-family: var(--vvg-font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--vvg-muted) !important;
  white-space: nowrap;
  position: relative;
  transition: color 0.15s;
  text-transform: none !important;
  letter-spacing: normal !important;
}
.elementor-kit-6 button.vvg-year-btn:hover,
.vvg-year-btn:hover { color: var(--vvg-fg) !important; background: none !important; }
.elementor-kit-6 button.vvg-year-btn.active,
.vvg-year-btn.active {
  color: var(--vvg-accent-dark) !important;
  font-weight: 700;
  background: none !important;
}
.vvg-year-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: var(--vvg-accent);
}

/* ── Gallery ───────────────────────────────────────────────────────────── */
.vvg-ed-gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}
.vvg-ed-gallery-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1.5px solid var(--vvg-border);
  padding-bottom: 14px;
  margin-bottom: 36px;
}
.vvg-ed-gallery-bar h2 {
  font-family: var(--vvg-font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--vvg-fg);
  margin: 0;
}
.vvg-ed-gallery-count {
  font-size: 13px;
  color: var(--vvg-muted);
}
.vvg-ed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ── Magazine card ─────────────────────────────────────────────────────── */
.vvg-ed-card {
  background: #fff;
  border: 1px solid var(--vvg-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
.vvg-ed-card:hover {
  box-shadow: 0 10px 32px rgba(0,0,0,0.11);
  transform: translateY(-3px);
}
.vvg-ed-card-cover {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--vvg-bg);
  flex-shrink: 0;
}
.vvg-ed-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
  display: block;
}
.vvg-ed-card:hover .vvg-ed-card-cover img { transform: scale(1.04); }
.vvg-ed-cover-ph {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--vvg-fg) 0%, oklch(28% 0.08 215) 100%);
  color: rgba(255,255,255,0.6);
  gap: 10px;
  padding: 24px;
  text-align: center;
}
.vvg-ed-cover-ph-pub {
  font-family: var(--vvg-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--vvg-accent);
}
.vvg-ed-cover-ph-rule {
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,0.2);
}
.vvg-ed-cover-ph-title {
  font-family: var(--vvg-font-display);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}
.vvg-ed-cover-ph-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.vvg-ed-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--vvg-accent);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 9999px;
}
.vvg-ed-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 16px;
}
.vvg-ed-card-cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--vvg-accent-dark);
  margin-bottom: 6px;
}
.vvg-ed-card-title {
  font-family: var(--vvg-font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--vvg-fg);
  line-height: 1.3;
  margin-bottom: 8px;
}
.vvg-ed-card-desc {
  font-size: 13.5px;
  color: var(--vvg-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vvg-ed-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--vvg-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vvg-ed-card-year { font-size: 12px; color: var(--vvg-muted); }
.vvg-ed-card-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--vvg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.vvg-ed-card-arrow svg {
  width: 13px;
  height: 13px;
  stroke: var(--vvg-muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  transition: stroke 0.15s;
}
.vvg-ed-card:hover .vvg-ed-card-arrow { background: var(--vvg-accent); border-color: var(--vvg-accent); }
.vvg-ed-card:hover .vvg-ed-card-arrow svg { stroke: #fff; }

/* ── No editions fallback ──────────────────────────────────────────────── */
.vvg-ed-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--vvg-muted);
  grid-column: 1 / -1;
}
.vvg-ed-empty p { font-size: 15px; margin-top: 8px; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .vvg-ed-gallery { padding: 36px 24px 60px; }
}
@media (max-width: 768px) {
  .vvg-ed-hero { padding: 160px 24px 48px; }
  .vvg-ed-hero-inner { flex-direction: column; align-items: flex-start; }
  .vvg-ed-filter-inner { padding: 0 16px; gap: 16px; }
  .vvg-ed-filter-label { display: none; }
  .vvg-ed-gallery { padding: 28px 16px 48px; }
  .vvg-ed-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 480px) {
  .vvg-ed-grid { grid-template-columns: 1fr; }
  .vvg-ed-stats { gap: 20px; }
  .vvg-ed-stat-num { font-size: 28px; }
}

/* ── END OF FILE — reader modal styles live in project-template.css ─────── */
