/* SDA Token - Main Stylesheet */

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #1a4d2e;
}

h2 {
  font-size: 2em;
  margin: 30px 0 15px;
  color: #2e5c3e;
}

h3 {
  font-size: 1.5em;
  margin: 20px 0 10px;
  color: #3a6b4a;
}

h4 {
  font-size: 1.2em;
  margin: 15px 0 8px;
  color: #4a7b5a;
}

p {
  margin-bottom: 15px;
}

.lead {
  font-size: 1.2em;
  color: #2e5c3e;
  margin-bottom: 20px;
}

/* Header & Navigation */
header {
  background: #1a4d2e;
  color: white;
  padding: 20px 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a {
  color: white;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-primary {
  background: #4caf50;
  color: white;
}

.btn-primary:hover {
  background: #45a049;
}

/* Main Content */
main {
  padding: 40px 0;
}

/* Grid System */
.grid {
  display: grid;
  gap: 30px;
  margin: 30px 0;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cards */
.card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card h3 {
  color: #2e5c3e;
  margin-bottom: 15px;
}

/* Highlight Boxes */
.highlight-box {
  background: #f0f8f4;
  padding: 20px;
  border-left: 4px solid #4caf50;
  margin: 20px 0;
}

/* FAQ Specific */
.faq-item {
  background: white;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  background: #f0f8f4;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 20px;
}

.category-section {
  margin: 40px 0;
}

.category-title {
  background: #2e5c3e;
  color: white;
  padding: 15px 20px;
  border-radius: 8px 8px 0 0;
}

/* Quick Navigation */
.quick-nav {
  background: linear-gradient(135deg, #f0f8f4 0%, #e8f5e8 100%);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 35px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.quick-nav h2 {
  color: #1a4d2e;
  margin-bottom: 20px;
  font-size: 1.4em;
}

.quick-nav ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.quick-nav li {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.quick-nav li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quick-nav a {
  color: #2e5c3e;
  text-decoration: none;
  display: block;
  padding: 15px 20px;
  font-weight: 500;
  border-radius: 8px;
}

.quick-nav a:hover {
  color: #1a4d2e;
  background: #f8fbf8;
}

/* Comparison Tables */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
}

.comparison-table th {
  background: #2e5c3e;
  color: white;
  padding: 15px;
  font-weight: bold;
}

.comparison-table td {
  padding: 15px;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
}

.comparison-table tr:nth-child(even) {
  background: #f9f9f9;
}

/* Project Sections */
.project-section {
  background: white;
  padding: 30px;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sda-token {
  border-left: 4px solid #4caf50;
}

.sdchain {
  border-left: 4px solid #2196f3;
}

/* Warning & Info Boxes */
.warning-box {
  background: #fff8e1;
  border-left: 4px solid #ff9800;
  padding: 20px;
  margin: 20px 0;
}

.disclaimer {
  background: #fffbf0;
  border: 1px solid #ffc107;
  padding: 15px;
  margin: 20px 0;
  border-radius: 5px;
}

/* Legal Specific */
.disclaimer-header {
  background: #fff3cd;
  border: 1px solid #ffc107;
  padding: 20px;
  margin: 20px 0;
  border-radius: 5px;
}

.risk-section {
  background: #f8d7da;
  border: 1px solid #dc3545;
  padding: 20px;
  margin: 20px 0;
  border-radius: 5px;
}

.legal-section {
  background: #d4edda;
  border: 1px solid #28a745;
  padding: 20px;
  margin: 20px 0;
  border-radius: 5px;
}

.important-notice {
  background: #e2e3e5;
  border-left: 4px solid #6c757d;
  padding: 20px;
  margin: 20px 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background: #f0f8f4;
  font-weight: bold;
}

.tokenomics-table th {
  background: #2e5c3e;
  color: white;
}

.tokenomics-table tr:nth-child(even) {
  background: #f9f9f9;
}

/* Whitepaper Specific */
.download-section {
  background: #e8f5e8;
  padding: 30px;
  border-radius: 8px;
  margin: 30px 0;
  text-align: center;
}

.toc {
  background: #f0f8f4;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.toc ul {
  list-style: none;
  margin-left: 20px;
}

.toc a {
  color: #2e5c3e;
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.phase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.phase-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #4caf50;
}

.technical-box {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 20px;
  border-radius: 5px;
  margin: 20px 0;
}

/* Images */
figure {
  margin: 30px 0;
  text-align: center;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

figcaption {
  font-style: italic;
  color: #666;
  margin-top: 10px;
}

/* Footer */
footer {
  background: #1a4d2e;
  color: white;
  padding: 40px 0;
  margin-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

footer a {
  color: #90ee90;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer ul {
  list-style: none;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #3a6b4a;
}

.disclaimer-note {
  margin-top: 10px;
  font-size: 0.9em;
}

/* Breadcrumbs */
.breadcrumb {
  background: #f0f8f4;
  padding: 10px 0;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: #2e5c3e;
  text-decoration: none;
}

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

/* 404 Page */
.error-page {
  text-align: center;
  padding: 60px 0;
}

.helpful-links {
  margin-top: 40px;
  text-align: left;
}

.helpful-links h2 {
  text-align: center;
  margin-bottom: 30px;
}

/* Legal Page Specific */
.last-updated {
  text-align: right;
  font-style: italic;
  color: #666;
  margin-bottom: 20px;
}

.content {
  padding: 0 40px;
}

/* Lists */
ul,
ol {
  margin-left: 30px;
  margin-bottom: 15px;
}

li {
  margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  nav {
    flex-direction: column;
    gap: 20px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.6em;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    font-size: 0.9em;
  }

  .quick-nav ul {
    grid-template-columns: 1fr;
  }
}
