/* Global Styles */
:root {
    --bg-color: #ffffff;
    --text-color: #24292f;
    --border-color: #d0d7de;
    --header-bg: #24292f;
    --header-text: #ffffff;
    --nav-hover: rgba(255, 255, 255, 0.7);
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
}

/* Header Styles */
.header {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 600;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

img.logo {
    width: 32px;
    height: 32px;
}

/* Specific size for menu icon if needed */
img.logo[src*="menu.svg"] {
    width: 24px;
    height: 24px;
    filter: invert(1);
}

img.logo[src*="github.svg"] {
    filter: invert(1);
}

.nav-links {
    display: flex;
    gap: 16px;
}

.nav-links a {
    color: var(--header-text);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--nav-hover);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-input {
    background-color: transparent;
    border: 1px solid #57606a;
    border-radius: 6px;
    color: white;
    padding: 5px 12px;
    font-size: 14px;
    width: 240px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .search-input {
        display: none;
    }
}

.profile-icon {
    width: 24px;
    height: 24px;
    background-color: #ccc;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tab Navigation Styles */
.tab-nav {
    border-bottom: 1px solid var(--border-color);
    margin-top: 24px;
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

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

.tab-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    border-bottom: 2px solid transparent;
    transition: border-bottom-color 0.2s;
    white-space: nowrap;
}

.tab-item:hover {
    border-bottom-color: #d0d7de;
}

.tab-item.active {
    font-weight: 600;
    border-bottom-color: #fd8c73;
}

.tab-icon {
    fill: #6e7781;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: fill 0.2s;
}

.tab-item:hover .tab-icon {
    fill: var(--text-color);
}

.tab-item.active .tab-icon {
    fill: var(--text-color);
}

.count {
    background-color: rgba(175, 184, 193, 0.2);
    padding: 0 6px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 4px;
}

.more-tab {
    position: relative;
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(140, 149, 159, 0.2);
    width: 160px;
    z-index: 100;
    margin-top: 4px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
}

.dropdown-item:hover {
    background-color: #f6f8fa;
}

.mobile-only {
    display: none;
}

/* Overview Layout */
.overview-container {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px;
    gap: 32px;
}

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

.large-avatar-container {
    width: 296px;
    height: 296px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
    z-index: 5;
    position: relative;
    background-color: white;
}

.large-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.full-name {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
}

.username {
    font-size: 20px;
    font-weight: 300;
    line-height: 24px;
    color: #57606a;
}

.profile-bio {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--text-color);
}

.profile-socials {
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
}

.social-link:hover {
    color: #0969da;
}

.social-icon {
    width: 16px;
    height: 16px;
    fill: #57606a;
}

.social-link:hover .social-icon {
    fill: #0969da;
}

/* Pinned Section */
.pinned-section {
    flex-grow: 1;
}

.pinned-header {
    margin-bottom: 16px;
}

.section-title {
    font-size: 16px;
    font-weight: 400;
    margin: 0;
}

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

.repo-card {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.repo-icon {
    fill: #57606a;
}

.repo-name {
    font-size: 14px;
    font-weight: 600;
    color: #0969da;
    text-decoration: none;
}

.repo-name:hover {
    text-decoration: underline;
}

.repo-visibility {
    font-size: 12px;
    font-weight: 500;
    color: #57606a;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0 7px;
    margin-left: auto;
}

.repo-description {
    font-size: 12px;
    color: #57606a;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.repo-footer {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #57606a;
}

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

.language-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Responsiveness */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .tab-container {
        padding: 0 8px;
        gap: 4px;
        justify-content: flex-start;
    }

    .tab-item {
        padding: 8px 8px;
        font-size: 13px;
    }

    .overview-container {
        flex-direction: column;
        padding: 16px;
    }

    .profile-sidebar {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .large-avatar-container {
        width: 80px;
        height: 80px;
        margin-bottom: 16px;
    }

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

    .profile-names {
        margin-bottom: 8px;
    }

    .full-name {
        font-size: 20px;
    }

    .username {
        font-size: 16px;
    }
}
