/* public/assets/css/zero-day/dashboard/certificate.css */

.cert-preview-box {
  width: 100%;
  max-width: 800px;
  padding: 20px;
  background: repeating-linear-gradient(
    45deg,
    rgba(6, 6, 22, 0.5),
    rgba(6, 6, 22, 0.5) 10px,
    rgba(0, 0, 0, 0.2) 10px,
    rgba(0, 0, 0, 0.2) 20px
  );
  border: 1px dashed var(--grid-line-color);
  display: flex;
  justify-content: center;
  align-items: center;
}

.cert-frame {
  width: 100%;
  aspect-ratio: 1.414; /* A4 Landscape ratio */
  background: #fdfdfd;
  position: relative;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 8px solid #0f172a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cert-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 8rem;
  font-family: var(--font-header);
  font-weight: 800;
  color: rgba(15, 23, 42, 0.03);
  pointer-events: none;
  white-space: nowrap;
}

.cert-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #0f172a;
  text-align: center;
  border: 2px solid rgba(15, 23, 42, 0.1);
  padding: 40px;
}

.cert-logo {
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
}

.cert-title {
  font-family: var(--font-header);
  font-size: 2.5rem;
  letter-spacing: 2px;
  color: #0f172a;
  margin-bottom: 8px;
}

.cert-subtitle {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 4px;
  color: var(--accent-cyan);
  font-weight: bold;
}

.cert-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cert-body p {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.cert-name {
  font-family: var(--font-header);
  font-size: 3.5rem;
  color: #0f172a;
  margin-bottom: 24px;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 8px;
  min-width: 60%;
}

.cert-cluster {
  font-family: var(--font-header);
  font-size: 1.5rem;
  color: var(--accent-cyan);
  background: rgba(15, 23, 42, 0.05);
  padding: 8px 24px;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.cert-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.signature {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.sign-line {
  width: 150px;
  height: 2px;
  background: #0f172a;
  margin-bottom: 8px;
}

.cert-stamp {
  width: 80px;
  height: 80px;
  border: 3px solid var(--accent-emerald);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotate(-15deg);
}

.stamp-text {
  font-family: var(--font-mono);
  color: var(--accent-emerald);
  font-weight: bold;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .cert-frame {
    padding: 20px;
  }
  .cert-content {
    padding: 20px;
  }
  .cert-title { font-size: 1.5rem; }
  .cert-name { font-size: 2rem; }
  .cert-cluster { font-size: 1rem; }
}
