/* ================================================================
   credential-detail.css — Full certificate detail page (v2, redesigned)
   Vivek Pal
================================================================ */

.cred-detail-section {
  padding: 140px 5% 100px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.cred-detail-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.cred-back {
  display: inline-block;
  color: #00f2ff;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  margin-bottom: 26px;
  transition: opacity 0.25s ease;
}
.cred-back:hover { opacity: 0.7; }

/* ----------------------------------------------------------------
   OUTER CARD — glassy container with glowing top accent
---------------------------------------------------------------- */
.cred-detail-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid rgba(0,242,255,0.18);
  border-radius: 26px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.cred-detail-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #00f2ff, #a855f7, #ff2d55, #00ff88);
}

.cred-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: start;
}

/* ----------------------------------------------------------------
   CERTIFICATE IMAGE — fixed-size viewer box
---------------------------------------------------------------- */
.cred-detail-image {
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(0,242,255,0.25);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 420px;
  box-shadow: 0 10px 40px rgba(0,242,255,0.08);
}

.cred-detail-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.cred-no-image {
  font-size: 4.5rem;
}

/* ----------------------------------------------------------------
   INFO SIDE
---------------------------------------------------------------- */
.cred-detail-info h1 {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.3;
  text-shadow: 0 0 30px rgba(0,242,255,0.25);
}

/* issuer row — institute logo (prominent) + "Issued by" label + name */
.cred-detail-issuer-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
}

.cred-detail-institute-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
  padding: 5px;
  box-sizing: border-box;
  box-shadow: 0 3px 12px rgba(0,0,0,0.4);
  flex-shrink: 0;
}

.cred-detail-issuer-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cred-detail-issuer-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.4);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cred-detail-issuer-name {
  font-size: 1.05rem;
  color: #00f2ff;
  font-weight: 700;
}

/* description — quote-style highlighted box */
.cred-detail-desc-box {
  background: rgba(255,255,255,0.025);
  border-left: 3px solid #a855f7;
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin-bottom: 26px;
}

.cred-detail-desc {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.8;
  font-style: italic;
}

/* stats — Credential ID / Issued, as clean side-by-side cards */
.cred-detail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 30px;
}

.cred-detail-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cred-detail-stat-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.cred-detail-stat-value {
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
}

/* verify button — bold, glowing, gradient */
.cred-detail-verify {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, rgba(0,242,255,0.15), rgba(168,85,247,0.15));
  color: #00f2ff;
  border: 1.5px solid rgba(0,242,255,0.5);
  padding: 14px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.8px;
  transition: all 0.3s ease;
}
.cred-detail-verify .arrow {
  transition: transform 0.3s ease;
}
.cred-detail-verify:hover {
  background: linear-gradient(90deg, #00f2ff, #a855f7);
  color: #000;
  box-shadow: 0 0 40px rgba(0,242,255,0.5);
  border-color: transparent;
}
.cred-detail-verify:hover .arrow {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .cred-detail-section { padding: 120px 5% 60px; }
  .cred-detail-card { padding: 22px; border-radius: 20px; }
  .cred-detail-grid { grid-template-columns: 1fr; gap: 30px; }
  .cred-detail-image { height: 280px; }
  .cred-detail-info h1 { font-size: 1.5rem; }
  .cred-detail-stats { grid-template-columns: 1fr 1fr; }
  .cred-detail-institute-logo { width: 44px; height: 44px; }
}