:root {
    --primary-color: rgb(53, 47, 47);
    --text-color: #24292e;
    --secondary-text: #586069;
    --bg-color: #f6f8fa;
    --card-bg: #ffffff;
    --border-color: #e1e4e8;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --error-color: #d73a49;
    --error-bg: #ffdce0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 8px 24px var(--shadow-color);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #2b3137 0%, #24292e 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.logo i {
    font-size: 40px;
    margin-right: 15px;
}

h1 {
    font-size: 32px;
    font-weight: 600;
}

.tagline {
    font-size: 18px;
    opacity: 0.9;
}

.search-container {
    padding: 30px;
    background-color: white;
    border-bottom: 1px solid var(--border-color);
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

#username {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px 0 0 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

#username:focus {
    outline: none;
    border-color: var(--primary-color);
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}
button i {
    margin-right: 8px;
}

.search-examples {
    text-align: center;
    margin-top: 10px;
    color: var(--secondary-text);
    font-size: 14px;
}
.loading {
    display: none;
    text-align: center;
    padding: 30px;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-message {
    display: none;
    color: var(--error-color);
    background-color: var(--error-bg);
    padding: 20px;
    border-radius: 5px;
    margin: 30px;
    text-align: center;
}

.error-message i {
    font-size: 24px;
    margin-right: 10px;
}

.error-message p {
    display: inline;
}
.profile {
    display: none;
    padding: 30px;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 10px var(--shadow-color);
    margin-right: 25px;
}

.profile-name {
    flex: 1;
}

.profile-name h2 {
    margin: 0 0 5px 0;
    font-size: 28px;
}

.username {
    color: var(--secondary-text);
    font-size: 18px;
    margin-bottom: 8px;
}

.location {
    color: var(--secondary-text);
    font-size: 16px;
}

.location i {
    margin-right: 5px;
}

.bio {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-style: italic;
    color: var(--text-color);
    position: relative;
    border-left: 4px solid var(--primary-color);
}
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-color);
}

.stat-label {
    font-size: 14px;
    color: var(--secondary-text);
    margin-top: 5px;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.button i {
    margin-right: 8px;
}

.primary {
    background-color: var(--primary-color);
    color: white;
}
.secondary {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.secondary:hover {
    background-color: #e9ebef;
}
.recent-repos {
    margin-top: 20px;
}

.recent-repos h3 {
    margin-bottom: 15px;
    font-size: 22px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.repos-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.repo-card {
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.repo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.repo-name {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 10px;
}

.repo-name a {
    color: var(--text-color);
    text-decoration: none;
}

.repo-name a:hover {
    color: var(--primary-color);
}

.repo-description {
    color: var(--secondary-text);
    font-size: 14px;
    margin-bottom: 15px;
    height: 60px;
    overflow: hidden;
}

.repo-meta {
    display: flex;
    justify-content: space-between;
    color: var(--secondary-text);
    font-size: 13px;
}

.repo-lang {
    display: flex;
    align-items: center;
}

.lang-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

.repo-stars {
    display: flex;
    align-items: center;
}

.repo-stars i {
    margin-right: 5px;
}

.view-more {
    text-align: center;
    margin-top: 15px;
}

.view-more a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.view-more a:hover {
    color: var(--primary-hover);
}

.view-more i {
    margin-left: 5px;
}
footer {
    text-align: center;
    padding: 20px;
    color: var(--secondary-text);
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

footer i {
    color: #e25555;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    header {
        padding: 30px 20px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stats {
        grid-template-columns: 1fr;
    }
    
    .repos-list {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    #username {
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
    button {
        border-radius: 5px;
        justify-content: center;
    }
}