/**
 * Custom styles for stairona.github.io
 * Extends Tailwind CSS with accessibility and UX enhancements
 */

:root {
    --bg: #0f172a;
    --bg-soft: #1e293b;
    --border: #334155;
    --text-main: #f1f5f9;
    --text-muted: #94a3bb;
    --accent: #38bdf8;
    --accent-soft: #7dd3fc;
}

body {
    font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.site-shell {
    position: relative;
    isolation: isolate;
}

.site-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(1000px 500px at 8% -10%, rgba(56, 189, 248, 0.16), transparent 62%),
        radial-gradient(900px 450px at 95% 0%, rgba(14, 165, 233, 0.1), transparent 60%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 1) 45%);
    pointer-events: none;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #38bdf8;
    color: #0f172a;
    padding: 8px 16px;
    z-index: 100;
    border-radius: 0 0 4px 0;
    font-weight: 600;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Focus visible styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   Layout
   ========================================================================== */

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

@media (min-width: 768px) {
    .container {
        padding: 1.5rem 2rem 0;
    }
}

.main-content {
    margin-top: 0.5rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
    margin: 0;
}

.header-top {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .header-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.name {
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.name a {
    color: #38bdf8;
    text-decoration: none;
}

.name a:hover {
    color: #7dd3fc;
}

.tagline {
    color: #94a3bb;
    margin-top: 0.5rem;
    font-size: 1rem;
}

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

@media (min-width: 640px) {
    .header-meta {
        align-items: flex-end;
    }
}

.repo-count {
    color: #94a3bb;
    font-size: 0.875rem;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #334155;
    background: #1e293b;
    color: #f1f5f9;
    transition: transform 160ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
    text-decoration: none;
}

.btn:hover {
    background: #334155;
    border-color: #475569;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.28);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(2, 6, 23, 0.25);
}

.btn:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

.btn-secondary {
    border-color: #334155;
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(51, 65, 85, 0.5);
}

.btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-primary {
    background: #38bdf8;
    border-color: #38bdf8;
    color: #0f172a;
}

.btn-primary:hover {
    background: #7dd3fc;
    border-color: #7dd3fc;
}

.icon {
    font-style: normal;
}

/* ==========================================================================
   Filter & Sort Panels
   ========================================================================== */

.filter-panel,
.sort-panel {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(8px);
    animation: rise-in 180ms ease-out;
    animation-fill-mode: both;
}

.filter-section {
    margin-bottom: 1rem;
}

.filter-section:last-of-type {
    margin-bottom: 0;
}

.filter-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #cbd5e1;
    margin: 0 0 0.5rem 0;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: #cbd5e1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background: rgba(51, 65, 85, 0.3);
    border: 1px solid transparent;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.filter-checkbox:hover {
    background: rgba(51, 65, 85, 0.5);
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-1px);
}

.filter-checkbox:active {
    transform: translateY(0);
    background: rgba(51, 65, 85, 0.62);
}

.filter-checkbox input {
    margin: 0;
}

.filter-count {
    color: #64748b;
    font-size: 0.75rem;
}

.filter-actions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #334155;
}

.search-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #334155;
    border-radius: 0.375rem;
    background: #0f172a;
    color: #f1f5f9;
    font-size: 0.875rem;
}

.search-input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.search-input::placeholder {
    color: #64748b;
}

.sort-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sort-option {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 180ms ease;
}

.sort-option:hover {
    color: #e2e8f0;
}

.sort-option:active {
    color: #f1f5f9;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-section {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.2);
    animation: rise-in 280ms ease-out;
    animation-fill-mode: both;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 1rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

.about-text p {
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-stats {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

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

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #38bdf8;
}

.stat-label {
    font-size: 0.75rem;
    color: #94a3bb;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stats-caption {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #64748b;
    text-align: left;
}

.tag {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 0.25rem;
    padding: 0.125rem 0.5rem;
    font-family: monospace;
    font-size: 0.75rem;
    color: #38bdf8;
}

/* ==========================================================================
   Gallery Grid
   ========================================================================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Card Styles
   ========================================================================== */

.card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(30, 41, 59, 0.85) 100%);
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    box-shadow: 0 4px 20px rgba(2, 6, 23, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    transition: transform 220ms ease, box-shadow 260ms ease, border-color 260ms ease;
    animation: rise-in 320ms ease-out;
    animation-fill-mode: both;
    position: relative;
    overflow: hidden;
}

/* Subtle top highlight for Bento glass feel */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.2), transparent);
    pointer-events: none;
}

.gallery .card:nth-child(2) {
    animation-delay: 45ms;
}

.gallery .card:nth-child(3) {
    animation-delay: 90ms;
}

.gallery .card:nth-child(4) {
    animation-delay: 135ms;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.8);
    box-shadow:
        0 12px 40px rgba(56, 189, 248, 0.18),
        0 4px 20px rgba(2, 6, 23, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.card:active {
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(56, 189, 248, 0.15),
        0 2px 12px rgba(2, 6, 23, 0.25);
}

.card-content {
    flex: 1;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-title a:hover {
    color: #38bdf8;
}

.card-description {
    color: #94a3bb;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-language {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-topic {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #334155;
}

.card-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #94a3bb;
}

.stat {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.card-link {
    color: #38bdf8;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 180ms ease, text-shadow 180ms ease;
}

.card-link:hover {
    color: #7dd3fc;
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.card-link:active {
    color: #bae6fd;
}

.card-link span[aria-hidden="true"] {
    transition: transform 160ms ease;
}

.card-link:hover span[aria-hidden="true"] {
    transform: translateX(2px);
}

/* ==========================================================================
   Skeleton Loading
   ========================================================================== */

.skeleton-card {
    pointer-events: none;
}

.skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 0.25rem;
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    width: 60%;
    height: 1.5rem;
    margin-bottom: 1rem;
}

.skeleton-text {
    width: 100%;
    height: 0.75rem;
}

.skeleton-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skeleton-badge {
    width: 3rem;
    height: 1.25rem;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ==========================================================================
   Empty & Error States
   ========================================================================== */

.empty-state,
.error-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
    border-radius: 0.75rem;
}

.empty-title,
.error-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 0.75rem 0;
}

.empty-text,
.error-text {
    color: #94a3bb;
    max-width: 400px;
    margin: 0 auto 1rem auto;
    line-height: 1.6;
}

.empty-hint {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

.error-cache {
    color: #fbbf24;
    font-size: 0.875rem;
    margin: 0.5rem 0 0 0;
}

.empty-content code,
.error-content code {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 0.25rem;
    padding: 0.125rem 0.5rem;
    font-family: monospace;
    color: #38bdf8;
    font-size: 0.875em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    margin-top: 3rem;
    padding: 1.5rem 0 2rem;
    border-top: 1px solid #334155;
}

.footer-content {
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

.footer-content p {
    margin: 0 0 0.5rem 0;
}

.footer-content p:last-child {
    margin-bottom: 0;
}

.link {
    color: #94a3bb;
    text-decoration: underline;
    transition: color 180ms ease;
}

.link:hover {
    color: #cbd5e1;
}

.link:active {
    color: #e2e8f0;
}

.footer-copyright {
    font-size: 0.75rem;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 640px) {
    .container {
        padding: 0.75rem 0.9rem 0;
    }

    .header-top {
        gap: 0.85rem;
    }

    .controls {
        width: 100%;
    }

    .controls .btn {
        flex: 1 1 0;
        justify-content: center;
    }

    .about-section,
    .about-card,
    .cta-section {
        padding: 1.1rem;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .card {
        min-height: 0;
    }

    .about-stats {
        justify-content: flex-start;
        gap: 1rem;
    }

    .stat-value {
        font-size: 1.35rem;
    }
}

/* ==========================================================================
   About Page
   ========================================================================== */

.about-page {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 0.5rem;
}

.about-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.75rem;
    margin-bottom: 2rem;
    animation: rise-in 320ms ease-out;
    animation-fill-mode: both;
}

@media (min-width: 768px) {
    .about-card {
        grid-template-columns: 200px 1fr;
        align-items: start;
    }
}

.about-avatar {
    display: flex;
    justify-content: center;
}

.avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid #38bdf8;
    object-fit: cover;
    background: #1e293b;
}

.about-details .section-title {
    font-size: clamp(1.6rem, 3.5vw, 2rem);
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 1rem 0;
    letter-spacing: -0.01em;
}

.about-details p {
    color: #cbd5e1;
    line-height: 1.7;
    margin: 0 0 1rem 0;
}

.about-details p:last-child {
    margin-bottom: 0;
}

.skills-section {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.skills-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 1rem 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 1rem;
}

.skill-header {
    font-size: 0.875rem;
    font-weight: 600;
    color: #38bdf8;
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #cbd5e1;
    font-size: 0.875rem;
}

.skill-list li {
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
}

.skill-list li::before {
    content: "•";
    color: #38bdf8;
    position: absolute;
    left: 0;
}

.cta-section {
    text-align: center;
    padding: 2rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
    border-radius: 0.75rem;
    animation: rise-in 360ms ease-out;
    animation-fill-mode: both;
}

.cta-section p {
    color: #cbd5e1;
    margin: 0.5rem 0;
}

.cta-section .link {
    color: #38bdf8;
    text-decoration: underline;
}

.cta-section .link:hover {
    color: #7dd3fc;
}

/* ==========================================================================
   Modal
   ========================================================================== */
#project-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fade-in 120ms ease-out;
    overflow-y: auto;
}

#project-modal-overlay[hidden] {
    display: none;
}

.modal-dialog {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: rise-in 200ms ease-out;
    animation-fill-mode: both;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.modal-title-section {
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.modal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section:last-of-type {
    margin-bottom: 0;
}

.modal-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-summary {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.modal-highlights {
    background: rgba(56, 189, 248, 0.05);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 0.5rem;
}

.modal-highlights ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-muted);
}

.modal-highlights li {
    margin-bottom: 0.5rem;
}

.modal-readme {
    line-height: 1.7;
    color: var(--text-muted);
}

.modal-readme h1,
.modal-readme h2,
.modal-readme h3,
.modal-readme h4,
.modal-readme h5,
.modal-readme h6 {
    color: var(--text-main);
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
    line-height: 1.3;
}

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

.modal-readme code {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 0.25rem;
    padding: 0.125rem 0.375rem;
    font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace;
    font-size: 0.875em;
}

.modal-readme pre {
    background: #0f172a;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.modal-readme blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--text-muted);
    font-style: italic;
}

.modal-readme img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.modal-readme a {
    color: var(--accent);
    text-decoration: underline;
}

.modal-readme a:hover {
    color: var(--accent-soft);
}

.readme-error {
    color: #fbbf24;
    padding: 1rem;
    text-align: center;
}

.modal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.modal-stat-item {
    text-align: center;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.modal-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.modal-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Mobile modal adjustments */
@media (max-width: 640px) {
    #project-modal-overlay {
        padding: 0;
    }

    .modal-dialog {
        max-height: 100vh;
        border-radius: 0;
        min-height: 100vh;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-title {
        font-size: 1.25rem;
    }
}

/* Skeleton for README */
.skeleton-readme {
    padding: 1rem;
}

.skeleton-readme .skeleton-title {
    width: 70%;
    height: 1.5rem;
    margin-bottom: 1rem;
}

.skeleton-readme .skeleton-text {
    width: 100%;
    height: 0.875rem;
    margin-bottom: 0.5rem;
}

/* Fade animation */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    #project-modal-overlay,
    .modal-dialog {
        animation: none;
    }
}

/* ==========================================================================
   Simple List (About page)
   ========================================================================== */

.simple-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.simple-list li {
    padding: 0.5rem 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.simple-list li::before {
    content: none;
}

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