/* ==========================================================================
   Skillix Hub - CSS Styles
   shadcn/ui inspired design system
   ========================================================================== */

/* --------------------------------------------------------------------------
   Vue v-cloak - Hide uncompiled templates until Vue mounts
   -------------------------------------------------------------------------- */
[v-cloak] {
    display: none !important;
}

/* --------------------------------------------------------------------------
   CSS Variables - Light Theme (Default)
   -------------------------------------------------------------------------- */
:root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 36%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 222.2 84% 4.9%;
    --radius: 0.5rem;
}

/* --------------------------------------------------------------------------
   CSS Variables - Dark Theme
   -------------------------------------------------------------------------- */
.dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;
    --primary: 210 40% 98%;
    --primary-foreground: 222.2 47.4% 11.2%;
    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;
    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 212.7 26.8% 83.9%;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Accessibility - Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --------------------------------------------------------------------------
   Language Toggle Styles
   -------------------------------------------------------------------------- */
.lang-zh {
    display: inline;
}

.lang-en {
    display: none;
}

[data-lang="en"] .lang-zh {
    display: none;
}

[data-lang="en"] .lang-en {
    display: inline;
}

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid hsl(var(--border));
    background-color: hsl(var(--background) / 0.95);
    backdrop-filter: blur(8px);
}

@supports (backdrop-filter: blur(8px)) {
    .header {
        background-color: hsl(var(--background) / 0.6);
    }
}

.header-inner {
    display: flex;
    height: 3.5rem;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1.5rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.logo svg {
    height: 1.5rem;
    width: 1.5rem;
}

.logo span {
    font-weight: 700;
}

.nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
}

.nav a {
    color: hsl(var(--foreground) / 0.6);
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}

.nav a:hover {
    color: hsl(var(--foreground) / 0.8);
}

.header-actions {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.btn:focus-visible {
    outline: none;
    ring: 2px solid hsl(var(--ring));
    ring-offset: 2px;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    height: 2.75rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.btn-primary:hover {
    background-color: hsl(var(--primary) / 0.9);
}

.btn-outline {
    border: 1px solid hsl(var(--input));
    background-color: hsl(var(--background));
    height: 2.75rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.btn-outline:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.btn-ghost {
    background-color: transparent;
    height: 2.25rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.btn-ghost:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.btn-icon {
    height: 2.25rem;
    width: 2.25rem;
    padding: 0;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    padding: 1.5rem;
}

.card-hover {
    transition: box-shadow 0.2s;
    cursor: pointer;
}

.card-hover:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.card-skill {
    display: flex;
    flex-direction: column;
    padding: 0;
    min-width: 0;
}

.card-skill-body {
    flex: 1;
    padding: 1.5rem;
}

.card-skill-footer {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid hsl(var(--border));
    margin-top: auto;
}

.card-skill-footer .text-xs {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-dashed {
    border-style: dashed;
    background-color: hsl(var(--muted) / 0.5);
}

/* --------------------------------------------------------------------------
   Badge
   -------------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid hsl(var(--border));
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    transition: colors 0.2s;
}

.badge-muted {
    background-color: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    border: none;
}

/* --------------------------------------------------------------------------
   Icon Container
   -------------------------------------------------------------------------- */
.icon-container {
    display: flex;
    height: 3rem;
    width: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background-color: hsl(var(--muted));
    margin-bottom: 1rem;
}

.icon-container svg {
    height: 1.5rem;
    width: 1.5rem;
}

.icon-container-sm {
    height: 2.5rem;
    width: 2.5rem;
}

.icon-container-sm svg {
    height: 1.25rem;
    width: 1.25rem;
}

/* --------------------------------------------------------------------------
   Code Block
   -------------------------------------------------------------------------- */
.code-block {
    border-radius: var(--radius);
    background-color: hsl(var(--muted));
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    overflow-x: auto;
}

.code-block .comment {
    color: hsl(var(--muted-foreground));
}

code {
    position: relative;
    border-radius: calc(var(--radius) - 2px);
    background-color: hsl(var(--muted));
    padding: 0.2rem 0.3rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Alert / Info Box
   -------------------------------------------------------------------------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--muted) / 0.5);
    padding: 1rem;
}

.alert svg {
    height: 1.25rem;
    width: 1.25rem;
    color: hsl(var(--muted-foreground));
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.alert p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* --------------------------------------------------------------------------
   Section Styles
   -------------------------------------------------------------------------- */
.section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    max-width: 58rem;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.1;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 1.875rem;
    }
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-description {
    max-width: 85%;
    line-height: 1.75;
    color: hsl(var(--muted-foreground));
}

@media (min-width: 640px) {
    .section-description {
        font-size: 1.125rem;
        line-height: 1.75;
    }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

@media (min-width: 768px) {
    .hero {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 0.5rem;
    background-color: hsl(var(--muted));
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-description {
    max-width: 42rem;
    line-height: 1.75;
    color: hsl(var(--muted-foreground));
}

@media (min-width: 640px) {
    .hero-description {
        font-size: 1.25rem;
        line-height: 2;
    }
}

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

/* --------------------------------------------------------------------------
   Grid Layouts
   -------------------------------------------------------------------------- */
.grid-skills {
    display: grid;
    gap: 1rem;
    margin-top: 3rem;
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .grid-skills {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .grid-skills {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid-install {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .grid-install {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    border-top: 1px solid hsl(var(--border));
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .footer {
        padding-top: 0;
        padding-bottom: 0;
    }
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        height: 4rem;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo svg {
    height: 1.25rem;
    width: 1.25rem;
}

.footer-logo span {
    font-weight: 600;
}

.footer-copyright {
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.75;
    color: hsl(var(--muted-foreground));
}

/* --------------------------------------------------------------------------
   Theme Toggle Icon Animation
   -------------------------------------------------------------------------- */
.theme-icon-sun {
    transform: rotate(0deg) scale(1);
    transition: transform 0.2s;
}

.dark .theme-icon-sun {
    transform: rotate(-90deg) scale(0);
}

.theme-icon-moon {
    position: absolute;
    transform: rotate(90deg) scale(0);
    transition: transform 0.2s;
}

.dark .theme-icon-moon {
    transform: rotate(0deg) scale(1);
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-muted {
    color: #64748b !important; /* slate-500 - good contrast in light mode */
}

html.dark .text-muted,
.dark .text-muted {
    color: #94a3b8 !important; /* slate-400 - good contrast in dark mode */
}

/* --------------------------------------------------------------------------
   Modal Styles
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1rem;
}

.modal-content {
    background-color: hsl(var(--card));
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    padding: 1.5rem;
    max-width: 32rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modal-enter 0.2s ease-out;
}

@keyframes modal-enter {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: hsl(var(--muted-foreground));
    padding: 0.25rem;
    border-radius: var(--radius);
    transition: background-color 0.2s;
}

.modal-close:hover {
    background-color: hsl(var(--muted));
}

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

.modal-header .icon-container {
    margin-bottom: 0;
}

/* Badge Primary Variant */
.badge-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: none;
}

/* Border utilities */
.border-t {
    border-top-width: 1px;
}

.border-border {
    border-color: hsl(var(--border));
}

.pt-3 {
    padding-top: 0.75rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.list-disc {
    list-style-type: disc;
}

.list-inside {
    list-style-position: inside;
}

.bg-muted {
    background-color: hsl(var(--muted));
}

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mr-2 { margin-right: 0.5rem; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.flex-shrink-0 { flex-shrink: 0; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-xl { font-size: 1.25rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* --------------------------------------------------------------------------
   Enhanced Modal Styles (shadcn/ui Style Consistency)
   Using CSS variables from shadcn/ui design system
   Clean, minimal design with consistent spacing
   -------------------------------------------------------------------------- */

/* Modal Container - shadcn Dialog style */
.modal-enhanced {
    max-width: 42rem;
    width: 100%;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 3rem);
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--card));
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Scrollable Content Area */
.modal-scroll-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: hsl(var(--border)) transparent;
}

.modal-scroll-area::-webkit-scrollbar {
    width: 8px;
}

.modal-scroll-area::-webkit-scrollbar-track {
    background: transparent;
}

.modal-scroll-area::-webkit-scrollbar-thumb {
    background-color: hsl(var(--border));
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.modal-scroll-area::-webkit-scrollbar-thumb:hover {
    background-color: hsl(var(--muted-foreground) / 0.4);
}

/* Header Block - shadcn DialogHeader style */
.modal-header-block {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.modal-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: hsl(var(--muted));
    border-radius: var(--radius);
    flex-shrink: 0;
}

.modal-icon-wrapper svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: hsl(var(--foreground));
}

.modal-header-content {
    flex: 1;
    min-width: 0;
}

.modal-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* shadcn DialogTitle style */
.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: hsl(var(--foreground));
    letter-spacing: -0.025em;
}

.modal-version {
    display: inline-flex;
    padding: 0.125rem 0.5rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* shadcn DialogDescription style */
.modal-description {
    margin-top: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: hsl(var(--muted-foreground));
}

/* Close Button - shadcn style */
.modal-enhanced .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
    opacity: 0.7;
}

.modal-enhanced .modal-close:hover {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    opacity: 1;
}

.modal-enhanced .modal-close:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px hsl(var(--ring));
}

/* Content Blocks */
.modal-block {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.modal-block:last-of-type {
    border-bottom: none;
}

.block-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.block-header svg {
    color: hsl(var(--muted-foreground));
}

/* Install Block */
.install-block {
    background: hsl(var(--muted) / 0.3);
}

.install-block .block-header svg {
    color: hsl(var(--primary));
}

.install-command {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--input));
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.install-command:hover {
    border-color: hsl(var(--ring));
}

.install-command:focus-visible {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.install-command code {
    font-size: 0.8rem;
    background: none;
    padding: 0;
    color: hsl(var(--foreground));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: hsl(var(--secondary));
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--secondary-foreground));
    flex-shrink: 0;
    transition: background-color 150ms ease;
}

.install-command:hover .copy-btn {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

/* Features List */
.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: hsl(var(--secondary));
    border-radius: var(--radius);
    font-size: 0.8rem;
    color: hsl(var(--secondary-foreground));
    transition: background-color 150ms ease;
}

.feature-chip:hover {
    background: hsl(var(--secondary) / 0.8);
}

.feature-chip svg {
    color: hsl(142.1 76.2% 36.3%); /* green-600 */
    flex-shrink: 0;
}

/* Scripts Chips */
.scripts-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.script-chip {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: hsl(var(--muted));
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: hsl(var(--muted-foreground));
}

/* Use Cases Block */
.use-cases-block {
    border-bottom: none;
}

.use-case-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

/* shadcn Tabs style */
.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition: all 150ms ease;
}

.nav-pill:hover {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
}

.nav-pill:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px hsl(var(--ring));
}

.nav-pill.active {
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.pill-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    background: hsl(var(--muted));
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 600;
}

.nav-pill.active .pill-number {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

/* Chat Preview */
.chat-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: hsl(var(--muted) / 0.3);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
}

.chat-message {
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
}

.message-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.message-avatar.user {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.message-avatar.ai {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.message-content {
    flex: 1;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
    line-height: 1.5;
}

.user-message .message-content {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.ai-message .message-content {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    color: hsl(var(--card-foreground));
}

.ai-response {
    white-space: pre-wrap;
    font-family: inherit;
    margin: 0;
}

/* Modal Footer - shadcn DialogFooter style */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid hsl(var(--border));
    flex-shrink: 0;
}

.btn-lg {
    height: 2.5rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    font-size: 0.875rem;
    gap: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .modal-enhanced {
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 2rem);
    }
    
    .modal-header-block {
        padding: 1.25rem;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    .modal-block {
        padding: 1rem 1.25rem;
    }
    
    .modal-footer {
        padding: 1rem 1.25rem;
        flex-direction: column-reverse;
    }
    
    .modal-footer .btn-lg {
        width: 100%;
        justify-content: center;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .modal-enhanced,
    .modal-enhanced * {
        transition-duration: 0.01ms !important;
    }
}
