/* =====================================================
   patents.css  –  Styles for patents.html
   Depends on: domain.css (loaded first)
   MEMBER Lab, IIT Kharagpur
   ===================================================== */

/* ── Page title bar ── */
.page-title-bar {
  background: linear-gradient(135deg, #1a2a4a 0%, #2a3f6e 60%, #c97d2e 100%);
  padding: 48px 0 36px;
  text-align: center;
  color: #fff;
}

.page-title-bar h1 {
  font-family: 'Crimson Pro', serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ── Patents wrapper ── */
.patents-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 52px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Stats row ── */
.patent-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 8px;
}

.patent-stat-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.patent-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.patent-stat-card .stat-num {
  font-family: 'Crimson Pro', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #c97d2e;
  line-height: 1;
}

.patent-stat-card .stat-label {
  font-size: 0.78rem;
  color: #777;
  margin-top: 5px;
  font-weight: 500;
}

/* ── Individual patent card ── */
.patent-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  border-left: 5px solid #c97d2e;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
}

.patent-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.11);
}

/* Year badge – top right corner */
.patent-year-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: #f0f3f8;
  color: #1a2a4a;
  border-radius: 20px;
  padding: 3px 12px;
}

/* Patent title – clickable link */
.patent-title {
  font-family: 'Crimson Pro', serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #1a4fa3;
  line-height: 1.4;
  text-decoration: none;
  padding-right: 72px; /* prevent overlap with badge */
  transition: color 0.2s ease;
  display: block;
}

.patent-title:hover {
  color: #c97d2e;
  text-decoration: underline;
}

/* Meta row: field, inventors */
.patent-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.patent-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.87rem;
  color: #555;
  line-height: 1.5;
}

.patent-meta-row strong {
  color: #333;
  font-weight: 600;
  flex-shrink: 0;
  min-width: 64px;
}

/* Field tag pill */
.patent-field-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  background: #fff3e0;
  color: #c97d2e;
  border: 1px solid #f5c888;
  border-radius: 20px;
  padding: 2px 10px;
  white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .patent-stats { grid-template-columns: 1fr 1fr; }
  .patent-stats .patent-stat-card:last-child { grid-column: 1 / -1; }
  .patent-card { padding: 18px 18px; }
  .patent-year-badge { top: 14px; right: 14px; }
  .patent-title { padding-right: 56px; font-size: 1rem; }
  .page-title-bar h1 { font-size: 1.9rem; }
}