/* -------------------------
   GLOBAL THEME - Remora Risk Engine
   Applied across all pages
-------------------------- */

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: #1a1c1f;
  color: #e8e8e8;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Dark sections */
section.dark {
  background: #1a1c1f;
  padding: 3rem 1.5rem;
  margin: 2rem auto;
  border-radius: 14px;
  max-width: 1100px;
  box-shadow: 0 0 40px rgba(0,0,0,0.25);
  border: 1px solid #2a2d31;
}

/* Light sections for contrast */
section.light {
  background: #ffffff;
  color: #333;
  padding: 3rem 1.5rem;
  margin: 2rem auto;
  border-radius: 14px;
  max-width: 1100px;
  box-shadow: 0 0 20px rgba(0,0,0,0.10);
  border: 1px solid #e4e4e4;
}

/* Heading styles */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-top: 0;
}

h1 {
  font-size: 2.4rem;
  color: #ffffff;
}

h2 {
  font-size: 1.9rem;
  color: #d8d8d8;
}

h3 {
  font-size: 1.4rem;
  color: #cfcfcf;
}

h4 {
  font-size: 1.1rem;
  color: #cfcfcf;
}

/* Accent text */
.accent {
  color: #8b6bff;
  font-weight: 600;
}

/* Divider */
.divider {
  height: 2px;
  background: linear-gradient(to right, #8b6bff, transparent);
  margin: 3rem auto;
  max-width: 1100px;
  opacity: 0.5;
}

.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(139, 107, 255, 0.3), transparent);
  margin: 3rem 0;
  max-width: 1100px;
}

/* -------------------------
   CARDS + info blocks
-------------------------- */

.card {
  background: #25272c;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #33363d;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  margin-bottom: 1.5rem;
}

.card h3, .card h4 {
  margin-top: 0;
  color: #fff;
}

/* Table styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

table th {
  background: #2b2e33;
  padding: 0.75rem;
  text-align: left;
  color: #fff;
  border-bottom: 1px solid #3b3e44;
}

table td {
  padding: 0.6rem;
  border-bottom: 1px solid #33363d;
  color: #e8e8e8;
}

table tr:hover {
  background: rgba(255,255,255,0.05);
}

/* -------------------------
   Buttons
-------------------------- */

.btn-purple {
  background: #8b6bff;
  border: none;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.2s ease-in-out;
  color: white;
  text-decoration: none;
  display: inline-block;
}

.btn-purple:hover {
  background: #6c50d9;
  color: white;
}

.btn-blue {
  background: #667eea;
  border: none;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.2s ease-in-out;
  color: white;
  text-decoration: none;
  display: inline-block;
}

.btn-blue:hover {
  background: #5568d3;
  color: white;
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #e8e8e8;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.2s ease-in-out;
  text-decoration: none;
  display: inline-block;
}

.btn.ghost:hover {
  background: rgba(139, 107, 255, 0.1);
  border-color: #8b6bff;
  color: #8b6bff;
}

/* -------------------------
   Content Layout
-------------------------- */

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.two-column {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.three-column {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

/* -------------------------
   Typography & Text
-------------------------- */

.small {
  font-size: 0.9rem;
  color: #9aa4b2;
}

code {
  background: rgba(139, 107, 255, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: #b8a5ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;
}

.code-block {
  background: #25272c;
  border: 1px solid #33363d;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;
  font-size: 0.9rem;
  color: #e8e8e8;
  white-space: pre-wrap;
}

ul, ol {
  color: #e8e8e8;
}

a {
  color: #8b6bff;
  text-decoration: none;
}

a:hover {
  color: #b8a5ff;
  text-decoration: underline;
}

/* -------------------------
   Responsive
-------------------------- */

@media (max-width: 900px) {
  .two-column, .three-column {
    grid-template-columns: 1fr;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
}

