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

/* Accessibility: Screen reader only class */
.sr-only:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* Base Typography and Colors */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #24292f;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #0366d6 0%, #2188ff 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Navigation Styles */
nav {
    background-color: #f6f8fa;
    border-bottom: 1px solid #d0d7de;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.search-container,
.filter-container {
    flex: 1;
    min-width: 200px;
}

/* Form Controls */
input, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 0.875rem;
    background-color: #ffffff;
    transition: border-color 0.2s ease;
}

input:focus,
select:focus {
    outline: 2px solid #0366d6;
    outline-offset: 2px;
    border-color: #0366d6;
}

input[type="search"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23656d76' viewBox='0 0 16 16'%3e%3cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'%3e%3c/path%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.stats {
    margin-bottom: 1.5rem;
    color: #656d76;
    font-size: 0.875rem;
}

/* Content Grid */
.content-grid {
    margin-bottom: 2rem;
}

.loading {
    text-align: center;
    padding: 3rem 0;
    color: #656d76;
    font-size: 1.125rem;
}

/* Item Cards */
.item-card {
    background: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.item-card:hover {
    border-color: #0366d6;
    box-shadow: 0 4px 12px rgba(3, 102, 214, 0.1);
    transform: translateY(-1px);
}

.item-card:focus-within {
    border-color: #0366d6;
    box-shadow: 0 0 0 2px rgba(3, 102, 214, 0.3);
}

.item-card:focus {
    outline: 2px solid #0366d6;
    outline-offset: 2px;
}

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

.item-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0366d6;
    text-decoration: none;
    flex: 1;
    margin: 0;
}

.item-card:hover .item-title {
    color: #0256cc;
}

.item-type {
    background-color: #f1f8ff;
    color: #0366d6;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
    white-space: nowrap;
}

.item-description {
    color: #656d76;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.item-description:empty {
    display: none;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: #0366d6;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #0256cc;
}

.btn-secondary {
    background-color: #f6f8fa;
    color: #24292f;
    border-color: #d0d7de;
}

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

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

.btn:focus {
    outline: 2px solid #0366d6;
    outline-offset: 2px;
}

.install-badge {
    display: inline-block;
    margin-right: 0.5rem;
}

.install-badge img {
    height: 20px;
    border-radius: 3px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

#page-info {
    color: #656d76;
    font-size: 0.875rem;
}

/* Footer */
footer {
    background-color: #f6f8fa;
    border-top: 1px solid #d0d7de;
    padding: 2rem 0;
    text-align: center;
    color: #656d76;
}

footer a {
    color: #0366d6;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }

    .nav-controls {
        flex-direction: column;
        gap: 0.75rem;
    }

    .search-container,
    .filter-container {
        min-width: 100%;
    }

    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .item-type {
        align-self: flex-start;
    }

    .item-actions {
        justify-content: flex-start;
    }
    
    .pagination {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    header {
        padding: 1.5rem 0;
    }
    
    .item-card {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .item-card {
        border-width: 2px;
    }
    
    .btn {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .item-card:hover {
        transform: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #0d1117;
        color: #e6edf3;
    }
    
    header {
        background: linear-gradient(135deg, #1f6feb 0%, #388bfd 100%);
    }
    
    nav {
        background-color: #161b22;
        border-bottom-color: #30363d;
    }
    
    input, select {
        background-color: #0d1117;
        border-color: #30363d;
        color: #e6edf3;
    }
    
    input:focus,
    select:focus {
        border-color: #1f6feb;
        outline-color: #1f6feb;
    }
    
    .item-card {
        background-color: #161b22;
        border-color: #30363d;
    }
    
    .item-card:hover {
        border-color: #1f6feb;
        box-shadow: 0 4px 12px rgba(31, 111, 235, 0.1);
    }
    
    .item-card:focus-within {
        border-color: #1f6feb;
        box-shadow: 0 0 0 2px rgba(31, 111, 235, 0.3);
    }
    
    .item-title {
        color: #58a6ff;
    }
    
    .item-card:hover .item-title {
        color: #79c0ff;
    }
    
    .item-type {
        background-color: #0d2136;
        color: #58a6ff;
    }
    
    .item-description {
        color: #8b949e;
    }
    
    .btn-primary {
        background-color: #1f6feb;
    }
    
    .btn-primary:hover:not(:disabled) {
        background-color: #1a5feb;
    }
    
    .btn-secondary {
        background-color: #21262d;
        color: #e6edf3;
        border-color: #30363d;
    }
    
    .btn-secondary:hover:not(:disabled) {
        background-color: #30363d;
        border-color: #8b949e;
    }
    
    footer {
        background-color: #161b22;
        border-top-color: #30363d;
        color: #8b949e;
    }
    
    footer a {
        color: #58a6ff;
    }
    
    .stats {
        color: #8b949e;
    }
    
    #page-info {
        color: #8b949e;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: transparent;
}

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

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.modal-container {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
    width: 90vw;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 1001;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #d0d7de;
    gap: 1rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #24292f;
    margin: 0;
    flex: 1;
}

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

.modal-body {
    flex: 1;
    overflow: hidden;
    padding: 0;
    height: 60vh;
    display: flex;
    gap: 0;
}

.modal-toc {
    width: 280px;
    min-width: 280px;
    border-right: 1px solid #d0d7de;
    background: #f6f8fa;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.3s ease, min-width 0.3s ease;
}

.modal-toc.collapsed {
    width: 0;
    min-width: 0;
    border-right: none;
}

.toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #d0d7de;
    background: #ffffff;
}

.toc-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #24292f;
    margin: 0;
}

.toc-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.3s ease;
}

.toc-toggle:hover {
    background: #f3f4f6;
}

.toc-toggle.collapsed {
    transform: rotate(180deg);
}

.toc-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-item {
    margin: 0;
    padding: 0;
}

.toc-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #656d76;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.4;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.toc-link:hover {
    color: #0366d6;
    background: rgba(3, 102, 214, 0.08);
}

.toc-link.active {
    color: #0366d6;
    background: rgba(3, 102, 214, 0.12);
    border-left-color: #0366d6;
    font-weight: 500;
}

.toc-link.level-1 {
    padding-left: 1rem;
    font-weight: 500;
}

.toc-link.level-2 {
    padding-left: 1.75rem;
    font-size: 0.8125rem;
}

.toc-link.level-3 {
    padding-left: 2.5rem;
    font-size: 0.8125rem;
    color: #8b949e;
}

.toc-link.level-4,
.toc-link.level-5,
.toc-link.level-6 {
    padding-left: 3.25rem;
    font-size: 0.75rem;
    color: #8b949e;
}

.toc-empty {
    padding: 1rem;
    text-align: center;
    color: #8b949e;
    font-size: 0.75rem;
    font-style: italic;
}

.modal-main {
    flex: 1;
    overflow: auto;
    position: relative;
}

.modal-content {
    padding: 1.5rem;
    line-height: 1.6;
}

/* Markdown content styling in modal */
.modal-content h1,
.modal-content h2,
.modal-content h3,
.modal-content h4,
.modal-content h5,
.modal-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #24292f;
}

.modal-content h1 {
    font-size: 2rem;
    border-bottom: 1px solid #d0d7de;
    padding-bottom: 0.5rem;
}

.modal-content h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid #d0d7de;
    padding-bottom: 0.5rem;
}

.modal-content h3 {
    font-size: 1.25rem;
}

.modal-content p {
    margin-bottom: 1rem;
}

.modal-content ul,
.modal-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.modal-content li {
    margin-bottom: 0.25rem;
}

.modal-content pre {
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.modal-content code {
    background: #f6f8fa;
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
    font-size: 0.875rem;
}

.modal-content pre code {
    background: transparent;
    padding: 0;
}

.modal-content blockquote {
    border-left: 4px solid #d0d7de;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #656d76;
}

.modal-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.modal-content th,
.modal-content td {
    border: 1px solid #d0d7de;
    padding: 0.5rem;
    text-align: left;
}

.modal-content th {
    background: #f6f8fa;
    font-weight: 600;
}

/* Source view styles */
.source-view {
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    margin: 0;
    padding: 1rem;
    font-family: 'SF Mono', Monaco, 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #24292f;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.source-view code {
    background: transparent;
    padding: 0;
    border: none;
    font-family: inherit;
    color: inherit;
}

/* Override highlight.js styles for source view */
.source-view .hljs {
    background: transparent;
    padding: 0;
}

/* Dark mode support for modal */
@media (prefers-color-scheme: dark) {
    .modal-backdrop {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .modal-container {
        background: #161b22;
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
    }
    
    .modal-header {
        border-bottom-color: #30363d;
    }
    
    .modal-title {
        color: #e6edf3;
    }
    
    .modal-content h1,
    .modal-content h2,
    .modal-content h3,
    .modal-content h4,
    .modal-content h5,
    .modal-content h6 {
        color: #e6edf3;
    }
    
    .modal-content h1,
    .modal-content h2 {
        border-bottom-color: #30363d;
    }
    
    .modal-content pre {
        background: #0d1117;
        border-color: #30363d;
    }
    
    .modal-content code {
        background: #0d1117;
    }
    
    .modal-content blockquote {
        border-left-color: #30363d;
        color: #8b949e;
    }
    
    .modal-content th,
    .modal-content td {
        border-color: #30363d;
    }
    
    .modal-content th {
        background: #21262d;
    }
    
    .source-view {
        background: #161b22;
        border-color: #30363d;
        color: #e6edf3;
    }
    
    .source-view .hljs {
        background: transparent;
        color: inherit;
    }
    
    .modal-toc {
        border-right-color: #30363d;
        background: #0d1117;
    }
    
    .toc-header {
        border-bottom-color: #30363d;
        background: #161b22;
    }
    
    .toc-title {
        color: #e6edf3;
    }
    
    .toc-toggle:hover {
        background: #21262d;
    }
    
    .toc-link {
        color: #8b949e;
    }
    
    .toc-link:hover {
        color: #58a6ff;
        background: rgba(88, 166, 255, 0.08);
    }
    
    .toc-link.active {
        color: #58a6ff;
        background: rgba(88, 166, 255, 0.12);
        border-left-color: #58a6ff;
    }
    
    .toc-link.level-3,
    .toc-link.level-4,
    .toc-link.level-5,
    .toc-link.level-6 {
        color: #6e7681;
    }
}

/* Frontmatter Display Styles */
.frontmatter-container {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #d0d7de;
    padding-bottom: 1rem;
}

.frontmatter-details {
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background: #f6f8fa;
}

.frontmatter-summary {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #24292f;
    background: #f6f8fa;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    list-style: none;
    outline: none;
}

.frontmatter-summary::-webkit-details-marker {
    display: none;
}

.frontmatter-summary:hover {
    background: #eaeef2;
}

.frontmatter-icon {
    font-size: 1rem;
}

.frontmatter-title {
    flex: 1;
    font-size: 0.875rem;
}

.frontmatter-toggle {
    font-size: 0.75rem;
    color: #656d76;
    transition: transform 0.2s ease;
}

.frontmatter-details[open] .frontmatter-toggle {
    transform: rotate(90deg);
}

.frontmatter-content {
    padding: 0;
    border-top: 1px solid #d0d7de;
}

.frontmatter-code {
    margin: 0;
    background: #ffffff;
    border: none;
    border-radius: 0 0 6px 6px;
    padding: 1rem;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.frontmatter-code code {
    background: transparent;
    padding: 0;
    color: #24292f;
    font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', monospace;
}

/* Dark mode frontmatter styles */
@media (prefers-color-scheme: dark) {
    .frontmatter-container {
        border-bottom-color: #30363d;
    }
    
    .frontmatter-details {
        border-color: #30363d;
        background: #0d1117;
    }
    
    .frontmatter-summary {
        color: #e6edf3;
        background: #0d1117;
    }
    
    .frontmatter-summary:hover {
        background: #161b22;
    }
    
    .frontmatter-content {
        border-top-color: #30363d;
    }
    
    .frontmatter-code {
        background: #0d1117;
    }
    
    .frontmatter-code code {
        color: #e6edf3;
    }
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-container {
        width: 95vw;
        max-height: 95vh;
    }
    
    .modal-body {
        height: 50vh;
    }
    
    .modal-header {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .modal-actions {
        justify-content: center;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .modal-title {
        text-align: center;
        font-size: 1.25rem;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .modal-toc {
        width: 100%;
        min-width: 100%;
        border-right: none;
        border-bottom: 1px solid #d0d7de;
        max-height: 30vh;
    }
    
    .modal-toc.collapsed {
        max-height: 60px;
        overflow: hidden;
    }
    
    .toc-toggle {
        display: flex;
    }
}

/* Dark mode responsive */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    .modal-toc {
        border-bottom-color: #30363d;
    }
}

/* Floating Help Button */
.floating-help-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #0366d6;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(3, 102, 214, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1000;
    font-size: 0;
}

.floating-help-btn:hover {
    background: #0256cc;
    box-shadow: 0 6px 20px rgba(3, 102, 214, 0.4);
    transform: translateY(-2px);
}

.floating-help-btn:focus {
    outline: 2px solid #0366d6;
    outline-offset: 2px;
}

.floating-help-btn:active {
    transform: translateY(0);
}

.floating-help-btn svg {
    width: 20px;
    height: 20px;
}

/* Help Modal Styles */
.help-modal {
    z-index: 2000;
}

.help-modal-container {
    max-width: 600px;
    width: 90vw;
    max-height: 80vh;
    margin: 5vh auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.help-modal-header {
    background: linear-gradient(135deg, #0366d6 0%, #2188ff 100%);
    color: white;
    padding: 1.5rem;
    border-bottom: none;
}

.help-modal-header .modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.help-modal-header .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.help-modal-header .btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.help-modal-body {
    padding: 0;
    overflow-y: auto;
    max-height: calc(80vh - 120px);
}

.help-modal-content {
    padding: 2rem;
}

.shortcuts-section {
    margin-bottom: 2rem;
}

.shortcuts-section:last-child {
    margin-bottom: 0;
}

.shortcuts-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #24292f;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e1e4e8;
}

.shortcut-grid {
    display: grid;
    gap: 0.75rem;
}

.shortcut-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem;
    background: #f6f8fa;
    border-radius: 6px;
    border-left: 3px solid #0366d6;
}

.shortcut-item kbd {
    background: #24292f;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'SF Mono', Monaco, 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
    min-width: 2rem;
    text-align: center;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shortcut-item span {
    color: #24292f;
    font-size: 0.9rem;
    line-height: 1.4;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    padding: 0.75rem;
    background: #fff8e1;
    border-radius: 6px;
    border-left: 3px solid #f59e0b;
    margin-bottom: 0.5rem;
    color: #1f2937;
    font-size: 0.9rem;
    line-height: 1.5;
}

.tips-list li:last-child {
    margin-bottom: 0;
}

.tips-list li::before {
    content: "💡";
    margin-right: 0.5rem;
}

/* Help Modal Dark Mode */
@media (prefers-color-scheme: dark) {
    .help-modal-container {
        background: #0d1117;
        border: 1px solid #30363d;
    }
    
    .shortcuts-section h3 {
        color: #e6edf3;
        border-bottom-color: #30363d;
    }
    
    .shortcut-item {
        background: #161b22;
        border-left-color: #2188ff;
    }
    
    .shortcut-item kbd {
        background: #e6edf3;
        color: #24292f;
    }
    
    .shortcut-item span {
        color: #e6edf3;
    }
    
    .tips-list li {
        background: #1e293b;
        border-left-color: #fbbf24;
        color: #e2e8f0;
    }
    
    .floating-help-btn {
        background: #2188ff;
        box-shadow: 0 4px 12px rgba(33, 136, 255, 0.3);
    }
    
    .floating-help-btn:hover {
        background: #1f7aed;
        box-shadow: 0 6px 20px rgba(33, 136, 255, 0.4);
    }
}

/* Help Modal Responsive */
@media (max-width: 768px) {
    .floating-help-btn {
        width: 3rem;
        height: 3rem;
        bottom: 1rem;
        right: 1rem;
    }
    
    .floating-help-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .help-modal-container {
        width: 95vw;
        margin: 2vh auto;
        max-height: 90vh;
    }
    
    .help-modal-content {
        padding: 1.5rem;
    }
    
    .help-modal-header {
        padding: 1rem 1.5rem;
    }
    
    .shortcut-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }
    
    .shortcut-item kbd {
        justify-self: center;
    }
}
}