.github-card-container {
    margin-bottom: 2rem;
    max-width: 100%;
    clear: both;
}

.github-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    position: relative;
}

.github-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #d1d1d1;
    transform: translateY(-2px);
}

.github-card-top-bar {
    padding: 0.75rem 1.25rem 0.25rem 1.25rem;
    display: flex;
    align-items: center;
    background: #fff;
}

.github-logo {
    width: 28px;
    height: 28px;
    color: #24292f;
    flex-shrink: 0;
    background: #f6f8fa;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #d0d7de;
}

.github-card-inner {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.github-card-inner a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.github-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.github-card-title {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    flex: 1;
    padding-right: 1rem;
    word-break: break-word;
}

.github-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e8e8e8;
    flex-shrink: 0;
}

.github-card-repo-desc {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    min-height: 60px;
}

.github-card-stats {
    display: flex;
    justify-content: space-around;
    padding: 1rem 1.25rem;
    background: #fff;
}

.github-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 60px;
}

.github-stat-icon {
    width: 18px;
    height: 18px;
    color: #999;
    opacity: 0.7;
}

.github-stat-value {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.github-stat-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.github-card-bar {
    display: flex;
    height: 3px;
    background: #f0f0f0;
}

.github-bar-segment {
    flex-shrink: 0;
    transition: width 0.3s ease;
}

.github-bar-segment:first-child {
    border-radius: 0 0 0 8px;
}

.github-bar-segment:last-child {
    border-radius: 0 0 8px 0;
}

.github-card-category {
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: flex-start;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.github-category-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    background: #f0f7ff;
    color: #1976d2;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #d0e1ff;
}

.github-card-error {
    background: #fff3f3;
    color: #d32f2f;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #ffcdd2;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .github-card {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .github-card-top-bar {
        padding: 0.5rem 1rem 0.25rem 1rem;
    }
    
    .github-logo {
        width: 20px;
        height: 20px;
    }
    
    .github-card-header {
        padding: 0.875rem 1rem;
    }
    
    .github-card-title {
        font-size: 14px;
    }
    
    .github-card-avatar {
        width: 40px;
        height: 40px;
    }
    
    .github-card-repo-desc {
        padding: 0.875rem 1rem;
        font-size: 12px;
        min-height: 50px;
    }
    
    .github-card-stats {
        padding: 0.875rem 0.5rem;
        gap: 0.5rem;
    }
    
    .github-stat-value {
        font-size: 13px;
    }
    
    .github-stat-label {
        font-size: 10px;
    }
    
    .github-stat-icon {
        width: 16px;
        height: 16px;
    }
    
    .github-stat-item {
        min-width: 50px;
    }
}

@media (max-width: 480px) {
    .github-card-stats {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }
    
    .github-stat-item {
        width: calc(50% - 0.5rem);
        min-width: 45px;
    }
    
    .github-card {
        padding: 0.875rem;
    }
    
    .github-card-top-bar {
        padding: 0.375rem 0.875rem 0.25rem 0.875rem;
    }
    
    .github-logo {
        width: 18px;
        height: 18px;
    }
    
    .github-card-header {
        padding: 0.75rem 0.875rem;
    }
    
    .github-card-title {
        font-size: 13px;
    }
    
    .github-card-avatar {
        width: 36px;
        height: 36px;
    }
}
