/* Certificate Verification CSS */
:root {
  --cream: #faf8f4;
  --cream2: #f4f1eb;
  --cream3: #ede9e0;
  --white: #ffffff;
  --ink: #1a1a1a;
  --ink2: #2d2d2d;
  --ink3: #444444;
  --muted: #888888;
  --muted2: #aaaaaa;
  --border: #e5e0d8;
  --border2: #d4cdc1;
  --teal: #0d9e84;
  --teal-light: #e6f5f2;
  --teal2: #0b8a72;
  --gold: #c9860a;
  --gold-light: #fef3dc;
  --gold2: #b5760a;
  --accent-red: #e85d4a;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.06);
}

:root {
  --cream: #faf8f4;
  --cream2: #f4f1eb;
  --cream3: #ede9e0;
  --white: #ffffff;
  --ink: #1a1a1a;
  --ink2: #2d2d2d;
  --ink3: #444444;
  --muted: #888888;
  --muted2: #aaaaaa;
  --border: #e5e0d8;
  --border2: #d4cdc1;
  --teal: #0d9e84;
  --teal-light: #e6f5f2;
  --teal2: #0b8a72;
  --gold: #c9860a;
  --gold-light: #fef3dc;
  --gold2: #b5760a;
  --accent-red: #e85d4a;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: 0;
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Header */
.verify-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.verify-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.verify-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
}

.verify-logo-span {
  color: var(--teal);
}

.verify-nav {
  display: flex;
  gap: 1rem;
}

.verify-nav-link {
  color: var(--ink3);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.verify-nav-link:hover {
  background: var(--cream2);
  color: var(--ink);
}

/* Main Content */
.verify-content {
  padding: 2rem;
}

.verify-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
  text-align: center;
}

.verify-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  text-align: center;
}

/* Public Access Notice */
.public-access-notice {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  background-color: var(--teal-light);
  color: var(--teal);
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(13, 158, 132, 0.2);
}

.public-access-notice i {
  font-size: 1.1rem;
}

/* Verification Form */
.verify-form-container {
  max-width: 600px;
  margin: 2rem auto;
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.verify-form {
  display: flex;
  gap: 0.5rem;
}

.verify-input {
  flex: 1;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  transition: all 0.2s;
}

.verify-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-light);
}

.verify-btn {
  background: var(--teal);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.verify-btn:hover {
  background: var(--teal2);
}

/* Certificate Result */
.certificate-result {
  max-width: 800px;
  margin: 2rem auto;
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: none;
}

/* Certificate Image Container */
.certificate-image-container {
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--cream);
  border-radius: 8px;
  border: 1px dashed var(--border2);
  display: flex;
  justify-content: center;
  align-items: center;
}

.certificate-image {
  width: 100%;
  max-width: 700px;
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.certificate-img {
  width: 100%;
  height: auto;
  box-shadow: var(--shadow-md);
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.certificate-img:hover {
  transform: scale(1.02);
}

.result-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.result-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.result-icon.valid {
  background: var(--teal-light);
  color: var(--teal);
}

.result-icon.invalid {
  background: #fdeded;
  color: #ef4444;
}

.result-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.result-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
}

.result-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.detail-group {
  margin-bottom: 1rem;
}

.detail-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.detail-value {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
}

.certificate-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--teal);
  color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.download-btn:hover {
  background: var(--teal2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.download-btn:active {
  transform: translateY(0);
}

/* Certificate Preview */
.certificate-preview {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.preview-container {
  border: 1px dashed var(--border2);
  padding: 1rem;
  border-radius: 8px;
  background: var(--cream);
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.preview-container iframe {
  box-shadow: var(--shadow-md);
  border-radius: 4px;
}

.preview-container img {
  max-width: 100%;
  height: auto;
  box-shadow: var(--shadow-md);
  border-radius: 4px;
}

.loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--muted);
}

.loading-indicator:before {
  content: "";
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border: 2px solid var(--teal);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-message {
  color: var(--accent-red);
  padding: 1rem;
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--teal2);
}

.btn-secondary {
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--cream2);
}

.invalid-result {
  text-align: center;
  padding: 2rem;
}

.invalid-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 0.5rem;
}

.invalid-message {
  font-size: 1rem;
  color: var(--ink3);
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .verify-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .verify-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .result-details {
    grid-template-columns: 1fr;
  }

  .certificate-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .certificate-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }

  .verify-content {
    padding: 1.2rem;
  }

  .verify-header {
    padding: 1rem;
  }

  .verify-logo-text {
    font-size: 1.25rem;
  }

  .verify-form {
    flex-direction: column;
  }

  .verify-input,
  .verify-btn {
    width: 100%;
  }

  .verify-form-container {
    padding: 1.2rem;
  }

  .certificate-result {
    padding: 1.2rem;
    margin: 1.2rem auto;
  }

  .preview-container {
    min-height: 320px;
  }
}