/* Meta Preview - Complete Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f3f4f6;
  color: #111827;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  padding: 40px 0;
  line-height: 1.6;
}

.ad-banner-top {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 15px;
  text-align: center;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

#ad-top-banner {
  width: 728px;
  height: 90px;
}

.ad-placeholder {
  background: #f9fafb;
  border: 2px dashed #d1d5db;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 999px;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  flex: 1;
}

.nav {
  margin-bottom: 24px;
  margin-top: 28px;
}

.nav a {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.nav a:hover {
  color: #111827;
}

.header {
  text-align: center;
  margin: 28px 0 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e5f2ff;
  color: #1d4ed8;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.logo-wordmark {
  font-weight: 700;
  letter-spacing: -0.06em;
}

.header h1 {
  margin-top: 10px;
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.header p {
  margin-top: 8px;
  color: #4b5563;
  font-size: 0.98rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.subtitle {
  margin-top: 8px;
  color: #4b5563;
  font-size: 0.98rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .tool-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.panel {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 18px 18px 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.panel h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.panel p {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 12px;
}

.field-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 6px;
}

.url-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.url-input-row input[type="url"] {
  flex: 1;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  outline: none;
  background: #f9fafb;
}

.url-input-row input[type="url"]:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.primary-button {
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #f9fafb;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.primary-button:hover {
  background: #1f2937;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}

.primary-button:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.status-text {
  margin-top: 10px;
  font-size: 0.82rem;
  color: #6b7280;
}

.status-text.error {
  color: #b91c1c;
}

.status-text.ok {
  color: #059669;
}

.helper-text {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #6b7280;
}

.helper-text code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.preview-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.preview-header-row h2 {
  margin: 0;
}

.preview-header-row span {
  font-size: 0.8rem;
  color: #6b7280;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.preview-card {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 160px;
}

.preview-image {
  background: #e5e7eb;
  height: 140px;
  overflow: hidden;
}

.preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-body {
  padding: 10px 12px 11px;
}

.preview-domain {
  font-size: 0.78rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.preview-title {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 4px;
  line-height: 1.3;
  color: #111827;
}

.preview-desc {
  font-size: 0.8rem;
  color: #4b5563;
  line-height: 1.4;
}

.preview-card-label {
  margin-top: 8px;
  font-size: 0.7rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.meta-inspector {
  margin-top: 16px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.meta-inspector h3 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.meta-table tr {
  border-bottom: 1px solid #e5e7eb;
}

.meta-table tr:last-child {
  border-bottom: none;
}

.meta-table td {
  padding: 8px 0;
}

.meta-table td:first-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  color: #6b7280;
  width: 160px;
  vertical-align: top;
}

.meta-table td:last-child {
  color: #111827;
  word-break: break-all;
}

.meta-table td.empty {
  color: #9ca3af;
  font-style: italic;
}

.ad-banner-bottom {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 20px;
  text-align: center;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
}

.footer {
  margin-top: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
}