/* Simple Attribute Forge - Influence System Documentation Styles */
/* Primary Color: Emerald Green #33785d */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: #f8f9fa;
}

/* Navigation */
.navbar {
  background: #33785d;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  flex: 1;
}

.navbar-logo {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  height: 80px;
  width: 80px;
  object-fit: contain;
  z-index: 1;
}

.navbar a {
  color: #ecf0f1;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.3s;
  white-space: nowrap;
  font-size: 14px;
}

.navbar a:hover,
.navbar a.active {
  background: #52c498;
}

/* Header */
.header {
  border-radius: 10px;
  margin-bottom: 30px;
}

.header img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.header h1 {
  margin: 0;
  font-size: 2.5em;
}

.header p {
  margin: 10px 0 0 0;
  font-size: 1.2em;
  opacity: 0.9;
}

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

/* Headings */
h1, h2 {
  color: #2c3e50;
  border-bottom: 3px solid #33785d;
  padding-bottom: 10px;
  margin-top: 0;
}

h3 {
  color: #34495e;
  margin-top: 25px;
  border-bottom: 1px solid #ecf0f1;
  padding-bottom: 5px;
}

h4 {
  color: #33785d;
  margin-top: 20px;
}

/* Feature Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.feature-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #33785d;
}

.feature-card h4 {
  margin-top: 0;
  color: #2c3e50;
}

/* Step Containers */
.step-container {
  background: #ecf0f1;
  padding: 20px;
  border-radius: 8px;
  margin: 15px 0;
  border-left: 4px solid #33785d;
}

.step-number {
  background: #33785d;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 15px;
}

/* Code Blocks */
.code-block {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 20px;
  border-radius: 8px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  overflow-x: auto;
  margin: 15px 0;
  border-left: 4px solid #33785d;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* File Tree */
.file-tree {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 20px;
  border-radius: 8px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.4;
  overflow-x: auto;
  margin: 15px 0;
  border-left: 4px solid #33785d;
  white-space: pre;
}

/* Alert Boxes */
.warning {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  border-left: 4px solid #f39c12;
}

.success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  border-left: 4px solid #27ae60;
}

.info {
  background: #e8f6f0;
  border: 1px solid #52c498;
  color: #155724;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  border-left: 4px solid #33785d;
}

/* Formula Examples */
.formula-container {
  background: #f8f9fa;
  border: 2px solid #33785d;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.formula-header {
  background: #33785d;
  color: white;
  padding: 10px 15px;
  margin: -20px -20px 15px -20px;
  border-radius: 6px 6px 0 0;
  font-weight: bold;
}

.formula-breakdown {
  background: #ecf0f1;
  padding: 15px;
  border-radius: 6px;
  margin: 10px 0;
  font-family: 'Consolas', Monaco, monospace;
}

.calculation-step {
  background: #e8f6f0;
  border-left: 4px solid #33785d;
  padding: 10px 15px;
  margin: 8px 0;
}

/* Pipeline Visualization */
.pipeline-step {
  background: linear-gradient(90deg, #33785d 0%, #52c498 100%);
  color: white;
  padding: 15px;
  margin: 10px 0;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
}

.pipeline-arrow {
  text-align: center;
  font-size: 24px;
  color: #33785d;
  margin: 5px 0;
}

/* Breadcrumb */
.breadcrumb {
  background: #e9ecef;
  padding: 10px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
}

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

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

/* Page Navigation */
.page-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #dee2e6;
}

.page-nav a {
  background: #33785d;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}

.page-nav a:hover {
  background: #2a6049;
}

/* Version Switcher */
.version-switcher {
  background: #2a6249;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.version-switcher-label {
  color: #ecf0f1;
  font-weight: 500;
  font-size: 14px;
}

.version-link {
  background: #52c498;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
}

.version-link:hover {
  background: #45a085;
}

.version-link.current {
  background: #33785d;
  color: #ecf0f1;
  cursor: default;
}

.version-link.base {
  background: #3498db;
}

.version-link.base:hover {
  background: #2980b9;
}

.version-link.ultimate {
  background: #8b5cf6;
}

.version-link.ultimate:hover {
  background: #7c3aed;
}

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

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

th {
  background: #33785d;
  color: white;
}

tr:nth-child(even) {
  background: #f8f9fa;
}

/* Lists */
ul, ol {
  padding-left: 25px;
}

li {
  margin: 8px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  .navbar {
    padding: 10px;
  }
  
  .navbar ul {
    flex-direction: column;
    gap: 10px;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .header h1 {
    font-size: 2em;
  }
  
  .section {
    padding: 20px;
  }
}

/* Syntax Highlighting for Code */
.keyword { color: #569cd6; }
.string { color: #ce9178; }
.comment { color: #6a9955; }
.number { color: #b5cea8; }
.class { color: #4ec9b0; }
.function { color: #dcdcaa; }