/* AgentSkills Marketplace - Techie Dark Theme */

/* ===== CSS Variables (Dark Mode Default) ===== */
:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-card: #1c2128;
  --bg-card-hover: #222830;
  --bg-input: #0d1117;
  --border-color: #30363d;
  --border-focus: #58a6ff;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --accent-blue: #58a6ff;
  --accent-green: #3fb950;
  --accent-red: #f85149;
  --accent-yellow: #e3b341;
  --accent-purple: #bc8cff;
  --accent-cyan: #39d353;
  --font-mono: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --transition: all 0.2s ease;
  --row-self-bg: rgba(227, 179, 65, 0.10);
  --row-self-border: rgba(227, 179, 65, 0.35);
}

/* ===== Light Mode Overrides ===== */
[data-theme='light'] {
  --bg-primary: #f6f8fa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f2f4;
  --bg-input: #ffffff;
  --border-color: #d0d7de;
  --border-focus: #0969da;
  --text-primary: #1f2328;
  --text-secondary: #656d76;
  --text-muted: #9198a1;
  --accent-blue: #0969da;
  --accent-green: #1a7f37;
  --accent-red: #cf222e;
  --accent-yellow: #9a6700;
  --accent-purple: #8250df;
  --accent-cyan: #0550ae;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --row-self-bg: rgba(154, 103, 0, 0.07);
  --row-self-border: rgba(154, 103, 0, 0.30);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code,
pre,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

/* ===== Header ===== */
.header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.875rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.header-brand:hover {
  text-decoration: none;
  color: var(--accent-blue);
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border-radius: var(--radius-md);
  font-size: 1rem;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.brand-name span {
  color: var(--accent-blue);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: var(--transition);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-card);
  text-decoration: none;
}

.nav-link.active {
  color: var(--accent-blue);
  background: rgba(88, 166, 255, 0.1);
}

.header-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-profile-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  border-radius: 999px;
  padding: 0.125rem 0.5rem 0.125rem 0.125rem;
  transition: background-color 0.2s;
}

.header-profile-link:hover {
  background-color: var(--surface-hover, rgba(255,255,255,0.07));
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  transition: border-color 0.2s;
}

.avatar:hover {
  border-color: var(--accent-blue);
}

/* Initials fallback — shown when no avatar image is available */
.avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-blue);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  user-select: none;
  flex-shrink: 0;
}

.profile-avatar.avatar-initials {
  font-size: 1.75rem;
}

/* Small variant used in admin table rows */
.avatar-small {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
}

.avatar-small.avatar-initials {
  font-size: 0.5rem;
}

.username {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* ===== Dark Mode Toggle ===== */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  line-height: 1;
}

.theme-toggle:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-focus);
}

/* ===== Layout ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.container--narrow {
  max-width: 900px;
}

.layout-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 1rem;
  }

  .header {
    padding: 0.625rem 1rem;
    gap: 0.5rem;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .brand-icon {
    width: 28px;
    height: 28px;
    font-size: 0.875rem;
  }

  .header-nav {
    gap: 0.25rem;
  }

  .nav-link {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
  }

  .username {
    display: none;
  }

  .header-user .btn-ghost {
    display: none;
  }

  .theme-toggle {
    width: 30px;
    height: 30px;
  }

  .search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .search-actions {
    width: 100%;
  }

  .search-actions .btn {
    justify-content: center;
    flex: 1;
  }

  .pagination {
    flex-direction: column;
  }
}

/* ===== Sidebar ===== */
.sidebar {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: fit-content;
}

.sidebar-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}

.sidebar-list {
  list-style: none;
}

.sidebar-item {
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.sidebar-item:last-child {
  border-bottom: none;
}

.sidebar-item strong {
  display: block;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-item small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ===== Main Content ===== */
.main {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

/* ===== Cards ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.skill-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 1rem;
  cursor: pointer;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent-blue);
  opacity: 0;
  transition: opacity 0.2s;
}

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

/* Invisible stretched link covers the whole card; footer links sit above it */
.skill-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.skill-card-body {
  flex: 1;
  position: relative;
  z-index: 0;
}

.skill-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-blue);
  font-family: var(--font-mono);
  margin-bottom: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-card-desc {
  color: var(--text-secondary);
  font-size: 0.825rem;
  margin-bottom: 0;
  line-height: 1.4;
}

.skill-card-footer {
  margin-top: 0.875rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}

.skill-card-source {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  overflow: hidden;
}

.skill-card-source svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.skill-card-source a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-secondary);
}

.skill-card-source a:hover {
  color: var(--accent-blue);
}

.skill-card-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.skill-card-date {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.skill-card-date svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.btn-xs {
  padding: 0.2rem 0.625rem;
  font-size: 0.72rem;
}

.skill-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
  align-items: center;
  font-family: var(--font-mono);
}

.skill-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.skill-meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ===== Tags & Badges ===== */
.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.tag {
  background: rgba(88, 166, 255, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(88, 166, 255, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  transition: var(--transition);
}

.tag:hover {
  background: rgba(88, 166, 255, 0.2);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.badge-private {
  background: rgba(248, 81, 73, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(248, 81, 73, 0.2);
}

.badge-public {
  background: rgba(63, 185, 80, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(63, 185, 80, 0.2);
}

.badge-registered {
  background: rgba(63, 185, 80, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(63, 185, 80, 0.2);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  font-family: var(--font-mono);
}

.btn:hover {
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent-green);
  color: #0d1117;
  border-color: var(--accent-green);
}

.btn-primary:hover:not(:disabled) {
  background: #46c55a;
  border-color: #46c55a;
}

.btn-secondary {
  background: var(--accent-blue);
  color: #0d1117;
  border-color: var(--accent-blue);
}

.btn-secondary:hover:not(:disabled) {
  background: #79b8ff;
  border-color: #79b8ff;
}

.btn-danger {
  background: transparent;
  color: var(--accent-red);
  border-color: var(--accent-red);
}

.btn-danger:hover:not(:disabled) {
  background: rgba(248, 81, 73, 0.1);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-color);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-focus);
}

.btn-github {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-github:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: var(--accent-blue);
}

/* ===== Search ===== */
.search-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  width: 16px;
  height: 16px;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-mono);
  transition: var(--transition);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-form .search-input {
  flex: 1;
}

.search-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== Section Headers ===== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title::before {
  content: '//';
  color: var(--text-muted);
  font-weight: 400;
}

.result-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.625rem;
  border-radius: 20px;
}

/* ===== Skill Detail ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--accent-blue);
}

.breadcrumb-sep {
  color: var(--text-muted);
}

.skill-detail-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.skill-detail-title {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skill-detail-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.metadata-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.metadata-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 0.375rem;
}

.metadata-value {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-mono);
  word-break: break-all;
}

/* ===== Code Block ===== */
.code-block {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.code-block-lang {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: lowercase;
}

.code-block-dots {
  display: flex;
  gap: 0.375rem;
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-dot-red {
  background: #ff5f57;
}

.code-dot-yellow {
  background: #ffbd2e;
}

.code-dot-green {
  background: #28c940;
}

.code-block pre {
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ===== Section ===== */
.content-section {
  margin-bottom: 2rem;
}

.content-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.content-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* ===== Repository Cards ===== */
.repo-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  background: var(--bg-card);
  transition: var(--transition);
}

.repo-card.registered {
  border-color: rgba(63, 185, 80, 0.4);
  background: rgba(63, 185, 80, 0.05);
}

.repo-card:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-sm);
}

.repo-name {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.375rem;
}

.repo-status {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 0.375rem;
}

.repo-status.pending {
  color: var(--accent-yellow);
}

.repo-status.indexing {
  color: var(--accent-blue);
}

.repo-status.completed {
  color: var(--accent-green);
}

.repo-status.failed {
  color: var(--accent-red);
}

.repo-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 130px;
}

.error-box {
  background: rgba(248, 81, 73, 0.1);
  border: 1px solid rgba(248, 81, 73, 0.3);
  border-radius: var(--radius-md);
  padding: 0.625rem 0.875rem;
  margin-top: 0.5rem;
  color: var(--accent-red);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ===== Page Header ===== */
.page-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== Grid ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.repo-list {
  display: grid;
  gap: 1rem;
}

.pagination {
  margin-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-number {
  min-width: 2.25rem;
  justify-content: center;
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}

.pagination-number.is-current {
  background: rgba(88, 166, 255, 0.15);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.pagination-ellipsis {
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding: 0 0.125rem;
}

.pagination-status {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-family: var(--font-mono);
}

.is-disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* ===== Terminal Cursor ===== */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent-green);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

/* ===== Status Indicator ===== */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.375rem;
}

.status-dot.online {
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.status-dot.pending {
  background: var(--accent-yellow);
}

.status-dot.error {
  background: var(--accent-red);
}

/* ===== Home Page ===== */
.hero {
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(88, 166, 255, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-content {
  max-width: 700px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(63, 185, 80, 0.1);
  border: 1px solid rgba(63, 185, 80, 0.3);
  color: var(--accent-green);
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-login {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-login:hover {
  background: var(--bg-card);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: left;
}

.feature-icon {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  display: block;
}

.feature-title {
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.feature-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== Authenticated home ===== */
.home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.home-action-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  transition: var(--transition);
}

.home-action-card:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transform: translateY(-2px);
}

.home-action-icon {
  font-size: 1.75rem;
}

.home-action-title {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.home-action-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ===== Utility ===== */
.text-mono {
  font-family: var(--font-mono);
}

.text-muted {
  color: var(--text-muted);
}

.text-secondary {
  color: var(--text-secondary);
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }
}
