/* -------------------------------------------------------------------------- */
/*  COMPONENTS                                                                 */
/* -------------------------------------------------------------------------- */

/* Documentation System */
.doc-cat-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  font-size: 0.95rem;
}

.doc-cat-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
}

.doc-cat-btn.active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-primary);
  font-weight: 500;
}

/* Markdown Prose Styles */
.prose {
  color: var(--color-text);
  line-height: 1.7;
}

.prose h1,
.prose h2,
.prose h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.prose h1 {
  font-size: 2rem;
}
.prose h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}
.prose h3 {
  font-size: 1.25rem;
}

.prose p {
  margin-bottom: 1rem;
}
.prose ul,
.prose ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: var(--color-text-paragraph);
}
.prose li {
  margin-bottom: 0.5rem;
}

.prose code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
  color: #e2e8f0;
}

.prose pre {
  background: #0d1117;
  padding: 1rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.prose pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: 0.9rem;
}

.prose blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1rem;
  margin-left: 0;
  font-style: italic;
  color: var(--color-text-muted);
  background: rgba(59, 130, 246, 0.05);
  padding: 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.prose a {
  color: var(--color-primary);
  text-decoration: none;
}
.prose a:hover {
  text-decoration: underline;
}

/* --- Buttons --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.button--primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-glow);
}

.button--primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--color-secondary),
    var(--color-primary)
  );
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--color-primary-glow);
}

.button--primary:hover::before {
  opacity: 1;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* --- Cards (Glassmorphism) --- */
.card {
  background: var(--color-surface-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: var(--transition);
  backdrop-filter: var(--backdrop-blur);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  opacity: 1;
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.card__description {
  font-size: 1rem;
  color: var(--color-text-muted);
  flex-grow: 1;
}

/* --- Badges --- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* --- Logo --- */
.logo {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--color-primary);
}

/* --- Timeline (Premium) --- */
.timeline {
  position: relative;
  padding-left: 2rem;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--color-primary),
    var(--color-secondary),
    transparent
  );
  opacity: 0.5;
}

.timeline__item {
  position: relative;
  margin-bottom: var(--space-lg);
}

.timeline__marker {
  position: absolute;
  top: 0;
  left: -2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary-glow);
  z-index: 1;
  transform: translateX(-1px);
  /* Center on line */
}

.timeline__content {
  background: var(--color-surface-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.timeline__content:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.timeline__meta {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline__title {
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 1rem;
}

/* --- Glowing Dot --- */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.glowing-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  animation: pulse-glow 2s infinite;
}

/* --- Competence Tags (Stages) --- */
.competence-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  transition: var(--transition);
  white-space: nowrap;
}

.competence-tag:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--color-text);
}

.competence-tag .glowing-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}
