Documentation/styles.css

/* 
 * Karai-Karai Wikipedia Documentation Styles
 *Documentation/styles.css
 */

/* === Base Styles === */
.kai-documentation {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* === Header Styles === */
.kai-doc-header {
  background: #8B4513;
  color: white;
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.kai-doc-title {
  font-size: 2.5rem;
  margin: 0;
  text-align: center;
  font-weight: bold;
}

.kai-doc-subtitle {
  font-size: 1.2rem;
  text-align: center;
  margin: 0.5rem 0 0 0;
  opacity: 0.9;
}

/* === Navigation Styles === */
.kai-doc-nav {
  background-color: #F5F5DC;
  border: 2px solid #8B4513;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 2rem;
}

.kai-doc-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.kai-doc-nav li {
  margin: 0;
}

.kai-doc-nav a {
  color: #8B4513;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid #8B4513;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: bold;
}

.kai-doc-nav a:hover {
  background-color: #8B4513;
  color: white;
}

/* === Section Styles === */
.kai-doc-section {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.kai-doc-section h2 {
  color: #8B4513;
  border-bottom: 2px solid #F5F5DC;
  padding-bottom: 0.5rem;
  margin-top: 0;
}

.kai-doc-section h3 {
  color: #A0522D;
  margin-top: 1.5rem;
}

/* === Template Grid === */
.kai-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.kai-template-card {
  background: #F9F9F9;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.kai-template-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.kai-template-card h4 {
  color: #8B4513;
  margin-top: 0;
  border-bottom: 1px solid #E0E0E0;
  padding-bottom: 0.5rem;
}

/* === Code and Syntax Highlighting === */
.kai-code-block {
  background-color: #2D2D2D;
  color: #F8F8F2;
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  margin: 1rem 0;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
}

.kai-code-inline {
  background-color: #F5F5DC;
  color: #8B4513;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
}

/* === Table Styles === */
.kai-doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: white;
}

.kai-doc-table th {
  background-color: #8B4513;
  color: white;
  padding: 0.75rem;
  text-align: left;
  font-weight: bold;
}

.kai-doc-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #E0E0E0;
}

.kai-doc-table tr:nth-child(even) {
  background-color: #F9F9F9;
}

.kai-doc-table tr:hover {
  background-color: #F5F5DC;
}

/* === Alert and Note Styles === */
.kai-alert {
  padding: 1rem;
  border-radius: 5px;
  margin: 1rem 0;
  border-left: 4px solid;
}

.kai-alert-info {
  background-color: #E3F2FD;
  border-left-color: #2196F3;
  color: #0D47A1;
}

.kai-alert-warning {
  background-color: #FFF3E0;
  border-left-color: #FF9800;
  color: #E65100;
}

.kai-alert-success {
  background-color: #E8F5E8;
  border-left-color: #4CAF50;
  color: #2E7D32;
}

.kai-alert-danger {
  background-color: #FFEBEE;
  border-left-color: #F44336;
  color: #C62828;
}

/* === Button Styles === */
.kai-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #8B4513;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
  margin: 0.25rem;
}

.kai-button:hover {
  background-color: #A0522D;
}

.kai-button-secondary {
  background-color: #F5F5DC;
  color: #8B4513;
  border: 1px solid #8B4513;
}

.kai-button-secondary:hover {
  background-color: #8B4513;
  color: white;
}

/* === Color Palette Display === */
.kai-color-palette {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.kai-color-swatch {
  width: 100px;
  height: 100px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

/* === Infobox Preview Styles === */
.kai-infobox-preview {
  border: 2px dashed #8B4513;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  background: #F9F9F9;
}

.kai-infobox-demo {
  float: right;
  margin: 0 0 1rem 1rem;
  max-width: 300px;
}

/* === Template Color Guide Styles === */
.kai-color-guide {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.kai-color-sample {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid #ccc;
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: middle;
}

/* === Responsive Design === */
@media (max-width: 768px) {
  .kai-documentation {
    padding: 1rem;
  }
  
  .kai-doc-title {
    font-size: 2rem;
  }
  
  .kai-doc-nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  .kai-template-grid {
    grid-template-columns: 1fr;
  }
  
  .kai-infobox-demo {
    float: none;
    margin: 1rem auto;
    display: block;
  }
}

@media (max-width: 480px) {
  .kai-doc-section {
    padding: 1rem;
  }
  
  .kai-doc-table {
    font-size: 0.9rem;
  }
  
  .kai-doc-table th,
  .kai-doc-table td {
    padding: 0.5rem;
  }
}

/* === Print Styles === */
@media print {
  .kai-doc-nav,
  .kai-button {
    display: none;
  }
  
  .kai-documentation {
    color: black;
    background: white;
  }
  
  .kai-doc-section {
    border: 1px solid #000;
  }
}

/* === Utility Classes === */
.kai-text-center { text-align: center; }
.kai-text-right { text-align: right; }
.kai-text-left { text-align: left; }

.kai-mt-1 { margin-top: 0.5rem; }
.kai-mt-2 { margin-top: 1rem; }
.kai-mt-3 { margin-top: 1.5rem; }
.kai-mt-4 { margin-top: 2rem; }

.kai-mb-1 { margin-bottom: 0.5rem; }
.kai-mb-2 { margin-bottom: 1rem; }
.kai-mb-3 { margin-bottom: 1.5rem; }
.kai-mb-4 { margin-bottom: 2rem; }

.kai-hidden { display: none; }
.kai-visible { display: block; }

/* === Animation Styles === */
@keyframes kai-fadeIn {
  from { 
    opacity: 0;
  }
  to { 
    opacity: 1;
  }
}

.kai-animate-fadeIn {
  animation: kai-fadeIn 0.5s ease-out;
}

/* === Focus Styles for Accessibility === */
.kai-doc-nav a:focus,
.kai-button:focus {
  outline: 2px solid #8B4513;
}

/* === High Contrast Mode Support === */
@media (prefers-contrast: high) {
  .kai-doc-section {
    border: 2px solid #000;
  }
  
  .kai-template-card {
    border: 2px solid #000;
  }
  
  .kai-code-block {
    border: 1px solid #000;
  }
}

/* === Additional Utility Classes === */
.kai-clearfix::after {
  content: "";
  clear: both;
  display: table;
}

.kai-flex {
  display: flex;
}

.kai-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.kai-flex-column {
  display: flex;
  flex-direction: column;
}

/* === Loading States === */
.kai-loading {
  opacity: 0.6;
}

.kai-loading::after {
  content: "Loading...";
  display: block;
  text-align: center;
  padding: 1rem;
  color: #8B4513;
}

/* === Badge Styles === */
.kai-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background-color: #8B4513;
  color: white;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: bold;
  margin: 0 0.25rem;
}

.kai-badge-secondary {
  background-color: #F5F5DC;
  color: #8B4513;
}

.kai-badge-success {
  background-color: #4CAF50;
  color: white;
}

.kai-badge-warning {
  background-color: #FF9800;
  color: white;
}

.kai-badge-danger {
  background-color: #F44336;
  color: white;
}

/* === Template Documentation Overrides === */
.template-documentation {
  background: #f8f9fa;
  padding: 0.5em;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.template-documentation .documentation-heading {
  font-weight: bold;
  border-bottom: 1px solid #aaa;
  margin-bottom: 0.3em;
}

.template-documentation .documentation-startbox,
.template-documentation .documentation-endbox {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}