/* MODULE STYLES - Table Overflow & Responsive Design */

/* MODULE TABLE STYLES */
.module-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  background: var(--card);
}

.module-content th {
  background: var(--card2);
  color: var(--text);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border);
  font-size: 13px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.module-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--dim);
  line-height: 1.6;
}

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

/* RESPONSIVE TABLE WRAPPER */
.table-wrapper {
  overflow-x: auto;
  overflow-y: visible;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

.table-wrapper table {
  margin: 0;
  min-width: 600px;
}

/* SCROLL INDICATOR */
.table-wrapper::after {
  content: '→ Scroll for more';
  display: block;
  text-align: right;
  font-size: 11px;
  color: var(--dimmer);
  padding: 8px 12px;
  background: var(--card2);
  border-top: 1px solid var(--border);
  font-style: italic;
}

@media (min-width: 769px) {
  .table-wrapper::after {
    display: none;
  }
}

/* RESPONSIVE TABLE CARD LAYOUT */
@media (max-width: 600px) {
  .table-responsive {
    display: block;
  }
  
  .table-responsive thead {
    display: none;
  }
  
  .table-responsive tr {
    display: block;
    margin-bottom: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
  }
  
  .table-responsive td {
    display: block;
    text-align: left;
    padding: 8px 0;
    border: none;
  }
  
  .table-responsive td::before {
    content: attr(data-label) ': ';
    font-weight: 600;
    color: var(--text);
  }
}

/* MODULE CONTENT CONTAINER */
.module-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px;
}

.module-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.module-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin: 48px 0 24px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.module-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 16px;
  letter-spacing: -0.2px;
}

.module-content h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 12px;
}

.module-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--dim);
  margin-bottom: 20px;
}

.module-content ul,
.module-content ol {
  margin: 20px 0;
  padding-left: 32px;
}

.module-content li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--dim);
  margin-bottom: 12px;
}

.module-content strong {
  color: var(--text);
  font-weight: 600;
}

.module-content a {
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 134, 74, 0.3);
  transition: border-color 0.2s;
}

.module-content a:hover {
  border-bottom-color: var(--orange);
}

/* MODULE SECTION LABELS */
.module-section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--orange);
  margin-bottom: 16px;
  display: block;
}

/* CODE BLOCKS */
.module-content pre {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}

.module-content code {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

/* BLOCKQUOTES */
.module-content blockquote {
  border-left: 3px solid var(--orange);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(232, 134, 74, 0.08);
  border-radius: 6px;
}

.module-content blockquote p {
  margin: 0;
  font-style: italic;
  color: var(--text);
}
