/* Simple Attribute Forge Ultimate - Documentation Styles */
/* Primary Color: Purple #8b5cf6 */
/* Secondary Color: Gold #f59e0b */

* {
  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: #48256a;
  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: #a78bfa;
}

/* 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;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a78bfa 100%);
  color: white;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 30px;
}

.hero h1 {
  border-bottom: none;
  color: white;
  font-size: 2.5em;
  margin-bottom: 10px;
}

.hero .tagline {
  font-size: 1.3em;
  opacity: 0.95;
}

/* 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 #8b5cf6;
  padding-bottom: 10px;
  margin-top: 0;
}

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

h4 {
  color: #7c3aed;
  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 #8b5cf6;
}

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

.feature-card.gold {
  border-left-color: #f59e0b;
}

.feature-card.gold h4 {
  color: #d97706;
}

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

.step-number {
  background: #8b5cf6;
  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: #1e1b4b;
  color: #e0e7ff;
  padding: 20px;
  border-radius: 8px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  overflow-x: auto;
  margin: 15px 0;
  border-left: 4px solid #8b5cf6;
  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 #8b5cf6;
  white-space: pre;
}

/* Alert Boxes */
.warning {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  border-left: 4px solid #f59e0b;
}

.success {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  border-left: 4px solid #10b981;
}

.info {
  background: #ede9fe;
  border: 1px solid #c4b5fd;
  color: #5b21b6;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  border-left: 4px solid #8b5cf6;
}

.danger {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  border-left: 4px solid #ef4444;
}

/* Modifier Examples */
.modifier-container {
  background: #f8f9fa;
  border: 2px solid #8b5cf6;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.modifier-header {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
  color: white;
  padding: 10px 15px;
  margin: -20px -20px 15px -20px;
  border-radius: 6px 6px 0 0;
  font-weight: bold;
}

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

.condition-step {
  background: #ede9fe;
  border-left: 4px solid #8b5cf6;
  padding: 10px 15px;
  margin: 8px 0;
}

/* Pipeline Visualization */
.pipeline-step {
  background: linear-gradient(90deg, #7c3aed 0%, #8b5cf6 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: #8b5cf6;
  margin: 5px 0;
}

/* Tier Badge */
.tier-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.tier-badge.ultimate {
  background: linear-gradient(135deg, #7c3aed 0%, #f59e0b 100%);
  color: white;
}

.tier-badge.pro {
  background: #33785d;
  color: white;
}

.tier-badge.base {
  background: #3498db;
  color: white;
}

/* 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: #8b5cf6;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}

.page-nav a:hover {
  background: #7c3aed;
}

/* Version Switcher */
.version-switcher {
  background: #48256a;
  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: #a78bfa;
  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: #8b5cf6;
}

.version-link.current {
  background: #7c3aed;
  color: #ecf0f1;
  cursor: default;
}

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

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

.version-link.pro {
  background: #33785d;
}

.version-link.pro:hover {
  background: #2a6049;
}

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

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

th {
  background: #8b5cf6;
  color: white;
}

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

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

li {
  margin: 8px 0;
}

/* Comparison Table */
.comparison-table {
  margin: 20px 0;
}

.comparison-table th {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

.comparison-table .included {
  color: #10b981;
  font-weight: bold;
}

.comparison-table .not-included {
  color: #9ca3af;
}

/* 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;
  }

  .hero h1 {
    font-size: 1.8em;
  }
}

/* Syntax Highlighting for Code */
.keyword { color: #c4b5fd; }
.string { color: #fbbf24; }
.comment { color: #9ca3af; }
.number { color: #34d399; }
.class { color: #a78bfa; }
.function { color: #fcd34d; }
