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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
    background-color: #0d1117;
    color: #e6edf3;
    line-height: 1.5;
    font-size: 14px;
}

a {
    color: #2f81f7;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 32px;
    display: flex;
    gap: 24px;
}

/* Profile Sidebar */
.profile-sidebar {
    width: 296px;
    flex-shrink: 0;
}

.avatar-container {
    position: relative;
    margin-bottom: 16px;
}

.avatar {
    width: 296px;
    height: 296px;
    border-radius: 50%;
    border: 1px solid #30363d;
    object-fit: cover;
}

.profile-info {
    margin-bottom: 16px;
}

.name {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    color: #e6edf3;
}

.username {
    font-size: 20px;
    font-weight: 300;
    color: #9198a1;
    display: block;
}

.bio {
    color: #e6edf3;
    margin-bottom: 16px;
    font-size: 16px;
}

.profile-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9198a1;
    font-size: 14px;
    padding: 4px 0;
}

.profile-link:hover {
    color: #2f81f7;
    text-decoration: none;
}

.profile-link svg {
    flex-shrink: 0;
}

/* Hobbies */
.hobbies {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hobbies-label {
    color: #9198a1;
    font-size: 14px;
    width: 100%;
    margin-bottom: 4px;
}

.hobby-item {
    font-size: 12px;
    color: #2f81f7;
    background-color: rgba(47, 129, 247, 0.15);
    border-radius: 2em;
    padding: 2px 10px;
}

/* Music Section */
.music-section {
    margin-top: 16px;
}

.music-label {
    color: #9198a1;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.music-currently {
    font-size: 12px;
}

.spotify-embeds {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spotify-embeds iframe {
    border: none;
}

.music-section-mobile {
    display: none;
}

/* Main Content */
.main-content {
    flex: 1;
    min-width: 0;
}

/* README Section */
.readme-section {
    border: 1px solid #30363d;
    border-radius: 6px;
    margin-bottom: 16px;
}

.readme-header {
    padding: 16px;
    border-bottom: 1px solid #30363d;
    background-color: #161b22;
    border-radius: 6px 6px 0 0;
}

.readme-title {
    font-size: 14px;
    color: #e6edf3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.readme-title:hover {
    text-decoration: none;
}

.readme-title:hover .username-link,
.readme-title:hover .readme-file {
    text-decoration: underline;
}

.username-link {
    color: #2f81f7;
}

.readme-file {
    color: #2f81f7;
    font-weight: 600;
}

.readme-ext {
    color: #9198a1;
}

.readme-content {
    padding: 32px;
}

.quote {
    border-left: 4px solid #30363d;
    padding-left: 16px;
    color: #9198a1;
    margin-bottom: 8px;
}

.quote p {
    margin-bottom: 0;
}

.quote-author {
    color: #9198a1;
    margin-bottom: 24px;
}

.bio-section {
    margin-top: 24px;
}

.bio-section p {
    margin-bottom: 8px;
}

.bio-section .section-title {
    margin-top: 16px;
    margin-bottom: 8px;
}

.bio-section ul {
    list-style-position: inside;
    margin-bottom: 16px;
    padding-left: 0;
}

.bio-section ul li {
    margin-bottom: 4px;
}

/* Pinned Section */
.pinned-section {
    margin-top: 16px;
}

.pinned-title {
    font-size: 16px;
    font-weight: 400;
    color: #e6edf3;
    margin-bottom: 8px;
}

.pinned-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: stretch;
}

.repo-card {
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 16px;
    background-color: #0d1117;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
}

.repo-card:hover {
    border-color: #8b949e;
    text-decoration: none;
}

.repo-card:hover .repo-asset img,
.repo-card:hover .repo-asset video {
    opacity: 0.85;
}

.repo-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.repo-header svg {
    color: #9198a1;
    flex-shrink: 0;
}

.repo-name {
    color: #2f81f7;
    font-weight: 600;
    font-size: 14px;
}

.repo-visibility {
    font-size: 12px;
    color: #9198a1;
    border: 1px solid #30363d;
    border-radius: 2em;
    padding: 0 7px;
    margin-left: auto;
}

.repo-description {
    color: #9198a1;
    font-size: 12px;
    margin-bottom: 12px;
}

.repo-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #9198a1;
}

.repo-language {
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.lang-dot.swift {
    background-color: #F05138;
}

.lang-dot.python {
    background-color: #3572A5;
}

.lang-dot.typescript {
    background-color: #3178C6;
}

.repo-stars,
.repo-forks {
    display: flex;
    align-items: center;
    gap: 4px;
}

.repo-stars svg,
.repo-forks svg {
    width: 16px;
    height: 16px;
}

.repo-asset {
    margin-top: auto;
    padding-top: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.repo-asset img,
.repo-asset video {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #30363d;
    transition: opacity 0.2s;
    display: block;
}

/* Responsive Design */
@media (max-width: 1012px) {
    .container {
        flex-direction: column;
        padding: 24px 16px;
    }

    .profile-sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 12px 16px;
        align-items: center;
        padding-bottom: 24px;
        border-bottom: 1px solid #30363d;
        margin-bottom: 8px;
    }

    .avatar-container {
        grid-row: 1 / 3;
        margin-bottom: 0;
    }

    .avatar {
        width: 80px;
        height: 80px;
    }

    .profile-info {
        margin-bottom: 0;
        align-self: end;
    }

    .name {
        font-size: 20px;
    }

    .username {
        font-size: 14px;
    }

    .bio {
        margin-bottom: 0;
        font-size: 14px;
        color: #9198a1;
        align-self: start;
    }

    .profile-links {
        grid-column: 1 / -1;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 8px;
    }

    .profile-link {
        font-size: 12px;
        padding: 4px 10px;
        background-color: #21262d;
        border-radius: 6px;
        gap: 6px;
    }

    .profile-link svg {
        width: 14px;
        height: 14px;
    }

    .hobbies {
        grid-column: 1 / -1;
        margin-top: 8px;
        justify-content: flex-start;
    }

    .hobbies-label {
        width: auto;
        margin-bottom: 0;
        margin-right: 4px;
        font-size: 12px;
    }

    .profile-sidebar .music-section {
        display: none;
    }

    .music-section-mobile {
        display: block;
        margin-top: 16px;
    }

    .pinned-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 16px 12px;
    }

    .profile-sidebar {
        gap: 8px 12px;
    }

    .avatar {
        width: 64px;
        height: 64px;
    }

    .name {
        font-size: 18px;
    }

    .username {
        font-size: 13px;
    }

    .bio {
        font-size: 13px;
    }

    .profile-links {
        gap: 6px;
    }

    .profile-link {
        font-size: 11px;
        padding: 3px 8px;
    }

    .readme-content {
        padding: 16px;
    }

    .readme-header {
        padding: 12px 16px;
    }

    .quote {
        padding-left: 12px;
        font-size: 13px;
    }

    .bio-section {
        font-size: 14px;
    }

    .repo-card {
        padding: 12px;
    }
}
