/*
 * SOVEREIGN INDUSTRIAL CATALOG SYSTEM v1.0
 * Unified architecture for Blogs, Case Studies, and Solutions.
 */

:root {
  /* Core Palette */
  --za-dark:      #02040A;
  --za-dark-soft: #0A0F1E;
  --za-accent:    #3B82F6;
  --za-accent-2:  #22D3EE;
  --za-success:   #10B981;
  --za-bg:        #F8FAFC;
  --za-surface:   #FFFFFF;
  --za-border:    #E2E8F0;
  --za-text-h:    #0F172A;
  --za-text-b:    #334155;
  --za-text-m:    #64748B;

  /* Typography Stacks */
  --f-display: 'Sora', system-ui, sans-serif;
  --f-body:    'Inter', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', monospace;

  /* Shadows */
  --shadow-elite: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ── 1. LAYOUT ── */
.za-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 640px) {
  .za-container { padding: 0 20px; }
}

.za-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 40px;
}

/* ── 2. CARDS ── */
.za-card {
  display: flex;
  flex-direction: column;
  background: var(--za-surface);
  border: 1px solid var(--za-border);
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-elite);
  height: 100%;
}

.za-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--za-accent);
}

.za-card__media {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--za-dark);
}

.za-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 0.8s ease;
}

.za-card:hover .za-card__img {
  transform: scale(1.05);
  opacity: 1;
}

.za-card__cat {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.za-card__content {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.za-card__title {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--za-text-h);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.za-card__desc {
  font-family: var(--f-body);
  font-size: 0.95rem;
  color: var(--za-text-m);
  line-height: 1.6;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.za-card__footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--za-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.za-card__meta {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--za-text-m);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.za-card__arrow {
  color: var(--za-accent);
  transition: transform 0.3s ease;
}

.za-card:hover .za-card__arrow {
  transform: translateX(5px);
}

/* ── 3. CATALOG COMPONENTS ── */
.csi-catalog {
  padding-top: 100px;
  padding-bottom: 160px; /* Deep breathing room for World Class UX */
  background: var(--za-bg);
  position: relative;
  z-index: 1;
}

/* ── 4. ZEN-SOVEREIGN PAGINATION (v1.1) ── */
.za-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 100px;
}

.pagination-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--za-surface);
  border: 1px solid var(--za-border);
  border-radius: 14px;
  color: var(--za-text-m);
  font-family: var(--f-display);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.pagination-btn:hover {
  transform: translateY(-4px);
  border-color: var(--za-accent);
  color: var(--za-accent);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.1);
}

.pagination-btn.active {
  background: var(--za-accent);
  border-color: var(--za-accent);
  color: #fff;
  box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.3);
  transform: scale(1.1);
}

.pagination-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
  filter: grayscale(1);
}
