/* DnsEdit Documentation - Additional Styles */
/* Supplements styles.css with documentation-specific styling */

/* Documentation Hero */
.doc-hero {
  text-align: center;
  margin-bottom: 26px;
}

.doc-hero h1 {
  margin: 0 0 10px;
}

/* Documentation Section Navigation */
.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}

.doc-nav a {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  text-decoration: none;
  transition: all .2s ease;
}

.doc-nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,.08);
}

/* Definition Lists for Record Types */
dl {
  margin: 0;
}

dt {
  font-weight: 600;
  color: var(--text);
  margin-top: 12px;
}

dt:first-child {
  margin-top: 0;
}

dd {
  color: var(--muted);
  margin-left: 16px;
  font-size: 14px;
}

/* Lists in documentation */
.feat ul, .feat ol {
  margin: 12px 0 0 20px;
  color: var(--muted);
}

.feat li {
  margin-bottom: 6px;
}

.feat li strong {
  color: var(--text);
}

.feat li ul {
  margin-top: 6px;
}

.feat p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 12px;
}

.feat p:last-child {
  margin-bottom: 0;
}

/* Note Callout */
.note {
  background: rgba(74,163,255,.1);
  border: 1px solid rgba(74,163,255,.3);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}

/* Colored Record Type Tags */
.tag.blue {
  background: rgba(0,122,255,.25);
  border-color: rgba(0,122,255,.4);
  color: #5ac8fa;
}

.tag.purple {
  background: rgba(175,82,222,.25);
  border-color: rgba(175,82,222,.4);
  color: #bf5af2;
}

.tag.orange {
  background: rgba(255,149,0,.25);
  border-color: rgba(255,149,0,.4);
  color: #ff9f0a;
}

.tag.green {
  background: rgba(52,199,89,.25);
  border-color: rgba(52,199,89,.4);
  color: #30d158;
}

.tag.indigo {
  background: rgba(88,86,214,.25);
  border-color: rgba(88,86,214,.4);
  color: #5e5ce6;
}

.tag.red {
  background: rgba(255,59,48,.25);
  border-color: rgba(255,59,48,.4);
  color: #ff453a;
}

.tag.teal {
  background: rgba(90,200,250,.25);
  border-color: rgba(90,200,250,.4);
  color: #64d2ff;
}

.tag.cyan {
  background: rgba(50,173,230,.25);
  border-color: rgba(50,173,230,.4);
  color: #5ac8fa;
}

.tag.yellow {
  background: rgba(255,204,0,.25);
  border-color: rgba(255,204,0,.4);
  color: #ffd60a;
}

.tag.pink {
  background: rgba(255,45,85,.25);
  border-color: rgba(255,45,85,.4);
  color: #ff375f;
}

.tag.mint {
  background: rgba(0,199,190,.25);
  border-color: rgba(0,199,190,.4);
  color: #63e6e2;
}

.tag.dnssec {
  background: rgba(255,149,0,.25);
  border-color: rgba(255,149,0,.4);
  color: #ff9f0a;
}

/* Screenshots */
.screenshot {
  margin: 16px 0;
  text-align: center;
}

.screenshot img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}

.screenshot figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* Code blocks */
pre {
  background: rgba(0,0,0,.3);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  color: #eaf3ff;
  overflow-x: auto;
  margin: 12px 0;
  line-height: 1.5;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(0,0,0,.25);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent2);
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Record Type Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.85);
  z-index: 1000;
  overflow-y: auto;
  padding: 40px 20px;
}

.modal:target {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.modal-content {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  padding: 24px;
  position: relative;
  margin: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all .2s ease;
}

.modal-close:hover {
  background: rgba(255,255,255,.2);
  color: var(--text);
}

.modal h3 {
  margin: 0 0 8px;
  padding-right: 40px;
}

.modal .tag {
  margin-bottom: 16px;
  display: inline-block;
}

.modal p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 16px;
}

.modal .screenshot {
  margin: 16px 0;
}

.modal .screenshot img {
  max-height: 400px;
  width: auto;
}

.modal h4 {
  font-size: 14px;
  color: var(--text);
  margin: 16px 0 8px;
}

.modal ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}

.modal li {
  margin-bottom: 6px;
}

/* Provider Compatibility Table */
.compat-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.compat-table th,
.compat-table td {
  padding: 8px 12px;
  text-align: center;
  border-bottom: 1px solid var(--stroke);
}

.compat-table th {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.compat-table td:first-child,
.compat-table th:first-child {
  text-align: left;
}

.compat-table tbody tr:hover {
  background: rgba(255,255,255,.03);
}

.compat-table .yes {
  color: #30d158;
}

.compat-table .no {
  color: var(--muted);
  opacity: 0.4;
}

/* Provider availability note inside modals */
.provider-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
  align-items: center;
}

.provider-note span.label {
  font-size: 13px;
  color: var(--muted);
  margin-right: 2px;
}

.provider-note .provider-badge {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color: var(--muted);
}

.provider-note .provider-badge.supported {
  border-color: rgba(52,199,89,.3);
  background: rgba(52,199,89,.1);
  color: #30d158;
}

/* Clickable tags */
a.tag {
  cursor: pointer;
  text-decoration: none;
  transition: all .2s ease;
}

a.tag:hover {
  filter: brightness(1.2);
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .doc-nav {
    gap: 6px;
  }

  .doc-nav a {
    font-size: 12px;
    padding: 5px 10px;
  }

  .modal {
    padding: 20px 10px;
  }

  .modal-content {
    padding: 16px;
  }
}
