/* ===== Aixcellence Attitude — Premium Dark/Gold Theme ===== */

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

body {
  background: #0d0d0d;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #111;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #444;
}

/* Cards */
.card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  transition: border-color 0.2s ease;
}
.card:hover {
  border-color: #3a3a3a;
}

/* Navigation */
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #888;
  font-size: 0.8125rem;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.15s ease;
}
.nav-item:hover {
  color: #ccc;
  background: rgba(255, 255, 255, 0.03);
}
.nav-item.active {
  color: #d4a51a;
  background: rgba(212, 165, 26, 0.08);
  font-weight: 500;
}
.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Module clickable */
.module-clickable {
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.1s ease;
}
.module-clickable:hover {
  border-color: #d4a51a;
  transform: translateX(2px);
}

/* Auth inputs focus glow */
input:focus {
  box-shadow: 0 0 0 2px rgba(212, 165, 26, 0.15);
}

/* Progress bar animation */
.bg-gold-500 {
  transition: width 0.6s ease-out;
}

/* Sidebar transition */
.sidebar {
  transition: transform 0.3s ease;
}

/* Button hover effects */
a[class*="bg-gold"], button[class*="bg-gold"] {
  transition: all 0.2s ease;
}
a[class*="bg-gold"]:hover, button[class*="bg-gold"]:hover {
  box-shadow: 0 4px 12px rgba(212, 165, 26, 0.25);
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1a1a1a;
  border: 1px solid #d4a51a;
  border-radius: 10px;
  padding: 12px 20px;
  color: #fff;
  font-size: 0.875rem;
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1023px) {
  .sidebar {
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

main > * {
  animation: fadeIn 0.3s ease forwards;
}

/* ===== MODULE RICH CONTENT STYLES ===== */

.module-rich-content .module-content {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #d0d0d0;
}

.module-rich-content .module-intro {
  margin-bottom: 2rem;
}

.module-rich-content .intro-text {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #c0c0c0;
  border-left: 3px solid #d4a51a;
  padding-left: 1.25rem;
  font-style: italic;
  margin: 0;
}

.module-rich-content .module-section {
  margin-bottom: 2.5rem;
}

.module-rich-content h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #2a2a2a;
}

.module-rich-content h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #e0e0e0;
  margin-bottom: 0.5rem;
}

.module-rich-content p {
  margin-bottom: 0.875rem;
  color: #b0b0b0;
}

.module-rich-content strong {
  color: #e0e0e0;
  font-weight: 600;
}

.module-rich-content ul, .module-rich-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.module-rich-content li {
  margin-bottom: 0.5rem;
  color: #b0b0b0;
}

.module-rich-content .insight-box {
  background: rgba(212, 165, 26, 0.06);
  border: 1px solid rgba(212, 165, 26, 0.2);
  border-left: 3px solid #d4a51a;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.module-rich-content .insight-box .insight-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d4a51a;
  display: block;
  margin-bottom: 0.5rem;
}

.module-rich-content .insight-box p {
  margin: 0;
  font-style: italic;
  color: #c8c8c8;
}

.module-rich-content .framework-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

@media (max-width: 640px) {
  .module-rich-content .framework-grid {
    grid-template-columns: 1fr;
  }
}

.module-rich-content .framework-quadrant {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 1rem;
}

.module-rich-content .framework-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d4a51a;
  display: block;
  margin-bottom: 0.625rem;
}

.module-rich-content .framework-label.red {
  color: #f87171;
}

.module-rich-content .framework-label.gold {
  color: #d4a51a;
}

.module-rich-content .framework-note {
  font-size: 0.8125rem;
  color: #888;
  font-style: italic;
  margin-top: 0.75rem;
}

.module-rich-content .questions-list {
  margin: 1.25rem 0;
}

.module-rich-content .question-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #1a1a1a;
}

.module-rich-content .question-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #d4a51a;
  min-width: 2.5rem;
  line-height: 1.2;
}

.module-rich-content .question-text {
  margin-bottom: 0.375rem;
  color: #e0e0e0;
}

.module-rich-content .question-note {
  font-size: 0.8125rem;
  color: #777;
  font-style: italic;
  margin: 0;
}

.module-rich-content .distinction-table {
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
  margin: 1.25rem 0;
}

.module-rich-content .distinction-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #111;
}

.module-rich-content .distinction-header div {
  padding: 0.625rem 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #d4a51a;
  border-right: 1px solid #2a2a2a;
}

.module-rich-content .distinction-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #2a2a2a;
}

.module-rich-content .distinction-row div {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #b0b0b0;
  border-right: 1px solid #2a2a2a;
}

.module-rich-content .distinction-row div:last-child {
  border-right: none;
}

.module-rich-content .protocol-steps {
  margin: 1.25rem 0;
}

.module-rich-content .protocol-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.module-rich-content .step-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0d0d0d;
  background: #d4a51a;
  padding: 0.25rem 0.625rem;
  height: fit-content;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.module-rich-content .matrix-container {
  margin: 1.25rem 0;
}

.module-rich-content .matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.module-rich-content .matrix-header-top {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  text-align: center;
  padding: 0.375rem 0;
}

.module-rich-content .matrix-header-left {
  display: none;
}

.module-rich-content .matrix-cell {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 1rem;
}

.module-rich-content .matrix-cell.q1, .module-rich-content .matrix-cell.q2 {
  border-top: 2px solid #d4a51a;
}

.module-rich-content .matrix-cell strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #d4a51a;
  font-size: 0.875rem;
}

.module-rich-content .module-exercise {
  background: rgba(212, 165, 26, 0.04);
  border: 1px solid rgba(212, 165, 26, 0.15);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.module-rich-content .module-exercise h2 {
  color: #d4a51a;
  border-color: rgba(212, 165, 26, 0.2);
}

.module-rich-content .module-exercise ol {
  margin-bottom: 1rem;
}

.module-rich-content .exercise-warning {
  font-size: 0.8125rem;
  color: #888;
  font-style: italic;
  margin: 0;
}

.module-rich-content .module-takeaway {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.module-rich-content .module-takeaway h2 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 0.875rem;
  border-color: #2a2a2a;
}

.module-rich-content .module-takeaway li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.module-rich-content .module-takeaway li::before {
  content: '✓';
  color: #d4a51a;
  font-weight: 700;
  flex-shrink: 0;
}

.module-rich-content .profiles-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

@media (max-width: 768px) {
  .module-rich-content .profiles-container {
    grid-template-columns: 1fr;
  }
}

.module-rich-content .profile-card {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 1rem;
}

.module-rich-content .profile-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d4a51a;
  margin-bottom: 0.75rem;
}

.module-rich-content .rituals-list {
  margin: 1.25rem 0;
}

.module-rich-content .ritual-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #1a1a1a;
}

.module-rich-content .ritual-num {
  font-size: 0.6875rem;
  font-weight: 700;
  background: #111;
  color: #d4a51a;
  border: 1px solid #2a2a2a;
  padding: 0.25rem 0.5rem;
  height: fit-content;
  border-radius: 4px;
  min-width: 2.5rem;
  text-align: center;
  flex-shrink: 0;
}

.module-rich-content .ritual-content h3 {
  margin-bottom: 0.375rem;
}

.module-rich-content .days-blocks {
  margin: 1.25rem 0;
}

.module-rich-content .days-block {
  background: #111;
  border: 1px solid #2a2a2a;
  border-left: 3px solid #d4a51a;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.module-rich-content .days-header {
  font-size: 0.875rem;
  font-weight: 700;
  color: #d4a51a;
  margin-bottom: 0.75rem;
}

.module-rich-content .jalon-format {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 1rem;
  margin: 0.75rem 0 1rem;
}

.module-rich-content .kpis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

@media (max-width: 640px) {
  .module-rich-content .kpis-grid {
    grid-template-columns: 1fr;
  }
}

.module-rich-content .kpi-category {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 1rem;
}

.module-rich-content .kpi-category h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d4a51a;
  margin-bottom: 0.625rem;
}

.module-rich-content .template-block {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.module-rich-content .template-block h3 {
  margin-bottom: 0.375rem;
  color: #d4a51a;
}

.module-rich-content .exercise-block {
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.module-rich-content .exercise-block h3 {
  margin-bottom: 0.5rem;
  color: #e0e0e0;
}

.module-rich-content em {
  color: #c0c0c0;
  font-style: italic;
}

.module-rich-content .two-cols {
  grid-template-columns: 1fr 1fr;
}

.module-rich-content .distinction-row:nth-child(even) {
  background: rgba(255,255,255,0.02);
}
