/* ========================================================================
   DNS Record Type Page Styles
   File: record-types.css
   Purpose: Styles for /dns-record-types/* pages
   ======================================================================== */

/* ------------------------------------------------------------------------
   Record Content Container
   ------------------------------------------------------------------------ */
.record-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* ------------------------------------------------------------------------
   Breadcrumb Navigation
   ------------------------------------------------------------------------ */
.record-content .breadcrumb {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 24px;
}

.record-content .breadcrumb a {
  color: #60a5fa;
  text-decoration: none;
}

.record-content .breadcrumb a:hover {
  text-decoration: underline;
}

body.light-mode .record-content .breadcrumb {
  color: #6b7280;
}

body.light-mode .record-content .breadcrumb a {
  color: #2563eb;
}

/* ------------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------------ */
.record-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
}

.record-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
  color: #ffffff;
  border-bottom: 2px solid #333;
  padding-bottom: 8px;
}

.record-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #e5e7eb;
}

.record-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #d1d5db;
  margin-bottom: 16px;
}

.record-content ul,
.record-content ol {
  margin: 16px 0;
  padding-left: 24px;
  color: #d1d5db;
}

.record-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.record-content a {
  color: #60a5fa;
  text-decoration: none;
}

.record-content a:hover {
  text-decoration: underline;
}

body.light-mode .record-content h1,
body.light-mode .record-content h2 {
  color: #111827;
}

body.light-mode .record-content h3 {
  color: #374151;
}

body.light-mode .record-content p,
body.light-mode .record-content li {
  color: #4b5563;
}

body.light-mode .record-content h2 {
  border-bottom-color: #e5e7eb;
}

body.light-mode .record-content a {
  color: #2563eb;
}

/* ------------------------------------------------------------------------
   Record Badge
   ------------------------------------------------------------------------ */
.record-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  margin-left: 12px;
  vertical-align: middle;
}

.badge-common {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.badge-email {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
}

.badge-dnssec {
  background: rgba(99, 102, 241, 0.15);
  color: #6366f1;
}

.badge-security {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.badge-service {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

.badge-experimental {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
}

/* ------------------------------------------------------------------------
   TL;DR Quick Summary Box
   ------------------------------------------------------------------------ */
.record-content .tldr {
  max-width: 100%;
  margin: 24px 0;
  padding: 16px 20px;
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
}

.record-content .tldr h2 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #3b82f6;
  border-bottom: none;
  padding-bottom: 0;
}

.record-content .tldr p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #e5e7eb;
}

body.light-mode .record-content .tldr {
  background: rgba(59, 130, 246, 0.08);
}

body.light-mode .record-content .tldr p {
  color: #374151;
}

/* ------------------------------------------------------------------------
   Lookup CTA Box
   ------------------------------------------------------------------------ */
.record-content .lookup-cta {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  padding: 24px 32px;
  border-radius: 12px;
  text-align: center;
  margin: 32px auto;
  max-width: 500px;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.record-content .lookup-cta h3 {
  color: #ffffff;
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 600;
  border-bottom: none;
  padding-bottom: 0;
}

.record-content .lookup-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 16px;
  font-size: 15px;
}

.record-content .lookup-cta a {
  display: inline-block;
  background: #ffffff;
  color: #1e40af;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.record-content .lookup-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

body.light-mode .record-content .lookup-cta a {
  background: #1e40af;
  color: #ffffff;
}

/* ------------------------------------------------------------------------
   Example Box
   ------------------------------------------------------------------------ */
.record-content .example-box {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.record-content .example-box h4 {
  color: #26c4ff;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.light-mode .record-content .example-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

body.light-mode .record-content .example-box h4 {
  color: #0054ff;
}

/* ------------------------------------------------------------------------
   Code Blocks
   ------------------------------------------------------------------------ */
.record-content code {
  background: #2d2d2d;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  color: #f59e0b;
  border: 1px solid #404040;
}

.record-content pre {
  background: #1a1a1a;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 12px 0;
  border: 1px solid #333;
}

.record-content pre code {
  background: none;
  padding: 0;
  border: none;
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.5;
}

body.light-mode .record-content code {
  background: #f3f4f6;
  color: #dc2626;
  border: 1px solid #e5e7eb;
}

body.light-mode .record-content pre {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

body.light-mode .record-content pre code {
  color: #374151;
}

/* ------------------------------------------------------------------------
   Tables
   ------------------------------------------------------------------------ */
.record-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
}

.record-content th {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: #0054FF;
}

.record-content td {
  padding: 12px 16px;
  color: #d1d5db;
  border-bottom: 1px solid #333;
  font-size: 14px;
}

.record-content tr:last-child td {
  border-bottom: none;
}

.record-content tr:hover td {
  background: rgba(255, 255, 255, 0.05);
}

body.light-mode .record-content table {
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

body.light-mode .record-content td {
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}

body.light-mode .record-content tr:hover td {
  background: rgba(0, 0, 0, 0.02);
}

/* ------------------------------------------------------------------------
   Policy Boxes
   ------------------------------------------------------------------------ */
.policy-box {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  font-weight: 600;
  margin-right: 8px;
}

.policy-none {
  background: rgba(156, 163, 175, 0.2);
  color: #9ca3af;
}

.policy-quarantine {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.policy-reject {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* ------------------------------------------------------------------------
   Related Records Section
   ------------------------------------------------------------------------ */
.record-content .related-records {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid #333;
}

.record-content .related-records ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.record-content .related-records li {
  margin: 0;
}

.record-content .related-records a {
  display: block;
  padding: 12px 16px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  color: #60a5fa;
  transition: all 0.2s ease;
}

.record-content .related-records a:hover {
  background: #252525;
  border-color: #3b82f6;
  transform: translateX(4px);
  text-decoration: none;
}

body.light-mode .record-content .related-records {
  border-top-color: #e5e7eb;
}

body.light-mode .record-content .related-records a {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #2563eb;
}

body.light-mode .record-content .related-records a:hover {
  background: #f3f4f6;
  border-color: #2563eb;
}

/* ------------------------------------------------------------------------
   Deprecated Notice
   ------------------------------------------------------------------------ */
.deprecated-notice {
  background: rgba(251, 146, 60, 0.1);
  border: 1px solid rgba(251, 146, 60, 0.3);
  border-left: 4px solid #fb923c;
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
}

.deprecated-notice h4 {
  color: #fb923c;
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.deprecated-notice p {
  margin: 0;
  color: #d1d5db;
  font-size: 14px;
}

body.light-mode .deprecated-notice p {
  color: #4b5563;
}

/* ------------------------------------------------------------------------
   Funnel CTA Block (DNS Explorer Trial)
   ------------------------------------------------------------------------ */
.funnel-cta {
  background: linear-gradient(135deg, #1a365d 0%, #0a0f1a 100%);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 36px auto;
  text-align: center;
  max-width: 650px;
}

.funnel-cta img {
  width: 96px;
  height: 96px;
  margin-bottom: 16px;
}

.funnel-cta h3 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px 0;
  padding: 0;
  border-bottom: none;
}

.funnel-cta p {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 18px 0;
}

.funnel-cta .btn-cta {
  display: inline-block;
  background: #ffffff;
  color: #1e40af !important;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.funnel-cta .btn-cta:hover {
  background: #f0f4ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.funnel-cta .trial-note {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  margin: 12px 0 0 0;
  text-align: center;
  display: block;
  width: 100%;
}

body.light-mode .funnel-cta {
  background: linear-gradient(135deg, #1a365d 0%, #0a0f1a 100%);
}

body.light-mode .funnel-cta h3,
body.light-mode .funnel-cta p {
  color: #ffffff;
}

body.light-mode .funnel-cta .trial-note {
  color: rgba(255, 255, 255, 0.8);
}

/* ------------------------------------------------------------------------
   Warning Box
   ------------------------------------------------------------------------ */
.warning-box {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-left: 4px solid #fbbf24;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
}

.warning-box h4 {
  color: #fbbf24;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.warning-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* ------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------ */
@media (max-width: 768px) {
  .record-content {
    padding: 16px;
  }

  .record-content h1 {
    font-size: 1.5rem;
  }

  .record-badge {
    display: block;
    margin: 8px 0 0 0;
    width: fit-content;
  }

  .record-content .lookup-cta {
    padding: 20px;
    max-width: 100%;
  }

  .record-content .related-records ul {
    grid-template-columns: 1fr;
  }

  .record-content table {
    font-size: 13px;
  }

  .record-content th,
  .record-content td {
    padding: 10px 12px;
  }
}
