/* Agent Zero Whitepaper PDF-style Document */

:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --text-color: #333;
  --background-color: #f9f9f9;
  --paper-color: #fff;
  --border-color: #ddd;
  --link-color: #2980b9;
  --heading-font: "Georgia", serif;
  --body-font: "Times New Roman", Times, serif;
  --code-font: "Courier New", monospace;
  --a4-width: 210mm; /* A4 width */
  --text-secondary: #666;
  --bg-secondary: #f0f0f0;
}

body.light-theme {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--body-font);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

main {
  background-color: var(--paper-color);
  width: var(--a4-width);
  margin: 0;
  padding: 2cm 1.5cm;
  position: relative;
  border-right: 1px solid var(--border-color);
  min-height: 100vh;
}

/* Removed page header and footer */

h2 {
  font-family: var(--heading-font);
  color: var(--primary-color);
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

h2.section-title {
  font-family: var(--heading-font);
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--primary-color);
  padding-bottom: 0.3rem;
  page-break-before: auto;
  page-break-after: avoid;
  width: 100%;
}

h3 {
  font-family: var(--heading-font);
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-family: var(--heading-font);
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
}

h5 {
  font-family: var(--heading-font);
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: normal;
}

.section-subtitle {
  text-align: center;
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

p {
  margin-bottom: 1rem;
  text-align: justify;
}

.content-grid {
  display: block;
}

.feature-card {
  margin-bottom: 2rem;
  padding: 0.5rem 0;
  background-color: var(--paper-color);
  page-break-inside: avoid;
}

.feature-card h3 {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.icon {
  font-size: 1.2rem;
  vertical-align: middle;
  margin-right: 0.5rem;
  color: var(--secondary-color);
}

.link-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.link-icon.square {
  border-radius: 2px;
}

a {
  color: var(--link-color);
  text-decoration: none;
  text-align: left;
  display: inline;
}

a:hover {
  text-decoration: underline;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: bold;
}

ul,
ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
  text-align: left;
}

/* URL display after links */
a[data-url]::after {
  content: " [" attr(data-url) "]";
  font-size: 0.9em;
  color: #666;
  font-style: italic;
  white-space: nowrap;
  display: inline;
}

/* Token styling */
.A0T {
  font-family: "Lucida Console", Monaco, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-variant-numeric: slashed-zero;
  font-weight: bold;
  /* color: var(--secondary-color); */
}

/* Section styling */
.section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

/* Token specifications section */
.subsection .label-value {
  margin: 0.75rem 0;
}

.subsection .label-value .label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.subsection .label-value .value {
  margin-left: 1rem;
  font-family: "Courier New", monospace;
  padding: 0.5rem;
  background-color: var(--bg-secondary);
  border-radius: 4px;
  font-size: 0.95rem;
}

.subsection .label-value .value.wallet-address {
  word-break: break-all;
  font-size: 0.85rem;
}

/* Cover page styling */
.cover-page {
  height: calc(100vh - 4cm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 2cm;
}

.cover-content {
  max-width: 80%;
}

.cover-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 2rem;
}

.cover-title {
  font-family: var(--heading-font);
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.cover-subtitle {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  font-weight: normal;
}

.cover-tagline {
  font-family: var(--body-font);
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 3rem;
  color: var(--primary-color);
  line-height: 1.8;
}

.cover-date {
  font-family: var(--body-font);
  font-size: 1rem;
  color: var(--text-color);
  margin-top: 3rem;
}

/* Page breaks */
.page-break {
  display: none;
  margin: 0;
  padding: 0;
}

@media print {
  .page-break {
    display: block;
    page-break-before: always;
    break-before: page;
  }
}

/* Distribution subsection styling */
.distribution-details {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-left: 2px solid var(--secondary-color);
  background-color: rgba(245, 245, 245, 0.5);
}

.distribution-details h3 {
  font-size: 1.4rem;
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 1rem;
}

.distribution-details h4 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.distribution-details h5 {
  font-size: 1.1rem;
  font-weight: normal;
  color: var(--secondary-color);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.distribution-details ul {
  margin-left: 1rem;
}

.modal-note {
  background-color: rgba(230, 230, 230, 0.7);
  padding: 0.8rem;
  margin: 1rem 0;
  border-radius: 4px;
}

.table-container {
  overflow-x: auto;
  margin: 1rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: rgba(230, 230, 230, 0.5);
  font-weight: bold;
}

/* Community section */
.feature-card .lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.feature-card h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
}

.feature-card p {
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: justify;
}

.feature-card .modal-note {
  background-color: var(--bg-secondary);
  border-radius: 6px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.feature-card .modal-note p {
  margin-bottom: 0;
}

/* Contact links */
.contact-links {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.contact-links li {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.contact-links a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
  margin-right: 0.5rem;
}

.contact-links a:hover {
  text-decoration: underline;
}

/* Print-specific styles */
@media print {
  body {
    background-color: white;
  }

  main {
    width: 100%;
    margin: 0;
    padding: 2cm 1.5cm;
    border: none;
  }

  @page {
    size: A4;
    margin: 0;
  }
}
