/* :root {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', sans-serif;
  line-height: 1.5;
  font-weight: 400;

 
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-200: #bae6fd;
  --primary-300: #7dd3fc;
  --primary-400: #38bdf8;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-800: #075985;
  --primary-900: #0c4a6e;

  --secondary-50: #fdf4ff;
  --secondary-100: #fae8ff;
  --secondary-200: #f5d0fe;
  --secondary-300: #f0abfc;
  --secondary-400: #e879f9;
  --secondary-500: #d946ef;
  --secondary-600: #c026d3;
  --secondary-700: #a21caf;
  --secondary-800: #86198f;
  --secondary-900: #701a75;

  --accent-50: #fff7ed;
  --accent-100: #ffedd5;
  --accent-200: #fed7aa;
  --accent-300: #fdba74;
  --accent-400: #fb923c;
  --accent-500: #f97316;
  --accent-600: #ea580c;
  --accent-700: #c2410c;
  --accent-800: #9a3412;
  --accent-900: #7c2d12;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  color-scheme: light;
  color: var(--gray-900);
  background-color: var(--gray-50);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  min-width: 320px;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
}

#root {
  flex: 1;
  display: flex;
  flex-direction: column;
}

a {
  font-weight: 500;
  color: var(--primary-600);
  text-decoration: inherit;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-700);
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--gray-900);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 3.2em;
}

button {
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0.75em 1.5em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
}

button:focus,
button:focus-visible {
  outline: 2px solid var(--primary-400);
  outline-offset: 2px;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border-radius: 8px;
  border: 2px solid var(--gray-200);
  transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
} */


:root {
  --color-bg-default: #fff;
  --color-bg-subtle: #f6f8fa;
  --color-bg-muted: #f0f3f6;
  --color-bg-overlay: rgba(255, 255, 255, 0.89);
  --color-border-default: #d0d7de;
  --color-text-primary: #1f2328;
  --color-text-secondary: #656d76;
  --color-accent-fg: #0969da;
  --color-accent-emphasis: #0550ae;
  --ui-card-bg: var(--color-bg-default);
  --ui-card-border: var(--color-border-default);
  --ui-btn-bg: var(--color-accent-fg);
  --ui-btn-text: #fff;
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.10);
  --blur-subtle: blur(8px);
  --border-radius-large: 18px;
}

.cool-profile {
  position: relative;
  overflow: visible;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  min-width: 0;
}

.cool-profile-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: var(--border-radius-large);
  background: linear-gradient(145deg, var(--color-bg-subtle) 0%, var(--color-bg-default) 100%);
  border: 1px solid var(--ui-card-border);
  box-shadow: var(--shadow-medium);
  opacity: 1;
  backdrop-filter: var(--blur-subtle);
}

.cool-profile-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 1.5rem 1.25rem 1.5rem;
}

.cool-profile-avatar {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.avatar-large {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  border: 4px solid var(--color-bg-default);
  box-shadow: 0 0 0 1px var(--ui-card-border), var(--shadow-medium);
  transition: all 0.3s ease;
  object-fit: cover;
}

.cool-profile-name {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 0.2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.cool-profile-username {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.cool-profile-bio {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
  text-align: center;
  line-height: 1.5;
  max-width: 90%;
}

@media (max-width: 640px) {
  .cool-profile-name {
    font-size: 1.75rem;
  }

  .cool-profile-username {
    font-size: 1rem;
  }

  .cool-profile-bio {
    font-size: 0.95rem;
    padding: 0 0.5rem;
    max-width: 100%;
  }

  .cool-profile-avatar img {
    width: 100px;
    height: 100px;
  }
}

.cool-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  justify-content: center;
  width: 100%;
}

@media (max-width: 640px) {
  .cool-profile-meta {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
}

.cool-profile-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.95rem;
  background: var(--ui-card-bg);
  border: 1px solid var(--ui-card-border);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  transition: all 0.2s ease;
}

.cool-profile-meta .meta-item:hover {
  border-color: var(--color-accent-fg);
  color: var(--color-accent-fg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.cool-profile-meta .meta-item a {
  color: var(--color-accent-fg);
  text-decoration: none;
  font-weight: 500;
}

.cool-profile-meta .meta-item a:hover {
  color: var(--color-accent-emphasis);
  text-decoration: underline;
}

.cool-profile-stats-glass {
  display: flex;
  flex-direction: row;
  gap: 1.1rem;
  margin: 1.5rem 0;
  justify-content: center;
  width: 100%;
  background: var(--ui-card-bg);
  border: 1px solid var(--ui-card-border);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-medium);
  padding: 1.25rem 1rem;
  backdrop-filter: blur(6px);
}

@media (max-width: 768px) {
  .cool-profile-content {
    padding: 1rem;
  }

  .avatar-large {
    width: 6.5rem;
    height: 6.5rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--ui-card-border);
  background: var(--ui-btn-bg);
  color: var(--ui-btn-text);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn.secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--ui-card-border);
}

.btn:active {
  transform: translateY(1px);
}

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

.input,
.select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--ui-card-border);
  background: var(--ui-card-bg);
  color: var(--color-text-primary);
  box-shadow: none;
}

.card {
  background: var(--ui-card-bg);
  border: 1px solid var(--ui-card-border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow-medium);
  backdrop-filter: var(--blur-subtle);
}/* Rate Limit Warning Styles */
.rate-limit-warning {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 600px;
    width: 90%;
    background: rgba(var(--color-bg-elevated-rgb), 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border-default);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-large);
    padding: 1.5rem;
    color: var(--color-text-primary);
}

.warning-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.warning-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #ff9500;
    flex-shrink: 0;
}

.warning-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.dismiss-button {
    position: absolute;
    right: 0;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.dismiss-button:hover {
    color: var(--color-text-primary);
}

.warning-message {
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.warning-solutions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.solution-item {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    padding: 0.75rem;
    background: rgba(var(--color-accent-rgb), 0.05);
    border-radius: var(--border-radius-medium);
    border: 1px solid rgba(var(--color-accent-rgb), 0.1);
}

.solution-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-accent-fg);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.solution-item strong {
    color: var(--color-text-primary);
}

.token-instructions {
    margin-top: 0.5rem;
    padding: 1rem;
    background: rgba(var(--color-bg-subtle-rgb), 0.7);
    border-radius: var(--border-radius-medium);
}

.token-instructions h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    color: var(--color-text-primary);
}

.token-instructions ol {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--color-text-secondary);
}

.token-instructions li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.token-instructions a {
    color: var(--color-accent-fg);
    text-decoration: none;
}

.token-instructions a:hover {
    text-decoration: underline;
}

.token-instructions code {
    background: rgba(var(--color-neutral-rgb), 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.875rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .rate-limit-warning {
        top: 70px;
        width: 95%;
        padding: 1rem;
    }

    .warning-header h3 {
        font-size: 1.125rem;
    }

    .solution-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .solution-icon {
        align-self: flex-start;
    }
}/* ================================
   THEME COLORS - Using App.css variables
================================ */
:root {
    --navbar-glass: var(--glass-bg);
    --navbar-border: var(--glass-border);
    --navbar-accent: var(--color-accent-fg);
    --navbar-text: var(--color-text-primary);
    --navbar-text-muted: var(--color-text-secondary);
}

/* ================================
   NAVBAR BASE
================================ */
.navbar {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(16, 18, 24, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-default);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    padding: 0.75rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    height: 60px;
}

/* ================================
   LOGO
================================ */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-accent-fg);
    text-shadow: 0 2px 8px rgba(79, 209, 197, 0.2);
    white-space: nowrap;
}

.nav-logo-icon {
    width: 2rem;
    height: 2rem;
    color: var(--color-accent-fg);
    filter: drop-shadow(0 2px 4px rgba(79, 209, 197, 0.2));
}

/* ================================
   SEARCH
================================ */
.nav-search {
    flex: 1;
    max-width: 300px;
    position: relative;
}

.nav-search input {
    width: 100%;
    padding: 0.65rem 0.75rem 0.65rem 2.5rem;
    border-radius: 6px;
    border: 1px solid rgba(79, 209, 197, 0.2);
    background: rgba(26, 30, 39, 0.6);
    color: var(--color-text-primary);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.nav-search input:focus {
    outline: none;
    border-color: var(--color-accent-fg);
    background: var(--color-bg-elevated);
    box-shadow: var(--shadow-small);
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    transform: translateY(-50%);
    width: 1.1rem;
    height: 1.1rem;
    color: var(--color-accent-fg);
    stroke-width: 1.5px;
    opacity: 0.7;
}

/* ================================
   LINKS
================================ */
.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links a,
.mobile-menu a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    position: relative;
}

.nav-links a:hover,
.mobile-menu a:hover {
    color: var(--color-accent-fg);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-accent-fg);
    transition: all 0.2s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 60%;
}

/* ================================
   HAMBURGER
================================ */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    /* hidden on desktop */
}

.icon {
    width: 28px;
    height: 28px;
    color: var(--color-text);
}

/* Search results dropdown */
.search-results {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: var(--color-bg-elevated);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--color-border-default);
    border-radius: var(--border-radius);
    margin-top: 0.25rem;
    box-shadow: var(--shadow-medium);
    z-index: 50;
    overflow: hidden;
}

.search-item {
    padding: 0.65rem 0.85rem;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-bottom: 1px solid var(--color-border-default);
}

@media (max-width: 768px) {
    .search-item {
        padding: 0.85rem 1rem;
    }

    .search-avatar {
        width: 30px;
        height: 30px;
    }

    .search-item span {
        font-size: 1.1rem;
    }
}

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

.search-item:hover {
    background: var(--color-bg-hover);
}

.search-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--color-border-default);
}

/* ================================
   MOBILE MENU
================================ */
.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--color-bg-elevated);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border-top: 1px solid var(--color-border-default);
    box-shadow: var(--shadow-small);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    width: 100%;
}

.mobile-menu a {
    padding: 0.85rem 1.25rem;
    text-align: center;
    border-radius: var(--border-radius);
    background: var(--color-bg-subtle);
    transition: all 0.2s ease;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: block;
}

.mobile-menu a:hover {
    background: var(--color-bg-hover);
    transform: translateY(-2px);
}

.mobile-only {
    display: none;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        height: 56px;
    }

    .nav-logo span {
        font-size: 1rem;
    }

    .nav-logo-icon {
        width: 1.5rem;
        height: 1.5rem;
    }

    .nav-links.desktop-only,
    .nav-search.desktop-only {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .mobile-only {
        display: block;
    }

    .nav-search.mobile-only {
        width: 100%;
        max-width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .nav-logo span {
        font-size: 0;
        display: none;
    }

    .nav-logo {
        gap: 0;
    }

    .nav-logo-icon {
        width: 2rem;
        height: 2rem;
    }
}/* Enhanced color system for GitPreview */
:root {
    /* Base Colors */
    --color-bg-default: #101218;
    --color-bg-default-rgb: 16, 18, 24;
    --color-bg-subtle: #1a1e27;
    --color-bg-subtle-rgb: 26, 30, 39;
    --color-bg-elevated: #242936;
    --color-bg-elevated-rgb: 36, 41, 54;
    --color-bg-hover: #2a3040;
    --color-bg-hover-rgb: 42, 48, 64;

    /* Border Colors */
    --color-border-default: #2d334a;
    --color-border-rgb: 45, 51, 74;
    --color-border-strong: #3a4157;

    /* Accent Colors */
    --color-accent-fg: #4fd1c5;
    --color-accent-rgb: 79, 209, 197;
    --color-accent-emphasis: #ffb347;
    --color-accent-emphasis-rgb: 255, 179, 71;
    --color-done-fg: #ff6a00;
    --color-done-rgb: 255, 106, 0;
    --color-success-fg: #10b981;
    --color-success-rgb: 16, 185, 129;
    --color-danger-fg: #ef4444;
    --color-danger-rgb: 239, 68, 68;
    --color-warning-fg: #f59e0b;
    --color-warning-rgb: 245, 158, 11;

    /* Programming Language Colors */
    --color-lang-javascript: #f7df1e;
    --color-lang-typescript: #3178c6;
    --color-lang-python: #3572A5;
    --color-lang-java: #b07219;
    --color-lang-csharp: #178600;
    --color-lang-cpp: #f34b7d;
    --color-lang-go: #00ADD8;
    --color-lang-ruby: #701516;
    --color-lang-php: #4F5D95;
    --color-lang-swift: #F05138;
    --color-lang-kotlin: #A97BFF;
    --color-lang-rust: #DEA584;
    --color-lang-html: #e34c26;
    --color-lang-css: #563d7c;
    --color-lang-shell: #89e051;

    /* Text Colors */
    --color-text-primary: #f5f6fa;
    --color-text-primary-rgb: 245, 246, 250;
    --color-text-secondary: #b8c1d9;
    --color-text-secondary-rgb: 184, 193, 217;
    --color-text-tertiary: #7a849c;
    --color-text-tertiary-rgb: 122, 132, 156;

    /* Card and UI Elements */
    --color-card-bg: #1a1e27;
    --color-card-bg-rgb: 26, 30, 39;
    --color-card-hover: #242936;
    --color-card-hover-rgb: 36, 41, 54;
    --ui-card-bg: rgba(26, 30, 39, 0.8);
    --ui-card-border: #2d334a;
    --ui-muted: rgba(26, 30, 39, 0.6);

    /* Shadows */
    --shadow-xsmall: 0 1px 2px rgba(0, 0, 0, 0.12);
    --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-medium: 0 4px 24px rgba(0, 0, 0, 0.22);
    --shadow-large: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* Border Radius */
    --border-radius-small: 8px;
    --border-radius-medium: 12px;
    --border-radius-large: 16px;
    --border-radius-xlarge: 24px;
    --border-radius-circle: 50%;

    /* Glass Effects */
    --blur-subtle: blur(6px);
    --blur-medium: blur(10px);
    --blur-strong: blur(18px);

    /* Animation Speeds */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;

    /* Z-index Layers */
    --z-index-base: 1;
    --z-index-above: 10;
    --z-index-dropdown: 100;
    --z-index-sticky: 200;
    --z-index-fixed: 300;
    --z-index-modal: 400;
    --z-index-popover: 500;
    --z-index-toast: 600;
    --z-index-overlay: 700;
}

/* Dark Mode Override - Can be used for future light/dark theme toggle */
.dark-mode {
    --color-bg-default: #101218;
    --color-bg-default-rgb: 16, 18, 24;
    --color-bg-subtle: #1a1e27;
    --color-bg-subtle-rgb: 26, 30, 39;
    --color-text-primary: #f5f6fa;
    --color-text-secondary: #b8c1d9;
    --color-text-tertiary: #7a849c;
    --ui-card-border: #2d334a;
}

/* Light Mode Override - For future implementation */
.light-mode {
    --color-bg-default: #f5f6fa;
    --color-bg-default-rgb: 245, 246, 250;
    --color-bg-subtle: #e5e7eb;
    --color-bg-subtle-rgb: 229, 231, 235;
    --color-text-primary: #111827;
    --color-text-secondary: #4b5563;
    --color-text-tertiary: #6b7280;
    --ui-card-border: #d1d5db;

    /* Language Colors */
    --lang-javascript: #f1e05a;
    --lang-typescript: #3178c6;
    --lang-python: #3572A5;
    --lang-java: #b07219;
    --lang-go: #00ADD8;
    --lang-rust: #dea584;
    --lang-c: #555555;
    --lang-cpp: #f34b7d;
    --lang-csharp: #178600;
    --lang-ruby: #701516;
    --lang-php: #4F5D95;
    --lang-html: #e34c26;
    --lang-css: #563d7c;
    --lang-shell: #89e051;
}

/* Language color mapping */
.language-color[data-language="javascript"] {
    background-color: var(--lang-javascript);
}

.language-color[data-language="typescript"] {
    background-color: var(--lang-typescript);
}

.language-color[data-language="python"] {
    background-color: var(--lang-python);
}

.language-color[data-language="java"] {
    background-color: var(--lang-java);
}

.language-color[data-language="go"] {
    background-color: var(--lang-go);
}

.language-color[data-language="rust"] {
    background-color: var(--lang-rust);
}

.language-color[data-language="c"] {
    background-color: var(--lang-c);
}

.language-color[data-language="c++"] {
    background-color: var(--lang-cpp);
}

.language-color[data-language="c#"] {
    background-color: var(--lang-csharp);
}

.language-color[data-language="ruby"] {
    background-color: var(--lang-ruby);
}

.language-color[data-language="php"] {
    background-color: var(--lang-php);
}

.language-color[data-language="html"] {
    background-color: var(--lang-html);
}

.language-color[data-language="css"] {
    background-color: var(--lang-css);
}

.language-color[data-language="shell"] {
    background-color: var(--lang-shell);
}/* Utility classes and animations */

/* Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes slideInUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.6;
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Animation utility classes */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.slide-in-up {
    animation: slideInUp 0.5s ease forwards;
}

.pulse {
    animation: pulse 2s infinite ease-in-out;
}

/* Layout utility classes */
.flex {
    display: flex;
}

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

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

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

.flex-wrap {
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1;
}

.gap-xs {
    gap: 0.25rem;
}

.gap-sm {
    gap: 0.5rem;
}

.gap-md {
    gap: 1rem;
}

.gap-lg {
    gap: 1.5rem;
}

/* Spacing utility classes */
.m-0 {
    margin: 0;
}

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

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

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

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.my-2 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.p-0 {
    padding: 0;
}

.p-2 {
    padding: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

/* Text utility classes */
.text-primary {
    color: var(--color-text-primary);
}

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

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

.text-accent {
    color: var(--color-accent-fg);
}

.text-success {
    color: var(--color-success-fg);
}

.text-danger {
    color: var(--color-danger-fg);
}

.text-warning {
    color: var(--color-warning-fg);
}

.text-sm {
    font-size: 0.875rem;
}

.text-md {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.25rem;
}

.text-xl {
    font-size: 1.5rem;
}

.text-2xl {
    font-size: 1.75rem;
}

.text-3xl {
    font-size: 2rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.text-center {
    text-align: center;
}

/* Border and shadow utilities */
.rounded {
    border-radius: var(--border-radius-medium);
}

.rounded-sm {
    border-radius: var(--border-radius-small);
}

.rounded-lg {
    border-radius: var(--border-radius-large);
}

.rounded-xl {
    border-radius: var(--border-radius-xlarge);
}

.shadow-sm {
    box-shadow: var(--shadow-small);
}

.shadow-md {
    box-shadow: var(--shadow-medium);
}

.shadow-lg {
    box-shadow: var(--shadow-large);
}

/* Display utilities */
.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .md-hidden {
        display: none;
    }

    .md-block {
        display: block;
    }

    .md-flex-col {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .sm-hidden {
        display: none;
    }

    .sm-block {
        display: block;
    }

    .sm-flex-col {
        flex-direction: column;
    }
}/* Loading spinner styles */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.loading-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.spinner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-ring {
    display: block;
    border: 3px solid rgba(var(--color-accent-rgb), 0.2);
    border-top: 3px solid var(--color-accent-fg);
    border-radius: 50%;
    animation: spin 1s linear infinite, pulse 2s ease-in-out infinite;
}

.spinner-small .spinner-ring {
    width: 24px;
    height: 24px;
    border-width: 2px;
}

.spinner-medium .spinner-ring {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

.spinner-large .spinner-ring {
    width: 64px;
    height: 64px;
    border-width: 4px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--color-accent-rgb), 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(var(--color-accent-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--color-accent-rgb), 0);
    }
}/* AI Review styles */

.review-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    min-height: 200px;
}

.review-error {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: var(--border-radius-medium);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.review-error-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: #ff3b30;
    margin-bottom: 0.5rem;
}

.review-error h3 {
    color: var(--color-text-danger);
    margin: 0;
    font-weight: 600;
}

.review-error p {
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.5;
}

.review-error-tip {
    font-size: 0.9rem;
    background: rgba(var(--color-accent-rgb), 0.1);
    border-radius: var(--border-radius-small);
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem !important;
    border: 1px solid rgba(var(--color-accent-rgb), 0.2);
}.cool-profile {
  position: relative;
  overflow: hidden;
  /* Contain the background within bounds */
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  min-width: 0;
  z-index: 1;
  max-width: 100%;
  /* Ensure it doesn't extend beyond its container */
  border-radius: 18px;
  /* Match the background's border-radius */
  margin-bottom: 1rem;
  /* Add space below profile card */
}

.cool-profile-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 18px;
  background: linear-gradient(145deg,
      var(--color-bg-subtle) 0%,
      var(--color-bg-default) 100%);
  border: 1px solid var(--ui-card-border);
  box-shadow: var(--shadow-medium);
  opacity: 1;
  pointer-events: none;
  /* Prevent it from intercepting clicks */
}

.cool-profile-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 1.5rem 1.25rem 1.5rem;
  width: 100%;
}

.cool-profile-avatar {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

:root {
  /* Base Colors */
  --color-bg-default: #101218;
  --color-bg-default-rgb: 16, 18, 24;
  --color-bg-subtle: #1a1e27;
  --color-bg-subtle-rgb: 26, 30, 39;
  --color-bg-elevated: #242936;
  --color-bg-elevated-rgb: 36, 41, 54;
  --color-bg-hover: #2a3040;
  --color-bg-hover-rgb: 42, 48, 64;
  --color-border-default: #2d334a;
  --color-border-rgb: 45, 51, 74;
  --color-border-strong: #3a4157;

  /* Accent Colors */
  --color-accent-fg: #4fd1c5;
  --color-accent-rgb: 79, 209, 197;
  --color-accent-emphasis: #ffb347;
  --color-accent-emphasis-rgb: 255, 179, 71;
  --color-done-fg: #ff6a00;
  --color-done-rgb: 255, 106, 0;

  /* Text Colors */
  --color-text-primary: #f5f6fa;
  --color-text-secondary: #b8c1d9;
  --color-text-tertiary: #7a849c;

  /* UI Elements */
  --color-ui-muted: #1a1e27;
  --color-ui-card: #1a1e27;
  --color-ui-card-border: #2d334a;
  --color-ui-card-hover: #242936;
  --color-ui-card-shadow: 0 4px 32px rgba(0, 0, 0, 0.22);

  /* Shadows */
  --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-medium: 0 4px 24px rgba(0, 0, 0, 0.22);
  --shadow-xsmall: 0 1px 2px rgba(0, 0, 0, 0.12);

  /* Borders */
  --border-radius: 16px;
  --border-radius-lg: 24px;

  /* Glass Effects */
  --glass-bg: rgba(24, 28, 35, 0.85);
  --glass-backdrop: blur(18px);
  --glass-border: #2d334a;
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);

  /* Color System */
  --primary-100: #1a1e27;
  --primary-600: #4fd1c5;
  --primary-900: #ffb347;
  --secondary-100: #ffb347;
  --secondary-600: #ff6a00;
  --gray-50: #1a1e27;
  --gray-600: #b8c1d9;
  --gray-700: #7a849c;
  --gray-900: #f5f6fa;
}

display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-bottom: 0.5rem;
justify-content: center;
}

.cool-profile-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.95rem;
  background: var(--ui-muted);
  border: 1px solid var(--ui-card-border);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  transition: all 0.2s ease;
}

.cool-profile-meta .meta-item:hover {
  border-color: var(--color-accent-fg);
  color: var(--color-accent-fg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-small);
}

.cool-profile-meta .meta-item a {
  color: var(--color-accent-fg);
  text-decoration: none;
  font-weight: 500;
}

.cool-profile-meta .meta-item a:hover {
  color: var(--color-accent-emphasis);
  text-decoration: underline;
}

.cool-profile-stats-glass {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin: 1.5rem 0;
  justify-content: center;
  width: 100%;
  background: var(--ui-card-bg);
  border: 1px solid var(--ui-card-border);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-small);
  padding: 1.25rem 1rem;
  backdrop-filter: var(--blur-subtle, blur(6px));
}

.cool-profile-stats-glass .stat-item {
  background: none;
  border: none;
  box-shadow: none;
  min-width: 80px;
  flex: 1;
  padding: 0 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.cool-profile-stats-glass .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.cool-profile-stats-glass .stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cool-profile-dates {
  font-size: 0.9rem;
  color: var(--color-text-tertiary);
  margin-top: 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid var(--ui-card-border);
  margin-top: 1.5rem;
  width: 100%;
}

/* GitHub-like Design Variables */
:root {
  /* Light theme colors */
  --color-bg-default: #ffffff;
  --color-bg-default-rgb: 255, 255, 255;
  --color-bg-subtle: #f6f8fa;
  --color-bg-muted: #f0f3f6;
  --color-bg-overlay: rgba(255, 255, 255, 0.8);
  --color-border-default: #d0d7de;
  --color-border-muted: #d8dee4;
  --color-text-primary: #1f2328;
  --color-text-secondary: #656d76;
  --color-text-tertiary: #8c959f;
  --color-accent-fg: #0969da;
  --color-accent-emphasis: #0550ae;
  --color-success-fg: #1a7f37;
  --color-danger-fg: #d1242f;
  --color-neutral-muted: rgba(175, 184, 193, 0.2);
  --color-canvas-subtle: #f6f8fa;
  --color-canvas-inset: #f0f3f6;

  /* Spacing and sizing */
  --border-radius: 6px;
  --border-radius-medium: 8px;
  --border-radius-large: 12px;
  --shadow-small: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-large: 0 8px 24px rgba(0, 0, 0, 0.15);

  /* Blur effects */
  --blur-backdrop: blur(12px);
  --blur-subtle: blur(8px);

  /* Unified UI tokens */
  --ui-btn-bg: var(--color-accent-fg);
  --ui-btn-bg-muted: var(--color-accent-emphasis);
  --ui-btn-text: #ffffff;
  --ui-card-bg: var(--color-bg-default);
  --ui-card-border: var(--color-border-default);
  --ui-muted: rgba(0, 0, 0, 0.04);
}

/* Dark theme colors */
[data-theme="dark"] {
  --color-bg-default: #0d1117;
  --color-bg-default-rgb: 13, 17, 23;
  --color-bg-subtle: #161b22;
  --color-bg-muted: #21262d;
  --color-bg-overlay: rgba(13, 17, 23, 0.8);
  --color-border-default: #30363d;
  --color-border-muted: #21262d;
  --color-text-primary: #f0f6fc;
  --color-text-secondary: #7d8590;
  --color-text-tertiary: #656d76;
  --color-accent-fg: #58a6ff;
  --color-accent-emphasis: #1f6feb;
  --color-success-fg: #3fb950;
  --color-danger-fg: #f85149;
  --color-neutral-muted: rgba(110, 118, 129, 0.2);
  --color-canvas-subtle: #161b22;
  --color-canvas-inset: #21262d;

  /* Blur effects */
  --blur-backdrop: blur(12px);
  --blur-subtle: blur(8px);

  /* Spacing and sizing */
  --border-radius: 6px;
  --border-radius-medium: 8px;
  --border-radius-large: 12px;
  --shadow-small: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-large: 0 8px 24px rgba(0, 0, 0, 0.15);

  /* Unified UI tokens */
  --ui-btn-bg: var(--color-accent-fg);
  --ui-btn-bg-muted: var(--color-accent-emphasis);
  --ui-btn-text: #ffffff;
  --ui-card-bg: var(--color-bg-default);
  --ui-card-border: var(--color-border-default);
  --ui-muted: rgba(0, 0, 0, 0.06);

  --ui-btn-bg: var(--color-accent-fg);
  --ui-btn-bg-muted: var(--color-accent-emphasis);
  --ui-btn-text: #0d1117;
  --ui-card-bg: var(--color-bg-subtle);
  --ui-card-border: var(--color-border-default);
  --ui-muted: rgba(255, 255, 255, 0.03);
}

/* Theme Toggle Styles */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 6px;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border-default);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-text-secondary);
}

/* Unified buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--ui-card-border);
  background: var(--ui-btn-bg);
  color: var(--ui-btn-text);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn.secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--ui-card-border);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Inputs & selects */
.input,
.select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--ui-card-border);
  background: var(--ui-card-bg);
  color: var(--color-text-primary);
  box-shadow: none;
}

.select {
  appearance: none;
}

/* Card base */
.card {
  background: var(--ui-card-bg);
  border: 1px solid var(--ui-card-border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow-small);
}

.theme-toggle:hover {
  background: var(--color-bg-muted);
  border-color: var(--color-border-muted);
  color: var(--color-text-primary);
}

.theme-toggle-icon {
  width: 16px;
  height: 16px;
  stroke-width: 1.5px;
}

.theme-toggle-container {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 100;
}

/* Header / Search */
.profile-header-bar {
  padding: 20px 28px;
  background: var(--color-bg-default);
  border-bottom: 1px solid var(--ui-card-border);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.profile-header-bar .search-input {
  padding: 10px 14px 10px 38px;
  border-radius: 12px;
  border: 1px solid var(--ui-card-border);
  background: var(--ui-card-bg);
  box-shadow: none;
}

.ai-review-trigger {
  /* convert to btn */
  padding: 8px 16px;
  border-radius: 10px;
}

/* AI Review Component Styles */
.ai-review-container {
  margin: 24px 0;
}

.ai-review-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-accent-fg);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-small);
}

.ai-review-trigger:hover:not(:disabled) {
  background: var(--color-accent-emphasis);
  box-shadow: var(--shadow-medium);
}

.ai-review-trigger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ai-review-trigger.active {
  background: var(--color-danger-fg);
}

.ai-icon {
  width: 16px;
  height: 16px;
}

.ai-review-panel {
  margin-top: 16px;
  border: 1px solid var(--color-border-default);
  border-radius: var(--border-radius-large);
  background: var(--color-bg-default);
  box-shadow: var(--shadow-medium);
  overflow: hidden;
}

.ai-review-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
  text-align: center;
  color: var(--color-text-secondary);
}

.ai-review-loading p {
  margin: 16px 0 8px;
  font-size: 16px;
  font-weight: 500;
}

.ai-review-loading small {
  font-size: 14px;
  color: var(--color-text-tertiary);
}

.ai-review-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  text-align: center;
  color: var(--color-danger-fg);
}

.error-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
}

.ai-review-error h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.ai-review-error p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.ai-review-content {
  background: var(--color-bg-subtle);
  border: 1.5px solid var(--color-border-default);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-small);
}

.ai-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border-default);
  background: var(--color-bg-subtle);
}

.review-provider {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.success-icon {
  width: 16px;
  height: 16px;
  color: var(--color-success-fg);
}

.review-timestamp {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-text-tertiary);
}

.clock-icon {
  width: 12px;
  height: 12px;
}

.close-review-btn {
  display: flex;
  align-items: center;
  padding: 4px;
  background: none;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  color: var(--color-text-tertiary);
  transition: all 0.2s ease;
}

.close-review-btn:hover {
  background: var(--color-neutral-muted);
  color: var(--color-text-secondary);
}

.close-icon {
  width: 16px;
  height: 16px;
}

.ai-review-body {
  padding: 24px;
  line-height: 1.6;
}

.review-text .review-heading {
  color: var(--color-text-primary);
  font-weight: 600;
  margin: 24px 0 12px;
  line-height: 1.25;
}

.review-text h1.review-heading {
  font-size: 24px;
  border-bottom: 1px solid var(--color-border-muted);
  padding-bottom: 8px;
}

.review-text h2.review-heading {
  font-size: 20px;
}

.review-text h3.review-heading {
  font-size: 16px;
}

.review-paragraph {
  margin: 0 0 16px;
  color: var(--color-text-primary);
  font-size: 14px;
}

.review-list-item,
.review-bullet-item {
  margin: 8px 0;
  padding-left: 16px;
  color: var(--color-text-primary);
  font-size: 14px;
}

.review-text strong {
  font-weight: 600;
  color: var(--color-text-primary);
}

.review-text em {
  font-style: italic;
  color: var(--color-text-secondary);
}

.ai-review-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--color-border-default);
  background: var(--color-bg-subtle);
}

.ai-disclaimer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  color: var(--color-text-tertiary);
  font-style: italic;
}

.disclaimer-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  color: var(--color-text-primary);
  background: var(--color-bg-default);
  min-height: 100vh;
  font-size: 14px;
}

/* Clean SVG Styles */
svg {
  stroke-width: 1.5px;
  color: var(--color-text-secondary);
}

.app {
  min-height: 100vh;
  background: var(--color-bg-default);
}

/* Home Page - GitHub-like Header */
.home-page {
  min-height: 100vh;
  background: var(--color-bg-default);
  padding: 0 0 120px;
  position: relative;
  overflow: hidden;
}

.home-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 100px 24px 60px;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section {
  margin-bottom: 5rem;
  color: white;
  position: relative;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding: 0 20px;
}

.hero-title {
  font-size: 54px;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-accent-fg) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.25;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 22px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.5;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 80px;
}

.feature-card {
  background: rgba(var(--color-bg-default-rgb), 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border-default);
  border-radius: var(--border-radius-large);
  padding: 32px 24px;
  text-align: left;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-small);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent-fg), var(--color-accent-emphasis));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--color-border-emphasis);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
  font-weight: 600;
  margin-bottom: 14px;
}

.feature-card p {
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.7;
  line-height: 1.5;
}

.search-section {
  margin-top: 3.5rem;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 10;
}

.search-container {
  display: flex;
  align-items: center;
  position: relative;
  background: rgba(var(--color-bg-default-rgb), 0.7);
  border: 1px solid var(--color-border-default);
  border-radius: 50px;
  box-shadow: var(--shadow-small);
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  backdrop-filter: blur(15px);
  transition: all 0.3s ease;
}

.search-container:focus-within {
  border-color: var(--color-accent-fg);
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.search-icon-wrapper {
  display: flex;
  align-items: center;
  margin-right: 0.75rem;
}

.search-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-text-secondary);
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  color: var(--color-text-primary);
  padding: 0.5rem 0;
  outline: none;
}

.search-input::placeholder {
  color: var(--color-text-tertiary);
}

.search-button {
  background: linear-gradient(135deg, var(--color-accent-fg), var(--color-accent-emphasis));
  color: white;
  border: none;
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-xsmall);
}

.search-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-small);
  filter: brightness(1.05);
}

.search-info {
  margin-top: 1rem;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* Enhanced search experience replaces demo buttons */

/* GitHub-like Search Styles */
.search-container {
  position: relative;
  width: 100%;
  max-width: 544px;
  margin: 0 auto;
}

.search-form {
  margin-bottom: 16px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--color-text-tertiary);
  z-index: 10;
  stroke-width: 1.5px;
}

.search-input {
  width: 100%;
  padding: 8px 12px 8px 40px;
  border: 1px solid var(--color-border-default);
  border-radius: var(--border-radius);
  background: var(--color-bg-default);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  color: var(--color-text-primary);
  box-shadow: var(--shadow-small);
  font-weight: 400;
}

.search-input:focus {
  border-color: var(--color-accent-fg);
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.12);
  background: var(--color-bg-default);
}

.search-input::placeholder {
  color: var(--color-text-tertiary);
  font-weight: 300;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 2px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--glass-shadow);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 0.5rem;
}

.search-loading,
.search-error,
.search-no-results {
  padding: 1.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--gray-600);
}

.search-results-list {
  max-height: 350px;
  overflow-y: auto;
}

.user-search-result {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: var(--border-radius-lg);
  margin: 0.25rem;
  color: white;
}

.user-search-result:hover {
  background: rgba(255, 255, 255, 0.15);
}

.user-avatar-small {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-login {
  font-weight: 600;
  margin: 0;
  color: var(--gray-900);
  font-size: 1.1rem;
}

.user-type {
  font-size: 0.875rem;
  color: var(--primary-600);
  background: var(--primary-100);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  width: fit-content;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Enhanced Profile Page Styles */
.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border-muted);
  border-radius: var(--border-radius-medium);
  padding: 1.25rem 1rem;
  position: relative;
  z-index: 1;
}

.home-button {
  background: var(--color-bg-default);
  border: 1px solid var(--color-border-default);
  border-radius: var(--border-radius);
  padding: 8px 12px;
  color: var(--color-text-primary);
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-size: 14px;
  white-space: nowrap;
}

.home-button:hover {
  background: var(--color-bg-muted);
  border-color: var(--color-border-muted);
  color: var(--color-text-primary);
  text-decoration: none;
}

.home-icon {
  width: 16px;
  height: 16px;
  stroke-width: 1.5px;
}

.profile-header-bar .search-container {
  flex: 1;
  max-width: 400px;
}

.profile-header-bar .search-input {
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.profile-header-bar .search-input:focus {
  background: rgba(255, 255, 255, 1);
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.profile-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Enhanced User Profile Styles */

.user-profile {
  background: var(--color-bg-default);
  border: 1.5px solid var(--color-border-default);
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.10);
  padding: 2.5rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.user-profile:hover {
  box-shadow: var(--shadow-large);
  border-color: var(--color-accent-fg);
}

.user-profile:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.profile-header {
  padding: 3rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-600) 100%);
  color: white;
  position: relative;
}

.profile-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.profile-avatar {
  float: left;
  margin-right: 2.5rem;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.profile-info {
  overflow: hidden;
  padding-top: 0.5rem;
}

.avatar-large {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.avatar-large:hover {
  transform: scale(1.02);
  border-color: rgba(255, 255, 255, 0.4);
}

.profile-name {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.profile-header {
  padding: 2.5rem 2rem 2rem 2rem;
  text-align: left;
  background: var(--color-bg-default);
  color: var(--color-text-primary);
  border-bottom: 1.5px solid var(--color-border-default);
  border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
  box-shadow: none;
  position: relative;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-start;
  font-size: 1rem;
}

.meta-icon {
  width: 1.25rem;
  height: 1.25rem;
  opacity: 0.8;
}

.meta-item a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
}

.meta-item a:hover {
  color: var(--color-accent-emphasis);
  text-decoration: underline;
}

.profile-stats {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  margin: 0.5rem 0 1.25rem 0;
  justify-content: center;
  width: 100%;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border-muted);
  border-radius: var(--border-radius-medium);
  box-shadow: var(--shadow-small);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.stat-item:hover {
  box-shadow: var(--shadow-medium);
  border-color: var(--color-accent-fg);
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
}

.profile-dates {
  text-align: left;
  font-size: 0.9rem;
  color: var(--gray-600);
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: 16px;
}

.profile-dates p {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-dates strong {
  color: var(--gray-800);
}

/* Enhanced Repository Styles */
.repositories-container {
  background: rgba(var(--color-bg-default-rgb), 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--color-border-default);
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  padding: 2.75rem 2rem 2.25rem 2rem;
  margin-top: 0;
  position: relative;
  overflow: hidden;
  z-index: 3;
  /* Ensure it stacks above the profile */
  transition: all 0.3s ease;
}

.repositories-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg,
      var(--color-accent-fg),
      var(--color-accent-emphasis),
      var(--color-success-fg),
      var(--color-accent-fg));
  background-size: 300% 100%;
  animation: gradientBorder 6s ease infinite;
}

@keyframes gradientBorder {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.repositories-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ui-card-border);
  flex-wrap: wrap;
  gap: 16px;
}

.repositories-header h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 5px;
  color: var(--color-text-primary);
  letter-spacing: -0.3px;
}

.repositories-controls {
  display: flex;
  gap: 1rem;
}

.sort-select,
.filter-select {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid var(--ui-card-border);
  background: var(--ui-card-bg);
  margin-right: 7px;
}

.sort-select:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.repositories-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  width: 100%;
}

.repository-card {
  border: 1px solid var(--ui-card-border);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(var(--color-bg-default-rgb), 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-small);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  /* Ensure consistent height in grid */
  min-height: 180px;
  /* Set minimum height */
  margin: 15px;
}

.repository-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,
      var(--color-accent-fg),
      var(--color-accent-emphasis),
      var(--color-success-fg),
      var(--color-accent-fg));
  background-size: 300% 100%;
  opacity: 0;
  transition: all 0.5s ease;
}

.repository-card:hover {
  border-color: var(--color-accent-muted);
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.repository-card:hover::before {
  opacity: 1;
  animation: gradientBorder 3s ease infinite;
}

.repo-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.repo-name {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-accent-fg) 0%, var(--color-accent-emphasis) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 1.4;
}

.repository-card:hover .repo-name {
  filter: brightness(1.2);
  transform: translateX(3px);
}

.repo-private {
  background: var(--color-neutral-muted);
  color: var(--color-text-secondary);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: var(--border-radius);
  font-weight: 500;
  border: 1px solid var(--color-border-default);
}

.repo-description {
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
  font-size: 14px;
  max-width: 100%;
  flex-grow: 1;
  padding: 4px 0;
}

.repo-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.repo-language {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--color-text-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.repo-language:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--ui-card-border);
}

.language-dot {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: relative;
  transition: all 0.2s ease;
}

.repo-language:hover .language-dot {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.repo-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.repo-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      rgba(59, 130, 246, 0.1),
      rgba(139, 92, 246, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.repo-stat:hover {
  background: rgba(14, 165, 233, 0.05);
  color: var(--color-accent-fg);
  border-color: rgba(14, 165, 233, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.repo-stat:hover::before {
  opacity: 1;
}

.stat-icon {
  width: 1.125rem;
  height: 1.125rem;
  transition: transform 0.2s ease;
}

.repo-stat:hover .stat-icon {
  transform: scale(1.1);
}

.repo-updated-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
  background: rgba(255, 255, 255, 0.01);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px dashed rgba(255, 255, 255, 0.06);
  margin-left: auto;
}

.repo-updated-stat .calendar-icon {
  width: 1rem;
  height: 1rem;
  opacity: 0.8;
}

.repo-updated-stat:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.star-filled {
  color: var(--accent-400);
}

.repo-updated {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
  font-weight: 600;
  background: var(--ui-card-bg);
  padding: 8px 12px;
  border-radius: 12px;
  width: fit-content;
  border: 1px solid var(--ui-card-border);
}

/* Repository Details Styles */
.repository-details {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--color-bg-default);
}

.back-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--color-bg-subtle) 0%, var(--color-bg-elevated) 100%);
  border: 1px solid var(--color-border-default);
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  color: var(--color-text-primary);
  cursor: pointer;
  margin-bottom: 3rem;
  transition: all 0.3s ease;
  font-weight: 600;
  color: var(--gray-700);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.back-button:hover {
  background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-200) 100%);
  border-color: var(--primary-300);
  transform: translateX(-4px);
  color: var(--primary-800);
}

.back-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.repo-details-header {
  background: linear-gradient(135deg, var(--color-bg-elevated) 0%, var(--color-bg-subtle) 100%);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--color-border-default);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-medium);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.repo-details-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-500) 0%, var(--secondary-500) 50%, var(--accent-500) 100%);
}

.repo-title {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.repo-title h1 {
  font-size: 1.5rem;
  color: var(--color-text-primary);
  font-weight: 600;
  background: linear-gradient(135deg, var(--color-accent-fg) 0%, var(--color-accent-emphasis) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.repo-description {
  font-size: 1.25rem;
  color: var(--gray-700);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.repo-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.repo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary-600);
  text-decoration: none;
  font-weight: 600;
  background: var(--primary-50);
  padding: 0.75rem 1.25rem;
  border-radius: 16px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-100);
}

.repo-link:hover {
  background: var(--primary-100);
  border-color: var(--primary-200);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--primary-700);
}

.link-icon {
  width: 1.125rem;
  height: 1.125rem;
}

.repo-stats-detailed {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: var(--color-bg-subtle);
  border: 1.5px solid var(--color-border-default);
  border-radius: var(--border-radius-large);
  padding: 2rem 1.5rem;
  text-align: left;
  transition: box-shadow 0.2s, border-color 0.2s;
  box-shadow: var(--shadow-small);
}

.feature-card:hover {
  box-shadow: var(--shadow-medium);
  border-color: var(--color-accent-fg);
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  min-width: 140px;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent-fg), var(--color-done-fg));
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card .stat-icon {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--color-accent-fg);
  opacity: 0.85;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) translateY(-2px);
  opacity: 1;
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  background: linear-gradient(90deg, var(--color-accent-fg), var(--color-done-fg));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.stat-card .stat-label {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.stat-card:hover .stat-label {
  color: var(--color-text-primary);
}

.repo-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  background: rgba(255, 255, 255, 0.015);
  padding: 1.5rem 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.repo-metadata::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: linear-gradient(45deg,
      rgba(14, 165, 233, 0.05),
      rgba(59, 130, 246, 0.05),
      rgba(139, 92, 246, 0.05),
      rgba(236, 72, 153, 0.05));
  top: -25%;
  left: -25%;
  animation: rotate 10s linear infinite;
  z-index: -1;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.metadata-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.925rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.metadata-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.metadata-icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--color-accent-fg);
  opacity: 0.8;
  transition: all 0.2s ease;
}

.metadata-item:hover .metadata-icon {
  opacity: 1;
  transform: scale(1.1);
}

.updated-icon {
  color: var(--color-done-fg);
}

.repo-details-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

/* Language Stats */
.language-stats {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.language-stats h3 {
  margin-bottom: 1.5rem;
  color: var(--gray-900);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.language-bar {
  height: 12px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  margin-bottom: 1.5rem;
  background: var(--gray-200);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.language-segment {
  height: 100%;
  transition: width 0.5s ease;
  position: relative;
}

.language-segment:hover {
  filter: brightness(1.1);
}

.language-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.language-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  background: var(--gray-50);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.language-item:hover {
  background: var(--primary-50);
  transform: translateX(4px);
}

.language-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.language-name {
  flex: 1;
  font-weight: 600;
  color: var(--gray-800);
}

.language-percentage {
  color: var(--gray-600);
  font-weight: 500;
  background: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
}

/* Commits List */
.commits-list {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.commits-list h3 {
  margin-bottom: 1.5rem;
  color: var(--gray-900);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.commit-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
}

.commit-item:hover {
  border-color: var(--primary-300);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.15);
  background: rgba(255, 255, 255, 0.8);
}

.commit-item:last-child {
  margin-bottom: 0;
}

.commit-avatar .avatar-small {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 2px solid white;
}

.commit-info {
  flex: 1;
}

.commit-message {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
  font-size: 1.05rem;
  line-height: 1.4;
}

.commit-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  flex-wrap: wrap;
}

.commit-author {
  font-weight: 600;
  color: var(--primary-700);
}

.commit-date {
  background: var(--gray-100);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
}

.commit-sha {
  font-family: 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
  background: linear-gradient(135deg, var(--primary-100) 0%, var(--secondary-100) 100%);
  color: var(--primary-800);
  padding: 0.25rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid var(--primary-200);
}

/* Rate Limit Warning Styles */
.rate-limit-warning {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 3rem 2rem;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 3rem;
  align-items: flex-start;
}

@media (max-width: 1000px) {
  .profile-page {
    padding: 1rem 0.5rem;
  }

  .profile-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem 0;
  }

  .profile-sidebar {
    position: relative;
    top: 0;
    width: 100%;
    padding: 0;
    margin-bottom: 2rem;
    /* Add space between profile and repos */
  }

  .profile-main {
    padding: 0;
  }
}

@media (max-width: 640px) {
  .profile-page {
    padding: 0.5rem;
  }

  .profile-content {
    gap: 1.5rem;
  }
}

.profile-sidebar {
  position: sticky;
  top: 2.5rem;
  align-self: flex-start;
  z-index: 1;
  /* Lower z-index so it doesn't overlap content */
}

.profile-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
  /* Higher z-index to ensure it appears above sidebar */
}

.warning-content {
  padding: 1.5rem;
}

.warning-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.warning-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #d97706;
}

.warning-header h3 {
  flex: 1;
  margin: 0;
  color: #92400e;
  font-size: 1.125rem;
}

.dismiss-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #92400e;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dismiss-button:hover {
  background: rgba(146, 64, 14, 0.1);
  border-radius: 4px;
}

.warning-message {
  color: #92400e;
  margin-bottom: 1rem;
}

.warning-solutions {
  margin-bottom: 1rem;
}

.solution-item {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #92400e;
}

.solution-icon {
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.token-instructions {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 1rem;
  color: #92400e;
}

.token-instructions h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.token-instructions ol {
  margin: 0;
  padding-left: 1.25rem;
}

.token-instructions li {
  margin-bottom: 0.25rem;
}

.token-instructions a {
  color: #0969da;
}

.token-instructions code {
  background: rgba(0, 0, 0, 0.1);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.875rem;
}

/* Loading Spinner */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border-radius: var(--border-radius-xl);
  border: 2px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  color: white;
  text-align: center;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.loading-spinner {
  position: relative;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-text {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-align: center;
}

.spinner-ring {
  border: 4px solid rgba(var(--color-accent-rgb), 0.2);
  border-top: 4px solid var(--color-accent-fg);
  border-radius: 50%;
  animation: spin 1s linear infinite, pulse 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(var(--color-accent-rgb), 0.3);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.spinner-small .spinner-ring {
  width: 24px;
  height: 24px;
  border-width: 2px;
}

.spinner-medium .spinner-ring {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

.spinner-large .spinner-ring {
  width: 64px;
  height: 64px;
  border-width: 4px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.spinner-small .spinner-ring {
  width: 2rem;
  height: 2rem;
  border-width: 3px;
}

.spinner-medium .spinner-ring {
  width: 2.5rem;
  height: 2.5rem;
  border-width: 4px;
}

.spinner-large .spinner-ring {
  width: 3.5rem;
  height: 3.5rem;
  border-width: 4px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: var(--gray-700);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

/* Error and Empty States */
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(239, 68, 68, 0.02) 100%);
  border: 2px solid rgba(239, 68, 68, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.error-container h2 {
  color: var(--error);
  margin-bottom: 1rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.error-container p {
  color: var(--gray-600);
  font-size: 1.1rem;
  max-width: 400px;
  line-height: 1.5;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-50) 100%);
  border: 2px solid var(--gray-200);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.empty-state h2 {
  color: var(--gray-700);
  margin-bottom: 1rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.empty-state p {
  color: var(--gray-600);
  font-size: 1.1rem;
  max-width: 400px;
  line-height: 1.5;
}

.empty-commits {
  padding: 3rem;
  text-align: center;
  color: var(--gray-600);
  background: var(--gray-50);
  border-radius: 16px;
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1400px) {
  .profile-content {
    grid-template-columns: 350px 1fr;
    gap: 2rem;
  }
}

@media (max-width: 1200px) {
  .profile-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .user-profile {
    position: static;
  }

  .repo-details-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .profile-content {
    padding: 2rem;
  }

  .repository-details {
    padding: 2rem;
  }

  .repo-details-header {
    padding: 2rem;
  }
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .profile-header {
    padding: 2rem;
  }

  .repositories-container {
    padding: 2rem;
  }

  .repo-stats-detailed {
    justify-content: center;
  }

  .features {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {

  .profile-header-bar,
  .repository-details,
  .profile-content {
    padding: 1.5rem;
  }

  .repositories-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .repositories-controls {
    flex-direction: column;
    width: 100%;
  }

  .sort-select,
  .filter-select {
    width: 100%;
  }

  .repo-stats-detailed {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .stat-card {
    min-width: 120px;
    padding: 1.5rem;
  }

  .commit-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card {
    padding: 2rem;
  }

  .search-input {
    font-size: 1.1rem;
    padding: 1rem 1rem 1rem 3rem;
  }

  .profile-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .stat-item {
    min-width: 140px;
  }

  .repo-links {
    flex-direction: column;
  }

  .repo-metadata {
    flex-direction: column;
    gap: 1rem;
  }

  .repo-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .home-page {
    padding: 1.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .feature-card h3 {
    font-size: 1.5rem;
  }

  .profile-header {
    padding: 1.5rem;
  }

  .profile-name {
    font-size: 1.75rem;
  }

  .profile-username {
    font-size: 1.25rem;
  }

  .avatar-large {
    width: 8rem;
    height: 8rem;
  }

  .repositories-container {
    padding: 1.5rem;
  }

  .repositories-header h2 {
    font-size: 1.5rem;
  }

  .repositories-grid {
    grid-template-columns: 1fr;
  }

  .repository-card {
    padding: 1.5rem;
  }

  .repo-name {
    font-size: 1.25rem;
  }

  .repo-stats {
    gap: 8px;
    justify-content: flex-start;
  }

  .repo-language,
  .repo-stat,
  .repo-updated-stat {
    padding: 4px 8px;
    font-size: 0.8rem;
  }

  .language-dot {
    width: 0.75rem;
    height: 0.75rem;
  }

  .stat-icon {
    width: 0.9rem;
    height: 0.9rem;
  }

  .repo-title h1 {
    font-size: 1.2 rem;
  }

  .back-button {
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 480px) {
  .home-page {
    padding: 1rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .repo-updated-stat {
    width: 100%;
    justify-content: center;
    margin: 0.5rem 0 0 0;
    padding: 0.5rem;
  }

  .update-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.4;
  }

  .update-date-value {
    font-weight: 600;
    color: var(--color-text-secondary);
  }

  .search-container {
    max-width: 100vw;
    border-radius: 12px;
    padding: 0.15rem 0.15rem 0.15rem 0.5rem;
    min-width: 0;
  }

  .search-input {
    font-size: 0.95rem;
    padding: 0.65rem 0.5rem 0.65rem 2rem;
    border-radius: 0.75rem;
  }

  .search-icon {
    left: 8px;
    width: 1rem;
    height: 1rem;
  }

  .search-results {
    border-radius: 0.75rem;
    max-height: 220px;
    font-size: 0.93rem;
  }
}

/* --- End Responsive Search Bar Fixes --- */
/ *   A p p   L a y o u t   w i t h   N a v b a r   * /     . a p p    {
           m i n - h e i g h t :    1 0 0 v h ;
           d i s p l a y :    f l e x ;
           f l e x - d i r e c t i o n :    c o l u m n ;
           b a c k g r o u n d :    v a r ( - - c o l o r - b g - d e f a u l t ) ;
       
}

         . a p p - c o n t e n t    {
           f l e x :    1 ;
           p a d d i n g - t o p :    1 r e m ;
       
}

         / *   E n s u r e   p r o p e r   p a d d i n g   i n   v a r i o u s   r o u t e s   * /     . h o m e - c o n t a i n e r ,
     . p r o f i l e - c o n t a i n e r ,
     . r e p o s i t o r y - d e t a i l s    {
           p a d d i n g - t o p :    1 r e m ;
           m a x - w i d t h :    1 4 0 0 p x ;
           m a r g i n :    0   a u t o ;
       
}

         / *   N a v b a r   l o g o   u p d a t e   * /     . n a v - l o g o    {
           d i s p l a y :    f l e x ;
           a l i g n - i t e m s :    c e n t e r ;
           g a p :    0 . 5 r e m ;
       
}

         / *   A d d   G i t H u b   i c o n   t o   t h e   l o g o   * /     . n a v - l o g o - i c o n    {
           w i d t h :    1 . 5 r e m ;
           h e i g h t :    1 . 5 r e m ;
       
}


     /* Basic styling */
.background-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.svg-element {
    position: absolute;
    opacity: 0.4;
    pointer-events: none;
}

.svg-path {
    stroke: var(--color-accent-fg);
    fill: transparent;
    opacity: 0.3;
}

.svg-element-1 {
    top: -100px;
    left: -100px;
}

.svg-element-3 {
    top: 30%;
    left: 35%;
    opacity: 0.3;
}

.code-bracket {
    position: absolute;
    font-family: "Consolas", monospace;
    font-size: 2.5rem;
    color: var(--color-accent-muted);
    opacity: 0.25;
    pointer-events: none;
    font-weight: 600;
}

.code-bracket-1 {
    top: 15%;
    left: 20%;
    font-size: 3rem;
}

.code-bracket-2 {
    bottom: 25%;
    right: 20%;
    font-size: 2.75rem;
}

.code-bracket-3 {
    top: 40%;
    right: 15%;
    font-size: 2rem;
    height: 450px;
    top: 20%;
    left: 40%;
    animation: float-4 16s ease-in-out infinite alternate-reverse;
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    z-index: 3;
    pointer-events: none;
}

/* Code particles styling */
.code-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.code-particle {
    position: absolute;
    color: var(--color-border-default);
    opacity: 0.25;
    font-family: monospace;
    font-weight: 600;
    font-size: 1.5rem;
    animation-duration: 15s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    animation-iteration-count: infinite;
    filter: blur(0.5px);
}

.code-particle-1 {
    top: 15%;
    left: 15%;
    animation-name: float-particle-1;
    font-size: 2.5rem;
}

.code-particle-2 {
    top: 40%;
    right: 20%;
    animation-name: float-particle-2;
    font-size: 2rem;
}

.code-particle-3 {
    animation-name: float-particle-4;
    font-size: 2.2rem;
}

.code-particle-5 {
    top: 30%;
    left: 50%;
    animation-name: float-particle-5;
    font-size: 2.4rem;
}

@keyframes float-1 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.15;
    }

    50% {
        transform: translate(30px, 25px) scale(1.05);
        opacity: 0.18;
    }

    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.15;
    }
}

@keyframes float-2 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.15;
    }

    50% {
        transform: translate(-25px, 20px) scale(1.08);
        opacity: 0.2;
    }

    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.15;
    }
}

@keyframes float-3 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.12;
    }

    50% {
        transform: translate(15px, -20px) scale(1.03);
        opacity: 0.19;
    }

    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.12;
    }
}

@keyframes float-4 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.14;
    }

    50% {
        transform: translate(-20px, 15px) scale(1.06) rotate(5deg);
        opacity: 0.19;
    }

    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.14;
    }
}

@keyframes float-particle-1 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.25;
    }

    33% {
        transform: translate(20px, 10px) scale(1.05);
        opacity: 0.3;
    }

    66% {
        transform: translate(-10px, 20px) scale(0.98);
        opacity: 0.22;
    }

    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.25;
    }
}

@keyframes float-particle-2 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.22;
    }

    33% {
        transform: translate(-15px, 5px) scale(1.03);
        opacity: 0.28;
    }

    66% {
        transform: translate(5px, -15px) scale(0.97);
        opacity: 0.2;
    }

    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.22;
    }
}

@keyframes float-particle-3 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.2;
    }

    33% {
        transform: translate(10px, 20px) scale(1.04);
        opacity: 0.26;
    }

    66% {
        transform: translate(-15px, -5px) scale(0.97);
        opacity: 0.18;
    }

    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.2;
    }
}

@keyframes float-particle-4 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.24;
    }

    33% {
        transform: translate(-10px, 15px) scale(1.05);
        opacity: 0.29;
    }

    66% {
        transform: translate(15px, -8px) scale(0.95);
        opacity: 0.2;
    }

    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.24;
    }
}

@keyframes float-particle-5 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.27;
    }

    33% {
        transform: translate(12px, -18px) scale(1.06);
        opacity: 0.32;
    }

    66% {
        transform: translate(-8px, 12px) scale(0.96);
        opacity: 0.23;
    }

    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.27;
    }
}

.feature-card {
    background-color: rgba(var(--color-bg-default-rgb), 0.7);
    backdrop-filter: blur(12px);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--color-border-default);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-small);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent-fg), var(--color-accent-emphasis));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.demo-section {
    margin-top: 5.5rem;
    text-align: center;
    background: rgba(var(--color-bg-default-rgb), 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid var(--color-border-default);
    border-radius: var(--border-radius-large);
    padding: 3rem 1.5rem;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-small);
    overflow: hidden;
}

.demo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            rgba(var(--color-accent-fg-rgb), 0) 0%,
            rgba(var(--color-accent-fg-rgb), 0.05) 50%,
            rgba(var(--color-accent-fg-rgb), 0) 100%);
    pointer-events: none;
}

.demo-section h3 {
    color: var(--color-text-primary);
    margin-bottom: 2.2rem;
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-accent-fg) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.demo-users {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.blurred-orange-circle {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 220px;
    height: 220px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
    filter: blur(32px);
    transition: width 0.3s, height 0.3s;
}

@media (max-width: 900px) {
    .blurred-orange-circle {
        width: 140px;
        height: 140px;
        filter: blur(24px);
    }
}

@media (max-width: 600px) {
    .blurred-orange-circle {
        width: 90px;
        height: 90px;
        filter: blur(18px);
    }
}

@keyframes orange-float {
    0% {
        transform: scale(1) translateY(0);
    }

    100% {
        transform: scale(1.08) translateY(-12px);
    }
}/* Repository styles */
.repositories-container {
    position: relative;
    padding: 2rem 0;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 1;
}

.repository-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    flex-wrap: wrap;
    gap: 1rem;
}

.repository-header h2 {
    font-size: 1.75rem;
    margin: 0;
    color: var(--color-text-primary);
}

.repo-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.repositories-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    width: 100%;
}

.repository-card {
    border: 1px solid var(--ui-card-border);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(var(--color-bg-default-rgb), 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-small);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    min-height: 180px;
}

.repository-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
            var(--color-accent-fg),
            var(--color-accent-emphasis),
            var(--color-success-fg),
            var(--color-accent-fg));
    background-size: 300% 100%;
    opacity: 0;
    transition: all 0.5s ease;
}

.repository-card:hover {
    border-color: var(--color-accent-muted);
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.repository-card:hover::before {
    opacity: 1;
    animation: gradientBorder 3s ease infinite;
}

.repo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.repo-name {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-accent-fg) 0%, var(--color-accent-emphasis) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.4;
}

.repository-card:hover .repo-name {
    background-size: 200% 100%;
    animation: gradientText 3s ease infinite;
}

.repo-description {
    color: var(--color-text-secondary);
    font-size: 14px;
    margin-bottom: auto;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.repo-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.repo-language {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.language-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(var(--color-border-rgb), 0.3);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.repo-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.repo-stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.repo-stat svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Repository animations */
@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Repository responsive styles */
@media (max-width: 768px) {
    .repositories-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .repository-card {
        padding: 20px;
        min-height: 160px;
    }

    .repository-header h2 {
        font-size: 1.5rem;
    }

    .repo-controls {
        width: 100%;
        justify-content: space-between;
    }
}

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

    .repository-card {
        padding: 16px;
    }

    .repo-name {
        font-size: 16px;
    }

    .repo-description {
        font-size: 13px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .repo-footer {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .repo-stats {
        width: 100%;
        justify-content: space-between;
    }
}/* Repository Detail Page Styles */
.repository-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.repo-detail-header {
    background: rgba(var(--color-bg-elevated-rgb), 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--ui-card-border);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(135deg,
            rgba(var(--color-accent-rgb), 0.05) 0%,
            rgba(var(--color-bg-elevated-rgb), 0.8) 40%,
            rgba(var(--color-accent-rgb), 0.1) 100%);
    animation: gradientShift 10s ease infinite;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg,
            var(--color-accent-fg),
            var(--color-accent-emphasis),
            var(--color-accent-fg)) 1;
    transition: all 0.3s ease;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.repo-detail-title {
    font-size: 2rem;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--color-accent-fg) 0%, var(--color-accent-emphasis) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.repo-owner-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius-medium);
    background: linear-gradient(135deg,
            rgba(var(--color-accent-rgb), 0.08) 0%,
            rgba(var(--color-bg-subtle-rgb), 0.4) 100%);
    border: 1px solid var(--ui-card-border);
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.repo-owner-link:hover {
    border-color: var(--color-accent-fg);
    background: rgba(var(--color-accent-rgb), 0.1);
    transform: translateY(-2px);
    color: var(--color-accent-fg);
    box-shadow: 0 3px 10px rgba(var(--color-accent-rgb), 0.15);
}

.repo-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1rem 0;
    color: var(--color-text-secondary);
}

.repo-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.repo-meta-item svg {
    width: 18px;
    height: 18px;
    color: var(--color-text-tertiary);
}

.repo-detail-description {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}

.repo-detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.repo-stat-card {
    background: linear-gradient(135deg,
            rgba(var(--color-bg-elevated-rgb), 0.7) 0%,
            rgba(var(--color-card-bg-rgb), 0.5) 50%,
            rgba(var(--color-accent-rgb), 0.05) 100%);
    border-radius: var(--border-radius-medium);
    border: 1px solid var(--ui-card-border);
    padding: 1.25rem;
    min-width: 140px;
    flex: 1;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-small);
}

.repo-stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-accent-muted);
    box-shadow: 0 8px 15px rgba(var(--color-accent-rgb), 0.1);
    background: linear-gradient(135deg,
            rgba(var(--color-accent-rgb), 0.08) 0%,
            rgba(var(--color-card-bg-rgb), 0.6) 50%,
            rgba(var(--color-accent-rgb), 0.1) 100%);
}

.repo-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--color-accent-fg) 0%, var(--color-accent-emphasis) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.repo-stat-label {
    font-size: 0.9rem;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.repo-content-tabs {
    margin-top: 2rem;
    border-bottom: 1px solid var(--ui-card-border);
}

.tab-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.tab-button {
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    border-radius: var(--border-radius-medium) var(--border-radius-medium) 0 0;
    background: linear-gradient(to bottom,
            rgba(var(--color-bg-subtle-rgb), 0.2) 0%,
            transparent 100%);
}

.tab-button:hover {
    color: var(--color-accent-fg);
    background: linear-gradient(to bottom,
            rgba(var(--color-accent-rgb), 0.1) 0%,
            transparent 100%);
}

.tab-button.active {
    color: var(--color-accent-fg);
    border-bottom: 2px solid var(--color-accent-fg);
    background: linear-gradient(to bottom,
            rgba(var(--color-accent-rgb), 0.15) 0%,
            rgba(var(--color-accent-rgb), 0.05) 100%);
    font-weight: 700;
}

.repo-content-section {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg,
            rgba(var(--color-bg-elevated-rgb), 0.7) 0%,
            rgba(var(--color-bg-default-rgb), 0.6) 100%);
    border-radius: var(--border-radius-medium);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--ui-card-border);
    box-shadow: var(--shadow-small);
}

/* Back button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent-fg);
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
    border-radius: var(--border-radius-small);
    transition: all 0.2s ease;
}

.back-button:hover {
    background: rgba(var(--color-accent-rgb), 0.1);
}

.back-button svg {
    width: 16px;
    height: 16px;
}

/* Responsive styles for repository detail */
@media (max-width: 768px) {
    .repo-detail-header {
        padding: 1.25rem;
        background-image: linear-gradient(135deg,
                rgba(var(--color-accent-rgb), 0.03) 0%,
                rgba(var(--color-bg-elevated-rgb), 0.8) 40%,
                rgba(var(--color-accent-rgb), 0.07) 100%);
    }

    .repo-detail-title {
        font-size: 1.5rem;
        flex-wrap: wrap;
    }

    .repo-detail-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .repo-stat-card {
        min-width: 120px;
        padding: 1rem;
    }

    .repo-stat-value {
        font-size: 1.5rem;
    }

    .repo-content-section {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .repository-details {
        padding: 1rem 0.75rem;
    }

    .repo-detail-header {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .repo-detail-title {
        font-size: 1.3rem;
    }

    .repo-detail-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .repo-detail-stats {
        grid-template-columns: 1fr;
    }

    .tab-container {
        gap: 0.5rem;
    }

    .tab-button {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }

    .repo-content-section {
        padding: 1rem;
        margin-top: 1rem;
    }

    .repo-owner-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }
}/* Language Statistics Styles */
.language-stats {
    background: rgba(var(--color-bg-elevated-rgb), 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--ui-card-border);
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.language-stats h3 {
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-accent-fg) 0%, var(--color-accent-emphasis) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.language-stats h3 svg {
    color: var(--color-accent-fg);
    width: 24px;
    height: 24px;
}

.language-bar {
    height: 20px;
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    display: flex;
    box-shadow: var(--shadow-small);
}

.language-segment {
    height: 100%;
    transition: all 0.3s ease;
}

.language-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-medium);
    background: rgba(var(--color-bg-default-rgb), 0.4);
    border: 1px solid var(--ui-card-border);
    transition: all 0.2s ease;
}

.language-item:hover {
    transform: translateY(-2px);
    border-color: var(--color-accent-muted);
    box-shadow: var(--shadow-small);
}

.language-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.language-name {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 0.95rem;
}

.language-percentage {
    margin-left: auto;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive styles */
@media (max-width: 768px) {
    .language-stats {
        padding: 1.5rem;
    }

    .language-list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }

    .language-item {
        padding: 0.6rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .language-stats {
        padding: 1.25rem;
    }

    .language-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.5rem;
    }

    .language-bar {
        height: 16px;
        border-radius: 8px;
    }

    .language-stats h3 {
        font-size: 1.25rem;
    }
}

/* Language Colors */
.lang-javascript {
    background-color: var(--color-lang-javascript);
}

.lang-typescript {
    background-color: var(--color-lang-typescript);
}

.lang-python {
    background-color: var(--color-lang-python);
}

.lang-java {
    background-color: var(--color-lang-java);
}

.lang-csharp {
    background-color: var(--color-lang-csharp);
}

.lang-cpp {
    background-color: var(--color-lang-cpp);
}

.lang-go {
    background-color: var(--color-lang-go);
}

.lang-ruby {
    background-color: var(--color-lang-ruby);
}

.lang-php {
    background-color: var(--color-lang-php);
}

.lang-swift {
    background-color: var(--color-lang-swift);
}

.lang-kotlin {
    background-color: var(--color-lang-kotlin);
}

.lang-rust {
    background-color: var(--color-lang-rust);
}

.lang-html {
    background-color: var(--color-lang-html);
}

.lang-css {
    background-color: var(--color-lang-css);
}

.lang-shell {
    background-color: var(--color-lang-shell);
}

/* Other language colors fallback */
.lang-other {
    background: linear-gradient(135deg, var(--color-accent-fg) 0%, var(--color-accent-emphasis) 100%);
}/* Repository commits styling */

.commits-list {
    margin-top: 2rem;
    background: rgba(var(--color-bg-elevated-rgb), 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--border-radius-large);
    padding: 1.75rem;
    border: 1px solid var(--ui-card-border);
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.commits-list h3 {
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-accent-fg) 0%, var(--color-accent-emphasis) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.commits-list h3 svg {
    color: var(--color-accent-fg);
    width: 24px;
    height: 24px;
}

.commit-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--ui-card-border);
    border-radius: var(--border-radius-medium);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(var(--color-bg-default-rgb), 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.commit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
            var(--color-accent-fg),
            var(--color-accent-emphasis),
            var(--color-success-fg),
            var(--color-accent-fg));
    background-size: 300% 100%;
    opacity: 0;
    transition: all 0.5s ease;
}

.commit-item:hover {
    border-color: var(--color-accent-muted);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.commit-item:hover::before {
    opacity: 1;
    animation: gradientBorder 3s ease infinite;
}

.commit-item:last-child {
    margin-bottom: 0;
}

.commit-avatar {
    flex-shrink: 0;
}

.commit-avatar .avatar-small {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent-fg);
    box-shadow: var(--shadow-small);
    background-color: var(--color-bg-subtle);
}

.commit-info {
    flex: 1;
    overflow: hidden;
}

.commit-message {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
    font-size: 1rem;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.commit-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.commit-author {
    font-weight: 600;
    color: var(--color-accent-fg);
}

.commit-date {
    background: rgba(var(--color-bg-subtle-rgb), 0.7);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.8rem;
    border: 1px solid rgba(var(--color-border-rgb), 0.2);
    transition: all 0.2s ease;
}

.commit-item:hover .commit-date {
    background: rgba(var(--color-accent-rgb), 0.1);
    border-color: rgba(var(--color-accent-rgb), 0.2);
}

.commit-sha {
    font-family: 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
    background: linear-gradient(135deg,
            rgba(var(--color-accent-rgb), 0.15) 0%,
            rgba(var(--color-accent-emphasis-rgb), 0.15) 100%);
    color: var(--color-accent-fg);
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    border: 1px solid rgba(var(--color-accent-rgb), 0.2);
    transition: all 0.2s ease;
}

.commit-item:hover .commit-sha {
    background: linear-gradient(135deg,
            rgba(var(--color-accent-rgb), 0.2) 0%,
            rgba(var(--color-accent-emphasis-rgb), 0.2) 100%);
    box-shadow: var(--shadow-xsmall);
}

/* Empty state for no commits */
.empty-commits {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-tertiary);
    background: rgba(var(--color-bg-subtle-rgb), 0.3);
    border-radius: var(--border-radius-medium);
    border: 1px dashed var(--ui-card-border);
}

.empty-commits svg {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    color: var(--color-text-tertiary);
}

.empty-commits p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Language color improvements */
.language-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(var(--color-border-rgb), 0.5);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Responsive styles for commits */
@media (max-width: 768px) {
    .commits-list {
        padding: 1.25rem;
    }

    .commit-item {
        padding: 1rem;
    }

    .commit-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .commits-list h3 {
        font-size: 1.25rem;
    }

    .commit-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .commit-avatar {
        align-self: flex-start;
    }

    .commit-message {
        font-size: 0.95rem;
    }
}/* Mobile-specific adjustments for GitPreview */

/* Common mobile styles */
@media (max-width: 768px) {
    .container {
        padding: 0.75rem;
    }

    /* Improved spacing for mobile */
    .profile-container,
    .repositories-container,
    .repository-details {
        padding: 1rem 0.75rem;
    }

    /* Fix navbar on mobile */
    .navbar {
        padding: 0.75rem 1rem;
    }

    /* Ensure proper z-index for UI elements */
    .profile-bg {
        z-index: 0;
    }

    .repositories-container {
        z-index: 1;
        position: relative;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }

    /* More compact spacing for small screens */
    .profile-container,
    .repositories-container,
    .repository-details {
        padding: 0.75rem 0.5rem;
    }

    /* Profile adjustments */
    .cool-profile-content {
        padding: 1.25rem 1rem 1rem;
    }

    .cool-profile-name {
        font-size: 1.5rem;
    }

    .cool-profile-username {
        font-size: 1rem;
    }

    /* Navbar adjustments */
    .navbar-search input {
        width: 100%;
        max-width: none;
    }

    /* Single column layout for any multi-column content */
    .multi-column-layout {
        grid-template-columns: 1fr;
    }
}

/* Fix for any fixed or sticky elements to ensure they don't cause overflow */
.fixed-element,
.sticky-element {
    width: 100%;
    left: 0;
    right: 0;
}

/* Ensure buttons and interactive elements are easier to tap on mobile */
@media (max-width: 768px) {

    button,
    .interactive-element,
    .nav-link,
    .repo-controls button {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Add more space between interactive elements */
    .button-group {
        gap: 0.75rem;
    }
}

/* Fix any overflow issues */
body,
html {
    overflow-x: hidden;
}

.overflow-container {
    overflow-x: hidden;
    width: 100%;
}